aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/videotrack.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/videotrack.rs')
-rw-r--r--components/script/dom/videotrack.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/dom/videotrack.rs b/components/script/dom/videotrack.rs
index fd337db5e8a..5dc13c09645 100644
--- a/components/script/dom/videotrack.rs
+++ b/components/script/dom/videotrack.rs
@@ -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