-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d9a0a45
commit cb3d709
Showing
5 changed files
with
453 additions
and
402 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,39 @@ | ||
/** | ||
* @file text-track-enums.js | ||
* | ||
*/ | ||
|
||
/** | ||
* https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackmode | ||
* | ||
* enum TextTrackMode { "disabled", "hidden", "showing" }; | ||
*/ | ||
var TextTrackMode = { | ||
'disabled': 'disabled', | ||
'hidden': 'hidden', | ||
'showing': 'showing' | ||
const TextTrackMode = { | ||
disabled: 'disabled', | ||
hidden: 'hidden', | ||
showing: 'showing' | ||
}; | ||
|
||
/* | ||
/** | ||
* https://html.spec.whatwg.org/multipage/embedded-content.html#texttrackkind | ||
* | ||
* enum TextTrackKind { "subtitles", "captions", "descriptions", "chapters", "metadata" }; | ||
* enum TextTrackKind { | ||
* "subtitles", | ||
* "captions", | ||
* "descriptions", | ||
* "chapters", | ||
* "metadata" | ||
* }; | ||
*/ | ||
var TextTrackKind = { | ||
'subtitles': 'subtitles', | ||
'captions': 'captions', | ||
'descriptions': 'descriptions', | ||
'chapters': 'chapters', | ||
'metadata': 'metadata' | ||
const TextTrackKind = { | ||
subtitles: 'subtitles', | ||
captions: 'captions', | ||
descriptions: 'descriptions', | ||
chapters: 'chapters', | ||
metadata: 'metadata' | ||
}; | ||
|
||
/* jshint ignore:start */ | ||
// we ignore jshint here because it does not see | ||
// TextTrackMode or TextTrackKind as defined here somehow... | ||
export { TextTrackMode, TextTrackKind }; | ||
/* jshint ignore:end */ |
Oops, something went wrong.