Skip to content
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 25 commits into from
Sep 12, 2018
Merged
Show file tree
Hide file tree
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 Aug 17, 2018
fa9aa4d
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 Aug 17, 2018
8025edd
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 Aug 18, 2018
5bf8d89
[PLAYER-4216] Closed captions refactor WIP
jpfranco81 Aug 20, 2018
d2062e1
[PLAYER-4216] Allowing native UI to switch closed captions
jpfranco81 Aug 20, 2018
7702250
[PLAYER-4216] Giving priority to external CC's when there is a lang c…
jpfranco81 Aug 23, 2018
4a7e286
[PLAYER-4216] Switching to a single text track map
jpfranco81 Aug 24, 2018
74fd452
[PLAYER-4216] Now reacting to captions being turned off from native UI
jpfranco81 Aug 25, 2018
1abea50
[PLAYER-4216] Workaround for Edge not propagating DOM ids to TextTracks
jpfranco81 Aug 28, 2018
e0969d5
[PLAYER-4216] CC refactor improvements
jpfranco81 Aug 29, 2018
b073e98
[PLAYER-4216] Cleanup WIP
jpfranco81 Aug 30, 2018
973adf0
[PLAYER-4216] Cleanup WIP
jpfranco81 Aug 30, 2018
71c2308
[PLAYER-4216] Adding babel polyfill for IE11
jpfranco81 Aug 31, 2018
3893bc6
[PLAYER-4216] Tweaked set crossorigin logic
jpfranco81 Aug 31, 2018
c8550e4
[PLAYER-4216] Removed unnecessary removetrack handler
jpfranco81 Aug 31, 2018
d934c06
[PLAYER-4216] Firefox and Safari fixes
jpfranco81 Sep 4, 2018
8f3796d
[PLAYER-4216] Fixed unit tests
jpfranco81 Sep 5, 2018
151b400
[PLAYER-4216] Console log messages cleanup
jpfranco81 Sep 5, 2018
2bc3be8
[PLAYER-4216] Edge case fixes
jpfranco81 Sep 6, 2018
e70b5c4
[PLAYER-4216] CR updates and fixes for Edge
jpfranco81 Sep 10, 2018
4347480
[PLAYER-4216] More Safari fixes
jpfranco81 Sep 11, 2018
9ff36df
update html5-common
dallen42 Sep 11, 2018
841f272
[PLAYER-4216] More Safari fixes
jpfranco81 Sep 11, 2018
3d45734
[PLAYER-4216] Clearing stuck cues on language change
jpfranco81 Sep 11, 2018
1935286
Merge branch 'master' into PLAYER-4216
jpfranco81 Sep 11, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions .babelrc
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
Copy link
Contributor Author

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 or Object.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

},
"useBuiltIns": "usage"
}
]
]
}
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
"test": "jest"
},
"devDependencies": {
"browserify": "16.2.2",
"babelify": "^9.0.0",
"@babel/core": "^7.0.0-beta.51",
"@babel/polyfill": "^7.0.0",
"@babel/preset-env": "^7.0.0-beta.51",
"babel-core": "^7.0.0-bridge.0",
"babelify": "^9.0.0",
"browserify": "16.2.2",
"expect.js": "0.3.1",
"file-lister": "^1.1.0",
"gulp": "3.9.1",
Expand All @@ -30,11 +31,11 @@
"jest-cli": "23.4.2",
"jquery": "3.3.1",
"jsdoc": "^3.3.3",
"sinon": "^6.0.0",
"uglify": "^0.1.5",
"underscore": "1.9.1",
"vinyl-buffer": "^1.0.0",
"vinyl-source-stream": "^2.0.0",
"sinon": "^6.0.0"
"vinyl-source-stream": "^2.0.0"
},
"repository": {
"type": "git",
Expand Down
21 changes: 21 additions & 0 deletions src/main/js/constants/constants.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

const CONSTANTS = {
Copy link
Contributor Author

Choose a reason for hiding this comment

The 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;
Loading