Media fragment parser

This commit is contained in:
sreeise 2019-07-12 06:31:27 -04:00
parent 95b304b786
commit dc11219496
7 changed files with 464 additions and 11 deletions

View file

@ -55,6 +55,10 @@ impl VideoTrack {
self.id.clone()
}
pub fn kind(&self) -> DOMString {
self.kind.clone()
}
pub fn selected(&self) -> bool {
self.selected.get().clone()
}
@ -72,7 +76,7 @@ impl VideoTrackMethods for VideoTrack {
// https://html.spec.whatwg.org/multipage/#dom-videotrack-kind
fn Kind(&self) -> DOMString {
self.kind.clone()
self.kind()
}
// https://html.spec.whatwg.org/multipage/#dom-videotrack-label