ravnur-player-public 3.4.4 → 3.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/RavnurMediaPlayer.min.js +1 -1
- package/dist/cdn/RavnurMediaPlayer.min.js +1 -1
- package/package.json +72 -68
- package/.eslintignore +0 -7
- package/.eslintrc.js +0 -206
- package/.flowconfig +0 -3
- package/.vscode/extensions.json +0 -7
- package/.vscode/launch.json +0 -37
- package/.vscode/settings.json +0 -4
- package/README-Private.md +0 -54
- package/babel.config.js +0 -28
- package/bitbucket-pipelines.yml +0 -61
- package/cert.pem +0 -23
- package/demo/BaseM.mp4 +0 -0
- package/demo/HD.mp4 +0 -0
- package/demo/annotations.json +0 -50
- package/demo/annotations_ge.json +0 -50
- package/demo/base.mp3 +0 -0
- package/demo/cc_2125en.vtt +0 -4958
- package/demo/cc_en.vtt +0 -171
- package/demo/cc_ge.vtt +0 -178
- package/demo/chapters_en.vtt +0 -38
- package/demo/chapters_ge.vtt +0 -5
- package/demo/chapters_ge1.json +0 -23
- package/demo/hls/audio/stereo/en/128kbit.m3u8 +0 -912
- package/demo/hls/audio/stereo/none/128kbit.m3u8 +0 -912
- package/demo/hls/audio/surround/en/320kbit.m3u8 +0 -912
- package/demo/hls/playlist.m3u8 +0 -31
- package/demo/hls/video/10000kbit.m3u8 +0 -894
- package/demo/hls/video/1100kbit.m3u8 +0 -894
- package/demo/hls/video/1500kbit.m3u8 +0 -894
- package/demo/hls/video/250kbit.m3u8 +0 -894
- package/demo/hls/video/4000kbit.m3u8 +0 -894
- package/demo/hls/video/500kbit.m3u8 +0 -894
- package/demo/hls/video/6000kbit.m3u8 +0 -894
- package/demo/hls/video/800kbit.m3u8 +0 -894
- package/demo/hls.js +0 -5
- package/demo/hls.js.map +0 -1
- package/demo/hls.min.js +0 -2
- package/demo/hls.min.js.map +0 -1
- package/demo/playlist.m3u8 +0 -31
- package/demo/ravnur-flash-audio.swf +0 -0
- package/demo/ravnur-flash-video-hls.swf +0 -0
- package/demo/ravnur-flash-video.swf +0 -0
- package/demo/shaka/shaka-player.foo.debug.d.ts +0 -4532
- package/demo/shaka/shaka-player.foo.debug.externs.js +0 -3886
- package/demo/shaka/shaka-player.foo.debug.js +0 -1746
- package/demo/shaka/shaka-player.foo.debug.map +0 -8
- package/demo/shaka/wrapper.js +0 -7
- package/demo/test.html +0 -458
- package/jest.config.js +0 -4
- package/key.pem +0 -27
- package/lib/es5.js +0 -344
- package/lib/images/Spinner-small.gif +0 -0
- package/lib/images/close.png +0 -0
- package/lib/images/ic_check_box_black_24dp_1x.png +0 -0
- package/lib/images/ic_check_box_outline_blank_black_24dp_1x.png +0 -0
- package/lib/images/ic_chevron_left_white_24dp_1x.png +0 -0
- package/lib/images/ic_chevron_right_white_24dp_1x.png +0 -0
- package/lib/images/ic_closed_caption_white_24dp_1x.png +0 -0
- package/lib/images/ic_fast_forward_white_24dp_1x.png +0 -0
- package/lib/images/ic_fast_rewind_white_24dp_1x.png +0 -0
- package/lib/images/ic_fullscreen_exit_white_24dp_1x.png +0 -0
- package/lib/images/ic_fullscreen_white_24dp_1x.png +0 -0
- package/lib/images/ic_hd_white_24dp_1x.png +0 -0
- package/lib/images/ic_keyboard_arrow_left_black_24dp_1x.png +0 -0
- package/lib/images/ic_keyboard_arrow_right_black_24dp_1x.png +0 -0
- package/lib/images/ic_pause_white_24dp_1x.png +0 -0
- package/lib/images/ic_photo_white_24dp_1x.png +0 -0
- package/lib/images/ic_play_arrow_white_24dp_1x.png +0 -0
- package/lib/images/ic_refresh_white_24dp_1x.png +0 -0
- package/lib/images/ic_settings_white_24dp_1x.png +0 -0
- package/lib/images/ic_skip_next_white_24dp_1x.png +0 -0
- package/lib/images/ic_skip_previous_white_24dp_1x.png +0 -0
- package/lib/images/ic_toc_white_24dp_1x.png +0 -0
- package/lib/images/ic_volume_off_white_24dp_1x.png +0 -0
- package/lib/images/ic_volume_up_white_24dp_1x.png +0 -0
- package/lib/player4ie8.css +0 -225
- package/server.js +0 -29
- package/src/config/cc.js +0 -56
- package/src/config/i18n.js +0 -101
- package/src/config/options.js +0 -123
- package/src/config/playlist.js +0 -9
- package/src/config/source.js +0 -23
- package/src/config/statuses.js +0 -8
- package/src/config/styles.js +0 -16
- package/src/entity.js +0 -27
- package/src/events.js +0 -5
- package/src/extensions/annotations.js +0 -142
- package/src/extensions/audio-tarcks.js +0 -115
- package/src/extensions/backward.js +0 -45
- package/src/extensions/base.js +0 -73
- package/src/extensions/bottom-next.js +0 -50
- package/src/extensions/bottom-prev.js +0 -50
- package/src/extensions/buffering.js +0 -78
- package/src/extensions/c2pa.js +0 -350
- package/src/extensions/caption-search.js +0 -230
- package/src/extensions/cc.js +0 -874
- package/src/extensions/crawl.js +0 -118
- package/src/extensions/download.js +0 -411
- package/src/extensions/error.js +0 -47
- package/src/extensions/forward.js +0 -44
- package/src/extensions/fullscreen.js +0 -84
- package/src/extensions/help.js +0 -201
- package/src/extensions/helpers/FileSaver.js +0 -157
- package/src/extensions/helpers/clickOpener.js +0 -180
- package/src/extensions/helpers/opener.js +0 -30
- package/src/extensions/helpers/openerHeightChecker.js +0 -13
- package/src/extensions/helpers/popover.js +0 -33
- package/src/extensions/helpers/popoverPosition.js +0 -30
- package/src/extensions/helpers/scrollIntoView.js +0 -9
- package/src/extensions/helpers/storage.js +0 -20
- package/src/extensions/helpers/textContent.js +0 -6
- package/src/extensions/helpers/timeCodeToSeconds.js +0 -44
- package/src/extensions/helpers/transport.js +0 -43
- package/src/extensions/helpers/vtt-loader.js +0 -42
- package/src/extensions/index.js +0 -87
- package/src/extensions/live.js +0 -76
- package/src/extensions/mux.js +0 -57
- package/src/extensions/next-frame.js +0 -44
- package/src/extensions/next.js +0 -48
- package/src/extensions/placeholder.js +0 -241
- package/src/extensions/play.js +0 -102
- package/src/extensions/poster.js +0 -47
- package/src/extensions/prev-frame.js +0 -44
- package/src/extensions/prev.js +0 -48
- package/src/extensions/progress.js +0 -465
- package/src/extensions/resizer.js +0 -37
- package/src/extensions/settings.js +0 -367
- package/src/extensions/theater.js +0 -56
- package/src/extensions/title.js +0 -38
- package/src/extensions/toc.js +0 -334
- package/src/extensions/volume.js +0 -196
- package/src/flash/FlashPlugin.js +0 -301
- package/src/flash/MediaElement.js +0 -361
- package/src/flash/plugins.js +0 -32
- package/src/flash-detector.js +0 -66
- package/src/helpers/$t.js +0 -10
- package/src/helpers/binder.js +0 -11
- package/src/helpers/isAndroid.js +0 -5
- package/src/helpers/isBlackBerry.js +0 -5
- package/src/helpers/isCanvasSupported.js +0 -6
- package/src/helpers/isIE.js +0 -21
- package/src/helpers/isMobile.js +0 -10
- package/src/helpers/isWindows.js +0 -5
- package/src/helpers/isWindowsPhone.js +0 -5
- package/src/helpers/isiOS.js +0 -5
- package/src/html5media.js +0 -19
- package/src/index.js +0 -2
- package/src/logger.js +0 -31
- package/src/microevent.js +0 -65
- package/src/normalize-options.js +0 -139
- package/src/player.js +0 -864
- package/src/players/base.js +0 -209
- package/src/players/flash.js +0 -172
- package/src/players/hls.js +0 -278
- package/src/players/html.js +0 -205
- package/src/players/index.js +0 -59
- package/src/players/shaka.js +0 -219
- package/src/playlist.js +0 -362
- package/src/screenfull.js +0 -121
- package/src/state.js +0 -474
- package/src/static/es5.js +0 -344
- package/src/static/images/Spinner-small.gif +0 -0
- package/src/static/images/close.png +0 -0
- package/src/static/images/ic_check_box_black_24dp_1x.png +0 -0
- package/src/static/images/ic_check_box_outline_blank_black_24dp_1x.png +0 -0
- package/src/static/images/ic_chevron_left_white_24dp_1x.png +0 -0
- package/src/static/images/ic_chevron_right_white_24dp_1x.png +0 -0
- package/src/static/images/ic_closed_caption_white_24dp_1x.png +0 -0
- package/src/static/images/ic_fast_forward_white_24dp_1x.png +0 -0
- package/src/static/images/ic_fast_rewind_white_24dp_1x.png +0 -0
- package/src/static/images/ic_fullscreen_exit_white_24dp_1x.png +0 -0
- package/src/static/images/ic_fullscreen_white_24dp_1x.png +0 -0
- package/src/static/images/ic_hd_white_24dp_1x.png +0 -0
- package/src/static/images/ic_keyboard_arrow_left_black_24dp_1x.png +0 -0
- package/src/static/images/ic_keyboard_arrow_right_black_24dp_1x.png +0 -0
- package/src/static/images/ic_pause_white_24dp_1x.png +0 -0
- package/src/static/images/ic_play_arrow_white_24dp_1x.png +0 -0
- package/src/static/images/ic_refresh_white_24dp_1x.png +0 -0
- package/src/static/images/ic_settings_white_24dp_1x.png +0 -0
- package/src/static/images/ic_skip_next_white_24dp_1x.png +0 -0
- package/src/static/images/ic_skip_previous_white_24dp_1x.png +0 -0
- package/src/static/images/ic_toc_white_24dp_1x.png +0 -0
- package/src/static/images/ic_volume_off_white_24dp_1x.png +0 -0
- package/src/static/images/ic_volume_up_white_24dp_1x.png +0 -0
- package/src/static/player4ie8.css +0 -225
- package/src/styles/bplaylist.css.js +0 -124
- package/src/styles/index.js +0 -1966
- package/src/styles/playlist.css.js +0 -84
- package/src/styles/rplaylist.css.js +0 -98
- package/src/svgs.js +0 -111
- package/src/types/Logger.js +0 -10
- package/src/types/Options.js +0 -179
- package/src/types/Playlist.js +0 -3
- package/src/types/Source.js +0 -28
- package/src/types/State.js +0 -46
- package/src/types/Styles.js +0 -11
- package/src/types/TimeData.js +0 -8
- package/src/types/Translation.js +0 -69
- package/src/utils/absolutizeUrl.js +0 -9
- package/src/utils/addClass.js +0 -9
- package/src/utils/addEvent.js +0 -31
- package/src/utils/addProperty.js +0 -65
- package/src/utils/appendChild.js +0 -14
- package/src/utils/buff2hex.js +0 -5
- package/src/utils/contains.js +0 -33
- package/src/utils/createElement.js +0 -24
- package/src/utils/each.js +0 -34
- package/src/utils/escapeHTML.js +0 -8
- package/src/utils/existy.js +0 -4
- package/src/utils/extend.js +0 -17
- package/src/utils/filter.js +0 -16
- package/src/utils/find.js +0 -11
- package/src/utils/findIndex.js +0 -20
- package/src/utils/first.js +0 -5
- package/src/utils/get.js +0 -19
- package/src/utils/has.js +0 -5
- package/src/utils/hasClass.js +0 -6
- package/src/utils/head.js +0 -11
- package/src/utils/inRange.js +0 -16
- package/src/utils/index.js +0 -73
- package/src/utils/isArray.js +0 -4
- package/src/utils/isBoolean.js +0 -3
- package/src/utils/isElement.js +0 -7
- package/src/utils/isEmpty.js +0 -6
- package/src/utils/isEqual.js +0 -33
- package/src/utils/isEqualBuffer.js +0 -13
- package/src/utils/isFunction.js +0 -3
- package/src/utils/isNotEmpty.js +0 -5
- package/src/utils/isObject.js +0 -5
- package/src/utils/isString.js +0 -9
- package/src/utils/last.js +0 -4
- package/src/utils/map.js +0 -11
- package/src/utils/negate.js +0 -8
- package/src/utils/noop.js +0 -1
- package/src/utils/notExisty.js +0 -5
- package/src/utils/reduce.js +0 -8
- package/src/utils/remove.js +0 -7
- package/src/utils/removeClass.js +0 -8
- package/src/utils/removeEvent.js +0 -7
- package/src/utils/toArray.js +0 -7
- package/src/utils/toggleClass.js +0 -16
- package/src/utils/uidGenerator.js +0 -8
- package/src/utils/upperFirst.js +0 -4
- package/tests/extensions/__snapshots__/download.spec.js.snap +0 -226
- package/tests/extensions/__snapshots__/fullscreen.spec.js.snap +0 -30
- package/tests/extensions/__snapshots__/title.spec.js.snap +0 -16
- package/tests/extensions/download.spec.js +0 -111
- package/tests/extensions/fullscreen.spec.js +0 -56
- package/tests/extensions/title.spec.js +0 -35
- package/tests/mocks/assets/BaseM.mp4 +0 -0
- package/tests/mocks/assets/hls.min.js +0 -5
- package/tests/mocks/assets/styleMock.js +0 -1
- package/tests/mocks/base-player-options.js +0 -47
- package/tests/mocks/sources.js +0 -58
- package/tests/mocks/timedata/cc_en.vtt +0 -171
- package/tests/mocks/timedata/cc_ge.vtt +0 -178
- package/tests/utils/wait.js +0 -1
- package/webpack.config.js +0 -78
package/package.json
CHANGED
|
@@ -1,70 +1,74 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "ravnur-player-public",
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
"main": "dist/RavnurMediaPlayer.min.js",
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
"publishConfig": {
|
|
14
|
-
|
|
15
|
-
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
2
|
+
"name": "ravnur-player-public",
|
|
3
|
+
"version": "3.4.6",
|
|
4
|
+
"description": "Ravnur Video Player",
|
|
5
|
+
"main": "dist/RavnurMediaPlayer.min.js",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "cross-env NODE_ENV=production webpack --mode production",
|
|
8
|
+
"serve": "cross-env NODE_ENV=development webpack serve --mode development",
|
|
9
|
+
"lint": "eslint src/**/*.js",
|
|
10
|
+
"test": "jest test/* --silent"
|
|
11
|
+
},
|
|
12
|
+
"license": "Apache-2.0",
|
|
13
|
+
"publishConfig": {
|
|
14
|
+
"registry": "https://registry.npmjs.org"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"@avalanche/eslint-config": "^2.0.0",
|
|
22
|
+
"@avalanche/stylelint-config": "^0.1.2",
|
|
23
|
+
"@babel/core": "^7.2.2",
|
|
24
|
+
"@babel/plugin-proposal-class-properties": "^7.2.3",
|
|
25
|
+
"@babel/plugin-proposal-decorators": "^7.2.3",
|
|
26
|
+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
|
|
27
|
+
"@babel/plugin-transform-modules-commonjs": "^7.18.6",
|
|
28
|
+
"@babel/preset-env": "^7.18.6",
|
|
29
|
+
"@babel/preset-flow": "^7.0.0",
|
|
30
|
+
"@mapbox/stylelint-processor-arbitrary-tags": "^0.2.0",
|
|
31
|
+
"babel-eslint": "^10.0.1",
|
|
32
|
+
"babel-jest": "^28.1.2",
|
|
33
|
+
"babel-loader": "^8.0.4",
|
|
34
|
+
"compression": "^1.7.3",
|
|
35
|
+
"cross-env": "^5.2.0",
|
|
36
|
+
"eslint": "^7.32.0",
|
|
37
|
+
"eslint-config-standard": "^16.0.3",
|
|
38
|
+
"eslint-plugin-import": "^2.25.3",
|
|
39
|
+
"eslint-plugin-jest": "^26.5.3",
|
|
40
|
+
"eslint-plugin-node": "^11.1.0",
|
|
41
|
+
"eslint-plugin-promise": "^5.2.0",
|
|
42
|
+
"eslint-plugin-vue": "^9.9.0",
|
|
43
|
+
"express": "^4.16.4",
|
|
44
|
+
"flow-bin": "^0.168.0",
|
|
45
|
+
"html-webpack-plugin": "^3.2.0",
|
|
46
|
+
"jest": "^28.1.2",
|
|
47
|
+
"jest-environment-jsdom": "^28.1.2",
|
|
48
|
+
"jest-junit": "^12.0.0",
|
|
49
|
+
"opn": "^5.4.0",
|
|
50
|
+
"stylelint": "^9.9.0",
|
|
51
|
+
"uglifyjs-webpack-plugin": "^2.1.0",
|
|
52
|
+
"webpack": "^5.65.0",
|
|
53
|
+
"webpack-cli": "^4.9.1",
|
|
54
|
+
"webpack-dev-server": "^4.6.0"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"assert": "^2.0.0",
|
|
58
|
+
"bitparser": "^0.1.1",
|
|
59
|
+
"bitwise": "^2.1.0",
|
|
60
|
+
"buffer": "^6.0.3",
|
|
61
|
+
"cbor": "^8.1.0",
|
|
62
|
+
"chalk": "^4.1.2",
|
|
63
|
+
"commander": "^8.2.0",
|
|
64
|
+
"constants-browserify": "^1.0.0",
|
|
65
|
+
"hexy": "^0.3.2",
|
|
66
|
+
"intobuffer": "^0.1.2",
|
|
67
|
+
"lodash": "^4.17.21",
|
|
68
|
+
"mime-types": "^2.1.32",
|
|
69
|
+
"node-inspect-extracted": "^1.0.8",
|
|
70
|
+
"pkijs": "^2.2.1",
|
|
71
|
+
"process": "^0.11.10",
|
|
72
|
+
"stream-browserify": "^3.0.0"
|
|
73
|
+
}
|
|
70
74
|
}
|
package/.eslintignore
DELETED
package/.eslintrc.js
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
parser: "babel-eslint",
|
|
4
|
-
|
|
5
|
-
parserOptions: {
|
|
6
|
-
parser: 'babel-eslint'
|
|
7
|
-
},
|
|
8
|
-
globals: {
|
|
9
|
-
process: true,
|
|
10
|
-
Promise: true,
|
|
11
|
-
|
|
12
|
-
// flow types
|
|
13
|
-
$Shape: true,
|
|
14
|
-
$Keys: true,
|
|
15
|
-
$Subtype: true,
|
|
16
|
-
IntervalID: true,
|
|
17
|
-
TimeoutID: true
|
|
18
|
-
},
|
|
19
|
-
extends: [
|
|
20
|
-
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
|
|
21
|
-
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
|
|
22
|
-
'plugin:vue/essential',
|
|
23
|
-
// https://github.com/standard/standard/blob/master/docs/RULES-en.md
|
|
24
|
-
'standard'
|
|
25
|
-
],
|
|
26
|
-
// required to lint *.vue files
|
|
27
|
-
plugins: [
|
|
28
|
-
'vue',
|
|
29
|
-
'jest'
|
|
30
|
-
],
|
|
31
|
-
env: {
|
|
32
|
-
commonjs: true,
|
|
33
|
-
browser: true,
|
|
34
|
-
"jest/globals": true
|
|
35
|
-
},
|
|
36
|
-
// add your custom rules here
|
|
37
|
-
rules: {
|
|
38
|
-
'no-cond-assign': 2,
|
|
39
|
-
'no-console': 1,
|
|
40
|
-
'no-constant-condition': 2,
|
|
41
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 2 : 0,
|
|
42
|
-
'no-dupe-args': 2,
|
|
43
|
-
'no-dupe-keys': 2,
|
|
44
|
-
'no-duplicate-case': 2,
|
|
45
|
-
'no-empty': 2,
|
|
46
|
-
'no-ex-assign': 2,
|
|
47
|
-
'no-extra-boolean-cast': 2,
|
|
48
|
-
'no-extra-parens': 2,
|
|
49
|
-
'no-extra-semi': 2,
|
|
50
|
-
'no-func-assign': 2,
|
|
51
|
-
'no-inner-declarations': 2,
|
|
52
|
-
'no-irregular-whitespace': 2,
|
|
53
|
-
'no-negated-in-lhs': 2,
|
|
54
|
-
'no-obj-calls': 2,
|
|
55
|
-
'no-prototype-builtins': 2,
|
|
56
|
-
'no-regex-spaces': 2,
|
|
57
|
-
'no-sparse-arrays': 2,
|
|
58
|
-
'no-unexpected-multiline': 2,
|
|
59
|
-
'no-unreachable': 2,
|
|
60
|
-
'no-unsafe-finally': 2,
|
|
61
|
-
'use-isnan': 2,
|
|
62
|
-
'valid-jsdoc': 2,
|
|
63
|
-
'valid-typeof': 2,
|
|
64
|
-
|
|
65
|
-
'semi': [2, "always"],
|
|
66
|
-
|
|
67
|
-
'accessor-pairs': 2,
|
|
68
|
-
'array-callback-return': 2,
|
|
69
|
-
'block-scoped-var': 2,
|
|
70
|
-
'complexity': ["error", 15],
|
|
71
|
-
'consistent-return': 0,
|
|
72
|
-
'curly': 2,
|
|
73
|
-
'default-case': 0,
|
|
74
|
-
'dot-notation': 2,
|
|
75
|
-
'eqeqeq': 0,
|
|
76
|
-
'guard-for-in': 2,
|
|
77
|
-
'no-alert': 2,
|
|
78
|
-
'no-caller': 2,
|
|
79
|
-
'no-case-declarations': 2,
|
|
80
|
-
'no-else-return': 2,
|
|
81
|
-
'no-empty-function': 1,
|
|
82
|
-
'no-empty-pattern': 2,
|
|
83
|
-
'no-eq-null': 2,
|
|
84
|
-
'no-eval': 2,
|
|
85
|
-
'no-extend-native': 2,
|
|
86
|
-
'no-extra-bind': 2,
|
|
87
|
-
'no-extra-label': 2,
|
|
88
|
-
'no-fallthrough': 2,
|
|
89
|
-
'no-floating-decimal': 2,
|
|
90
|
-
'no-implicit-coercion': 0,
|
|
91
|
-
'no-implicit-globals': 2,
|
|
92
|
-
'no-implied-eval': 2,
|
|
93
|
-
'no-invalid-this': 1,
|
|
94
|
-
'no-iterator': 2,
|
|
95
|
-
'no-labels': 2,
|
|
96
|
-
'no-lone-blocks': 2,
|
|
97
|
-
'no-loop-func': 2,
|
|
98
|
-
'no-magic-numbers': 0,
|
|
99
|
-
'no-multi-spaces': 0,
|
|
100
|
-
'no-multi-str': 2,
|
|
101
|
-
'no-native-reassign': 2,
|
|
102
|
-
'no-new': 2,
|
|
103
|
-
'no-new-func': 2,
|
|
104
|
-
'no-new-wrappers': 0,
|
|
105
|
-
'no-octal': 2,
|
|
106
|
-
'no-octal-escape': 2,
|
|
107
|
-
'no-param-reassign': 0,
|
|
108
|
-
'no-proto': 2,
|
|
109
|
-
'no-redeclare': 2,
|
|
110
|
-
'no-return-assign': 0,
|
|
111
|
-
'no-script-url': 2,
|
|
112
|
-
'no-self-assign': 2,
|
|
113
|
-
'no-self-compare': 2,
|
|
114
|
-
'no-sequences': 0,
|
|
115
|
-
'no-throw-literal': 2,
|
|
116
|
-
'no-unmodified-loop-condition': 2,
|
|
117
|
-
'no-unused-expressions': 2,
|
|
118
|
-
'no-unused-labels': 2,
|
|
119
|
-
'no-useless-call': 2,
|
|
120
|
-
'no-useless-concat': 2,
|
|
121
|
-
'no-useless-escape': 1,
|
|
122
|
-
'no-void': 0,
|
|
123
|
-
'no-warning-comments': 0,
|
|
124
|
-
'no-with': 2,
|
|
125
|
-
'no-var': 0,
|
|
126
|
-
'radix': 2,
|
|
127
|
-
'vars-on-top': 0,
|
|
128
|
-
'yoda': 2,
|
|
129
|
-
|
|
130
|
-
'init-declarations': 0,
|
|
131
|
-
'no-catch-shadow': 2,
|
|
132
|
-
'no-delete-var': 0,
|
|
133
|
-
'no-label-var': 2,
|
|
134
|
-
'no-restricted-globals': 2,
|
|
135
|
-
'no-shadow': 0,
|
|
136
|
-
'no-shadow-restricted-names': 2,
|
|
137
|
-
'no-undef': 1,
|
|
138
|
-
'no-undef-init': 2,
|
|
139
|
-
'no-undefined': 1,
|
|
140
|
-
'no-unused-vars': 2,
|
|
141
|
-
'no-use-before-define': [1, { "functions": false, "classes": false }],
|
|
142
|
-
|
|
143
|
-
'array-bracket-spacing': 0,
|
|
144
|
-
'block-spacing': 2,
|
|
145
|
-
'brace-style': 2,
|
|
146
|
-
'camelcase': 2,
|
|
147
|
-
'comma-dangle': ["error", "never"],
|
|
148
|
-
'comma-spacing': ["error", { "before": false, "after": true }],
|
|
149
|
-
'comma-style': ["error", "last"],
|
|
150
|
-
'computed-property-spacing': ["error", "never"],
|
|
151
|
-
'consistent-this': 2,
|
|
152
|
-
'eol-last': 2,
|
|
153
|
-
'func-names': 1,
|
|
154
|
-
'func-style': 0,
|
|
155
|
-
'indent': [2, 3],
|
|
156
|
-
'key-spacing': 0,
|
|
157
|
-
'linebreak-style': [0, 'windows'],
|
|
158
|
-
'lines-around-comment': 0,
|
|
159
|
-
'max-len': [1, 120],
|
|
160
|
-
'max-lines': 0,
|
|
161
|
-
'max-params': [2, 5],
|
|
162
|
-
'new-cap': 2,
|
|
163
|
-
'new-parens': 2,
|
|
164
|
-
'newline-after-var': 0,
|
|
165
|
-
'newline-before-return': 0,
|
|
166
|
-
'newline-per-chained-call': 0,
|
|
167
|
-
'no-array-constructor': 2,
|
|
168
|
-
'no-bitwise': 2,
|
|
169
|
-
'no-continue': 2,
|
|
170
|
-
'no-inline-comments': 0,
|
|
171
|
-
'no-lonely-if': 2,
|
|
172
|
-
'no-mixed-operators': 0,
|
|
173
|
-
'no-mixed-spaces-and-tabs': 2,
|
|
174
|
-
'no-negated-condition': 0,
|
|
175
|
-
'no-nested-ternary': 1,
|
|
176
|
-
'no-new-object': 2,
|
|
177
|
-
'no-plusplus': 0,
|
|
178
|
-
'no-restricted-syntax': 0,
|
|
179
|
-
'no-spaced-func': 2,
|
|
180
|
-
'no-ternary': 0,
|
|
181
|
-
'no-trailing-spaces': 2,
|
|
182
|
-
'no-underscore-dangle': 0,
|
|
183
|
-
'no-unneeded-ternary': 2,
|
|
184
|
-
'no-whitespace-before-property': 2,
|
|
185
|
-
'object-curly-newline': 0,
|
|
186
|
-
'object-curly-spacing': 0,
|
|
187
|
-
'object-property-newline': 0,
|
|
188
|
-
'one-var': 0,
|
|
189
|
-
'one-var-declaration-per-line': 0,
|
|
190
|
-
'padded-blocks': 0,
|
|
191
|
-
'quote-props': ["error", "as-needed"],
|
|
192
|
-
'quotes': [2, "single"],
|
|
193
|
-
'require-jsdoc': 0,
|
|
194
|
-
"space-in-parens": 0,
|
|
195
|
-
"prefer-const": 0,
|
|
196
|
-
|
|
197
|
-
'space-before-function-paren': ["error", {
|
|
198
|
-
"anonymous": "ignore",
|
|
199
|
-
"named": "ignore",
|
|
200
|
-
"asyncArrow": "ignore"
|
|
201
|
-
}],
|
|
202
|
-
'space-before-blocks': 2,
|
|
203
|
-
'import/no-unresolved': 0,
|
|
204
|
-
'import/no-duplicates': 0
|
|
205
|
-
}
|
|
206
|
-
}
|
package/.flowconfig
DELETED
package/.vscode/extensions.json
DELETED
package/.vscode/launch.json
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
// Use IntelliSense to learn about possible attributes.
|
|
3
|
-
// Hover to view descriptions of existing attributes.
|
|
4
|
-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
5
|
-
"version": "0.2.0",
|
|
6
|
-
"configurations": [
|
|
7
|
-
{
|
|
8
|
-
"name": "Launch Chrome",
|
|
9
|
-
"request": "launch",
|
|
10
|
-
"type": "chrome",
|
|
11
|
-
"url": "http://localhost:8080",
|
|
12
|
-
"webRoot": "${workspaceFolder}",
|
|
13
|
-
"sourceMaps": true
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"name": "Launch Edge",
|
|
17
|
-
"request": "launch",
|
|
18
|
-
"type": "msedge",
|
|
19
|
-
"url": "http://localhost:8080",
|
|
20
|
-
"webRoot": "${workspaceFolder}",
|
|
21
|
-
"sourceMaps": true
|
|
22
|
-
},
|
|
23
|
-
{
|
|
24
|
-
"name": "Launch Firefox",
|
|
25
|
-
"request": "launch",
|
|
26
|
-
"type": "firefox",
|
|
27
|
-
"url": "http://localhost:8080",
|
|
28
|
-
"webRoot": "${workspaceFolder}",
|
|
29
|
-
"pathMappings": [
|
|
30
|
-
{
|
|
31
|
-
"url": "webpack://ravnurmediaplayer/src",
|
|
32
|
-
"path": "${workspaceFolder}/src"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
}
|
package/.vscode/settings.json
DELETED
package/README-Private.md
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
# Instructions on how to publish this package to public NPM registry
|
|
2
|
-
|
|
3
|
-
1. Fetch latest tags
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
git fetch --tags
|
|
7
|
-
```
|
|
8
|
-
|
|
9
|
-
2. Switch to tag version you want to publicly release.
|
|
10
|
-
|
|
11
|
-
```
|
|
12
|
-
git checkout tags/"release/1.0.0"
|
|
13
|
-
```
|
|
14
|
-
3. Change node version to 14 ⚠️ This step ensures that Babel will transpile features like optional chaining for older environments, keeping builds consistent with previous versions.
|
|
15
|
-
```
|
|
16
|
-
nvm use 14
|
|
17
|
-
```
|
|
18
|
-
4. Build the player code
|
|
19
|
-
```
|
|
20
|
-
npm run build
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
5. Replace the code from `.npmrc` to this one:
|
|
24
|
-
|
|
25
|
-
```
|
|
26
|
-
registry=https://registry.npmjs.org
|
|
27
|
-
```
|
|
28
|
-
|
|
29
|
-
6. Change values in the `package.json` file
|
|
30
|
-
|
|
31
|
-
```
|
|
32
|
-
"name": "ravnur-player-public",
|
|
33
|
-
...
|
|
34
|
-
"main": "dist/RavnurMediaPlayer.min.js",
|
|
35
|
-
"publishConfig": {
|
|
36
|
-
"registry": "https://registry.npmjs.org"
|
|
37
|
-
},
|
|
38
|
-
"files": [
|
|
39
|
-
"dist",
|
|
40
|
-
"README.md"
|
|
41
|
-
],
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
7. Login to your npm user account in the terminal
|
|
45
|
-
|
|
46
|
-
```
|
|
47
|
-
npm login
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
8. Publish the version
|
|
51
|
-
|
|
52
|
-
```
|
|
53
|
-
npm publish --access public
|
|
54
|
-
```
|
package/babel.config.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
presets: [
|
|
3
|
-
'@babel/preset-flow',
|
|
4
|
-
[
|
|
5
|
-
'@babel/preset-env',
|
|
6
|
-
{
|
|
7
|
-
modules: false,
|
|
8
|
-
targets: {
|
|
9
|
-
node: 'current'
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
]
|
|
13
|
-
],
|
|
14
|
-
plugins: [
|
|
15
|
-
'@babel/plugin-syntax-dynamic-import',
|
|
16
|
-
[
|
|
17
|
-
'@babel/plugin-proposal-decorators',
|
|
18
|
-
{ legacy: true }
|
|
19
|
-
],
|
|
20
|
-
'@babel/plugin-proposal-class-properties',
|
|
21
|
-
'@babel/plugin-transform-flow-strip-types'
|
|
22
|
-
],
|
|
23
|
-
env: {
|
|
24
|
-
test: {
|
|
25
|
-
plugins: ["@babel/plugin-transform-modules-commonjs"]
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
};
|
package/bitbucket-pipelines.yml
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
image: node:14.15.1-alpine3.10 # Choose an image matching your project needs
|
|
2
|
-
clone:
|
|
3
|
-
depth: full # SonarCloud scanner needs the full history to assign issues properly
|
|
4
|
-
|
|
5
|
-
definitions:
|
|
6
|
-
services:
|
|
7
|
-
docker:
|
|
8
|
-
memory: 2048
|
|
9
|
-
steps:
|
|
10
|
-
- step: &build-test
|
|
11
|
-
name: Build, test
|
|
12
|
-
caches:
|
|
13
|
-
- node
|
|
14
|
-
script:
|
|
15
|
-
- NPM_TOKENB64=$(echo -n $NPM_TOKEN | base64)
|
|
16
|
-
- npm set registry https://ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/
|
|
17
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/:username=$NPM_USER
|
|
18
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/:_password="$NPM_TOKENB64"
|
|
19
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/:email=$NPM_EMAIL
|
|
20
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/:username=$NPM_USER
|
|
21
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/:_password="$NPM_TOKENB64"
|
|
22
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/:email=$NPM_EMAIL
|
|
23
|
-
- npm install
|
|
24
|
-
- npm run build
|
|
25
|
-
- npm run lint
|
|
26
|
-
- npm run test
|
|
27
|
-
artifacts:
|
|
28
|
-
- dist/RavnurMediaPlayer.min.js
|
|
29
|
-
|
|
30
|
-
- step: &publish-npm-package
|
|
31
|
-
name: Publish npm package for tag
|
|
32
|
-
caches:
|
|
33
|
-
- node
|
|
34
|
-
script:
|
|
35
|
-
- npm version $BITBUCKET_TAG --git-tag-version false;
|
|
36
|
-
- NPM_TOKENB64=$(echo -n $NPM_TOKEN | base64)
|
|
37
|
-
- npm install --quiet;
|
|
38
|
-
- npm set registry https://ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/
|
|
39
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/:username=$NPM_USER
|
|
40
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/:_password="$NPM_TOKENB64"
|
|
41
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/:email=$NPM_EMAIL
|
|
42
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/:username=$NPM_USER
|
|
43
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/:_password="$NPM_TOKENB64"
|
|
44
|
-
- npm set //ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/:email=$NPM_EMAIL
|
|
45
|
-
- npm publish --registry https://ravnur.pkgs.visualstudio.com/Ravnur/_packaging/ravnur-npm/npm/registry/
|
|
46
|
-
|
|
47
|
-
pipelines: # More info here: https://confluence.atlassian.com/bitbucket/configure-bitbucket-pipelines-yml-792298910.html
|
|
48
|
-
tags:
|
|
49
|
-
"*":
|
|
50
|
-
- step: *publish-npm-package
|
|
51
|
-
|
|
52
|
-
branches:
|
|
53
|
-
master:
|
|
54
|
-
- step: *build-test
|
|
55
|
-
pull-requests:
|
|
56
|
-
"**":
|
|
57
|
-
- step: *build-test
|
|
58
|
-
|
|
59
|
-
custom:
|
|
60
|
-
"Build/Test":
|
|
61
|
-
- step: *build-test
|
package/cert.pem
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
-----BEGIN CERTIFICATE-----
|
|
2
|
-
MIIDxTCCAq2gAwIBAgIJAJY2MgMeooHUMA0GCSqGSIb3DQEBCwUAMHkxCzAJBgNV
|
|
3
|
-
BAYTAnVhMRIwEAYDVQQIDAlsb2NhbGhvc3QxDjAMBgNVBAcMBWxkZGRkMQ8wDQYD
|
|
4
|
-
VQQKDAZyYXZudXIxDzANBgNVBAsMBnJhdm51cjEPMA0GA1UEAwwGcmF2bnVyMRMw
|
|
5
|
-
EQYJKoZIhvcNAQkBFgRtYWlsMB4XDTE2MDcyNjE1MDc1NloXDTE3MDcyNjE1MDc1
|
|
6
|
-
NloweTELMAkGA1UEBhMCdWExEjAQBgNVBAgMCWxvY2FsaG9zdDEOMAwGA1UEBwwF
|
|
7
|
-
bGRkZGQxDzANBgNVBAoMBnJhdm51cjEPMA0GA1UECwwGcmF2bnVyMQ8wDQYDVQQD
|
|
8
|
-
DAZyYXZudXIxEzARBgkqhkiG9w0BCQEWBG1haWwwggEiMA0GCSqGSIb3DQEBAQUA
|
|
9
|
-
A4IBDwAwggEKAoIBAQDWPG1ciTsoKr6eY3Yco4UPbVpz3pQhUwh75wx+BJ2Va9xU
|
|
10
|
-
g4d6uVOjd8oANjbcQ8C965xkTiA2aPQiI5PlNO8310cR8jtlL9SkiYD9OiZKnBda
|
|
11
|
-
XWlW/7SpjBQ0IydmSDTrRpnxATi1ekP9sISBaLlXBIqEG/qgruC1eOJ/CMCWGFL3
|
|
12
|
-
3fKCYjaetN15kdIXflEAxYYUNg6sfvxgM34xibeg1sBzOGlwnTwhSsdKycOgWFbX
|
|
13
|
-
2SCNBybovuxOQckpBIRY4Ho7wnnchMSiWqjDJnRMajtB/D7GRXl1cEVqWJNxsjPo
|
|
14
|
-
GxFG7nQ/yflrhiwBFoqy/pEAATf2uSNbOuDNIk3nAgMBAAGjUDBOMB0GA1UdDgQW
|
|
15
|
-
BBQbXz/WyftG8avqWDKk0Ezi0CDfgzAfBgNVHSMEGDAWgBQbXz/WyftG8avqWDKk
|
|
16
|
-
0Ezi0CDfgzAMBgNVHRMEBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQBboBHubxKy
|
|
17
|
-
in59Io8n8XtNv/IS5S8yMYaUMEeEhmd2Y2Etju4hBhLSISTpqbKahX3GVJJf0Eg8
|
|
18
|
-
PapVaY+Rtgr6OzUHL/kpPRCVYyhThOkJnAMgFEzegkMxtUNH7LIs2pWTbUKXKH+1
|
|
19
|
-
shs5U0UzmBLSwDVsO1R4F7gfHD/uZPh2FxVrhI13PppWNNCz8ca3jwO+s3j+Cs7S
|
|
20
|
-
8+bWZ7gTIw1ugKxq3lb7uPIeZuCIzoLqH+rbAs4fjDDRvF6daI58pd/KxngTArDt
|
|
21
|
-
Qgd3vVfyZMAdPfcelCMnUiqkRmneYLN94WUqEq/p5Jn10XQHpYEjPomf2Kw1NW7+
|
|
22
|
-
g8JQRcZ0V65y
|
|
23
|
-
-----END CERTIFICATE-----
|
package/demo/BaseM.mp4
DELETED
|
Binary file
|
package/demo/HD.mp4
DELETED
|
Binary file
|
package/demo/annotations.json
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
[
|
|
2
|
-
{
|
|
3
|
-
"type": 3,
|
|
4
|
-
"text": "test",
|
|
5
|
-
"title": "",
|
|
6
|
-
"starts": {
|
|
7
|
-
"hh": 0,
|
|
8
|
-
"mm": 0,
|
|
9
|
-
"ss": 0,
|
|
10
|
-
"ms": 0
|
|
11
|
-
},
|
|
12
|
-
"ends": {
|
|
13
|
-
"hh": 0,
|
|
14
|
-
"mm": 0,
|
|
15
|
-
"ss": 5,
|
|
16
|
-
"ms": 0
|
|
17
|
-
},
|
|
18
|
-
"top": 20,
|
|
19
|
-
"left": 20,
|
|
20
|
-
"width": 150,
|
|
21
|
-
"height": 30,
|
|
22
|
-
"fontsize": "11px",
|
|
23
|
-
"fontcolor": "FFFFFF",
|
|
24
|
-
"background": "000000"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"type": 3,
|
|
28
|
-
"text": "test http://google.com link",
|
|
29
|
-
"title": "",
|
|
30
|
-
"starts": {
|
|
31
|
-
"hh": 0,
|
|
32
|
-
"mm": 0,
|
|
33
|
-
"ss": 10,
|
|
34
|
-
"ms": 0
|
|
35
|
-
},
|
|
36
|
-
"ends": {
|
|
37
|
-
"hh": 0,
|
|
38
|
-
"mm": 0,
|
|
39
|
-
"ss": 25,
|
|
40
|
-
"ms": 0
|
|
41
|
-
},
|
|
42
|
-
"top": 20,
|
|
43
|
-
"left": 20,
|
|
44
|
-
"width": 150,
|
|
45
|
-
"height": 30,
|
|
46
|
-
"fontsize": "11px",
|
|
47
|
-
"fontcolor": "EEEEEE",
|
|
48
|
-
"background": "FF0000"
|
|
49
|
-
}
|
|
50
|
-
]
|