-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[PLAYER-4216] (PR 3 of 3) MainHtml5 closed captions refactor #333
Merged
Merged
Changes from 19 commits
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
f6e03a6
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 fa9aa4d
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 8025edd
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 5bf8d89
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 d2062e1
[PLAYER-4216] Allowing native UI to switch closed captions
jpfranco81 7702250
[PLAYER-4216] Giving priority to external CC's when there is a lang c…
jpfranco81 4a7e286
[PLAYER-4216] Switching to a single text track map
jpfranco81 74fd452
[PLAYER-4216] Now reacting to captions being turned off from native UI
jpfranco81 1abea50
[PLAYER-4216] Workaround for Edge not propagating DOM ids to TextTracks
jpfranco81 e0969d5
[PLAYER-4216] CC refactor improvements
jpfranco81 b073e98
[PLAYER-4216] Cleanup WIP
jpfranco81 973adf0
[PLAYER-4216] Cleanup WIP
jpfranco81 71c2308
[PLAYER-4216] Adding babel polyfill for IE11
jpfranco81 3893bc6
[PLAYER-4216] Tweaked set crossorigin logic
jpfranco81 c8550e4
[PLAYER-4216] Removed unnecessary removetrack handler
jpfranco81 d934c06
[PLAYER-4216] Firefox and Safari fixes
jpfranco81 8f3796d
[PLAYER-4216] Fixed unit tests
jpfranco81 151b400
[PLAYER-4216] Console log messages cleanup
jpfranco81 2bc3be8
[PLAYER-4216] Edge case fixes
jpfranco81 e70b5c4
[PLAYER-4216] CR updates and fixes for Edge
jpfranco81 4347480
[PLAYER-4216] More Safari fixes
jpfranco81 9ff36df
update html5-common
dallen42 841f272
[PLAYER-4216] More Safari fixes
jpfranco81 3d45734
[PLAYER-4216] Clearing stuck cues on language change
jpfranco81 1935286
Merge branch 'master' into PLAYER-4216
jpfranco81 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{ | ||
"presets": [ "@babel/preset-env" ] | ||
} | ||
"presets": [ | ||
[ | ||
"@babel/preset-env", { | ||
"targets": { | ||
"ie": 11 | ||
}, | ||
"useBuiltIns": "usage" | ||
} | ||
] | ||
] | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
|
||
const CONSTANTS = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Deliberately left this out of html5-common since only MainHtml5 should be concerned with these values |
||
|
||
ID_PREFIX: { | ||
INTERNAL: 'CC', | ||
EXTERNAL: 'VTT', | ||
}, | ||
|
||
TEXT_TRACK: { | ||
KIND: { | ||
SUBTITLES: 'subtitles', | ||
CAPTIONS: 'captions', | ||
DESCRIPTIONS: 'descriptions', | ||
CHAPTERS: 'chapters', | ||
METADATA: 'metadata', | ||
} | ||
}, | ||
|
||
}; | ||
|
||
export default CONSTANTS; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
By default Babel will transpile es6 syntax but it will not automatically add polyfills for APIs such as
Array.prototype.filter
orObject.assign
. Eventually we should look for a way to load all polyfills in the core so that they are available for all plugins without including them on each script