Skip to content

Commit

Permalink
Merge pull request #333 from ooyala/PLAYER-4216
Browse files Browse the repository at this point in the history
[PLAYER-4216] (PR 3 of 3) MainHtml5 closed captions refactor
  • Loading branch information
jpfranco authored Sep 12, 2018
2 parents e91bbb9 + 1935286 commit c891805
Show file tree
Hide file tree
Showing 10 changed files with 919 additions and 517 deletions.
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
},
"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 = {

ID_PREFIX: {
INTERNAL: 'CC',
EXTERNAL: 'VTT',
},

TEXT_TRACK: {
KIND: {
SUBTITLES: 'subtitles',
CAPTIONS: 'captions',
DESCRIPTIONS: 'descriptions',
CHAPTERS: 'chapters',
METADATA: 'metadata',
}
},

};

export default CONSTANTS;
Loading

0 comments on commit c891805

Please sign in to comment.