cloudinary-video-player 1.6.2-edge.13
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/.eslintignore +4 -0
- package/.snyk +19 -0
- package/.travis.yml +8 -0
- package/CHANGELOG.md +329 -0
- package/LICENSE +21 -0
- package/README.md +87 -0
- package/dist/cld-video-player.css +2110 -0
- package/dist/cld-video-player.js +5249 -0
- package/dist/cld-video-player.light.css +1766 -0
- package/dist/cld-video-player.light.js +1399 -0
- package/dist/cld-video-player.light.min.css +1 -0
- package/dist/cld-video-player.light.min.js +2 -0
- package/dist/cld-video-player.light.min.js.LICENSE.txt +23 -0
- package/dist/cld-video-player.min.css +1 -0
- package/dist/cld-video-player.min.js +2 -0
- package/dist/cld-video-player.min.js.LICENSE.txt +26 -0
- package/dist/fonts/cloudinary_icon_for_black_bg.svg +69 -0
- package/dist/fonts/cloudinary_icon_for_white_bg.svg +69 -0
- package/docs/360.html +102 -0
- package/docs/_template.html +93 -0
- package/docs/adaptive-streaming.html +297 -0
- package/docs/analytics.html +140 -0
- package/docs/api.html +302 -0
- package/docs/audio.html +136 -0
- package/docs/autoplay-fallback.html +138 -0
- package/docs/autoplay-on-scroll.html +107 -0
- package/docs/codec-fallback.html +158 -0
- package/docs/colors.html +135 -0
- package/docs/components.html +284 -0
- package/docs/custom-cld-errors.html +134 -0
- package/docs/floating-player.html +98 -0
- package/docs/fluid.html +117 -0
- package/docs/force-hls-subtitles-ios.html +159 -0
- package/docs/index.html +83 -0
- package/docs/interaction-area.html +398 -0
- package/docs/live-customer.html +128 -0
- package/docs/multiple-players.html +125 -0
- package/docs/playlist-by-tag-cap.html +182 -0
- package/docs/playlist-by-tag.html +133 -0
- package/docs/playlist.html +133 -0
- package/docs/poster.html +155 -0
- package/docs/raw-url.html +104 -0
- package/docs/recommendations.html +155 -0
- package/docs/scripts.js +156 -0
- package/docs/seek-thumbs.html +90 -0
- package/docs/shoppable.html +335 -0
- package/docs/subtitles-and-captions.html +267 -0
- package/docs/transformations.html +171 -0
- package/docs/ui-config.html +108 -0
- package/docs/vast-vpaid.html +149 -0
- package/env.example.js +6 -0
- package/env.js +6 -0
- package/jest-puppeteer.config.js +14 -0
- package/jest.config.js +196 -0
- package/package.json +99 -0
- package/sandbox.config.json +3 -0
- package/setupJest.js +1 -0
- package/src/assets/fonts/VideoJS.svg +120 -0
- package/src/assets/fonts/VideoJS.ttf +0 -0
- package/src/assets/fonts/VideoJS.woff +0 -0
- package/src/assets/fonts/icons.json +120 -0
- package/src/assets/icons/cloudinary_icon_for_black_bg.svg +69 -0
- package/src/assets/icons/cloudinary_icon_for_white_bg.svg +69 -0
- package/src/assets/icons/cloudinary_logo_for_dark_bg.svg +188 -0
- package/src/assets/icons/cloudinary_logo_for_white_bg.svg +188 -0
- package/src/assets/icons/info-circle.svg +17 -0
- package/src/assets/styles/ads-label.scss +16 -0
- package/src/assets/styles/components/interaction-areas.scss +158 -0
- package/src/assets/styles/components/playlist.scss +213 -0
- package/src/assets/styles/components/themedButton.scss +48 -0
- package/src/assets/styles/components/thumbnail.scss +94 -0
- package/src/assets/styles/components/title-bar.scss +67 -0
- package/src/assets/styles/components/triangle-volume-bar.scss +52 -0
- package/src/assets/styles/icons.scss +257 -0
- package/src/assets/styles/main.scss +324 -0
- package/src/assets/styles/mixins/aspect-ratio.scss +16 -0
- package/src/assets/styles/mixins/disable-transition.scss +3 -0
- package/src/assets/styles/mixins/mixins.scss +5 -0
- package/src/assets/styles/mixins/skin.scss +64 -0
- package/src/assets/styles/variables.scss +2 -0
- package/src/assets/styles/videojs-ima.scss +252 -0
- package/src/components/component-utils.js +20 -0
- package/src/components/index.js +21 -0
- package/src/components/interaction-area/interaction-area.const.js +30 -0
- package/src/components/interaction-area/interaction-area.service.js +223 -0
- package/src/components/interaction-area/interaction-area.utils.js +236 -0
- package/src/components/jumpButtons/jump-10-minus.js +21 -0
- package/src/components/jumpButtons/jump-10-plus.js +20 -0
- package/src/components/logoButton/logo-button.const.js +3 -0
- package/src/components/logoButton/logo-button.js +30 -0
- package/src/components/logoButton/logo-button.scss +15 -0
- package/src/components/playlist/components/playlist-button.js +34 -0
- package/src/components/playlist/components/playlist-next-button.js +18 -0
- package/src/components/playlist/components/playlist-previous-button.js +18 -0
- package/src/components/playlist/components/playlist.js +5 -0
- package/src/components/playlist/components/playlist.scss +15 -0
- package/src/components/playlist/components/upcoming-video-overlay.js +149 -0
- package/src/components/playlist/components/upcoming-video-overlay.scss +86 -0
- package/src/components/playlist/layout/playlist-layout-custom.js +21 -0
- package/src/components/playlist/layout/playlist-layout-horizontal.js +16 -0
- package/src/components/playlist/layout/playlist-layout-vertical.js +19 -0
- package/src/components/playlist/layout/playlist-layout.js +110 -0
- package/src/components/playlist/panel/playlist-panel-item.js +86 -0
- package/src/components/playlist/panel/playlist-panel.js +92 -0
- package/src/components/playlist/playlist-widget.js +119 -0
- package/src/components/playlist/playlist.const.js +14 -0
- package/src/components/playlist/playlist.js +413 -0
- package/src/components/playlist/thumbnail/thumbnail.js +69 -0
- package/src/components/progress-control-events-blocker/progress-control-events-blocker.js +17 -0
- package/src/components/qualitySelector/quality-selector.scss +10 -0
- package/src/components/qualitySelector/qualitySelector.js +152 -0
- package/src/components/recommendations-overlay/index.js +3 -0
- package/src/components/recommendations-overlay/recommendations-overlay-content.js +57 -0
- package/src/components/recommendations-overlay/recommendations-overlay-hide-button.js +18 -0
- package/src/components/recommendations-overlay/recommendations-overlay-item.js +35 -0
- package/src/components/recommendations-overlay/recommendations-overlay-primary-item.js +81 -0
- package/src/components/recommendations-overlay/recommendations-overlay-secondary-item.js +48 -0
- package/src/components/recommendations-overlay/recommendations-overlay-secondary-items-container.js +35 -0
- package/src/components/recommendations-overlay/recommendations-overlay.js +94 -0
- package/src/components/recommendations-overlay/recommendations-overlay.scss +182 -0
- package/src/components/shoppable-bar/layout/bar-layout.js +111 -0
- package/src/components/shoppable-bar/layout/shoppable-panel-toggle.js +64 -0
- package/src/components/shoppable-bar/layout/shoppable-products-overlay.js +87 -0
- package/src/components/shoppable-bar/panel/shoppable-panel-item.js +105 -0
- package/src/components/shoppable-bar/panel/shoppable-panel.js +172 -0
- package/src/components/shoppable-bar/shoppable-post-widget.js +110 -0
- package/src/components/shoppable-bar/shoppable-widget.const.js +52 -0
- package/src/components/shoppable-bar/shoppable-widget.js +111 -0
- package/src/components/shoppable-bar/shoppable-widget.scss +359 -0
- package/src/components/themeButton/themedButton.const.js +3 -0
- package/src/components/themeButton/themedButton.js +25 -0
- package/src/components/title-bar/title-bar.js +79 -0
- package/src/config/defaults.js +25 -0
- package/src/extended-events.js +228 -0
- package/src/index.js +18 -0
- package/src/mixins/eventable.js +54 -0
- package/src/mixins/playlistable.js +106 -0
- package/src/plugins/analytics/index.js +245 -0
- package/src/plugins/autoplay-on-scroll/index.js +86 -0
- package/src/plugins/cloudinary/common.js +216 -0
- package/src/plugins/cloudinary/event-handler-registry.js +46 -0
- package/src/plugins/cloudinary/index.js +345 -0
- package/src/plugins/cloudinary/models/audio-source/audio-source.const.js +11 -0
- package/src/plugins/cloudinary/models/audio-source/audio-source.js +82 -0
- package/src/plugins/cloudinary/models/base-source.js +107 -0
- package/src/plugins/cloudinary/models/image-source.js +26 -0
- package/src/plugins/cloudinary/models/video-source/video-source.const.js +32 -0
- package/src/plugins/cloudinary/models/video-source/video-source.js +239 -0
- package/src/plugins/cloudinary/models/video-source/video-source.utils.js +57 -0
- package/src/plugins/colors/index.js +303 -0
- package/src/plugins/context-menu/components/context-menu-item.js +12 -0
- package/src/plugins/context-menu/components/context-menu.js +63 -0
- package/src/plugins/context-menu/context-menu.scss +30 -0
- package/src/plugins/context-menu/contextMenuContent.js +53 -0
- package/src/plugins/context-menu/index.js +134 -0
- package/src/plugins/dash/index.js +26 -0
- package/src/plugins/dash/setup-audio-tracks.js +112 -0
- package/src/plugins/dash/setup-text-tracks.js +195 -0
- package/src/plugins/dash/videojs-dash.js +372 -0
- package/src/plugins/floating-player/floating-player.scss +74 -0
- package/src/plugins/floating-player/index.js +129 -0
- package/src/plugins/ima/index.js +1775 -0
- package/src/plugins/index.js +31 -0
- package/src/plugins/interactive-plugin/index.js +10 -0
- package/src/plugins/videojs-http-source-selector/components/SourceMenuButton.js +98 -0
- package/src/plugins/videojs-http-source-selector/components/SourceMenuItem.js +52 -0
- package/src/plugins/videojs-http-source-selector/plugin.js +82 -0
- package/src/plugins/videojs-http-source-selector/plugin.scss +9 -0
- package/src/plugins/vtt-thumbnails/index.js +526 -0
- package/src/plugins/vtt-thumbnails/vtt-thumbnails.scss +29 -0
- package/src/utils/api.js +32 -0
- package/src/utils/apply-with-props.js +32 -0
- package/src/utils/array.js +22 -0
- package/src/utils/assign.js +27 -0
- package/src/utils/attributes-normalizer.js +72 -0
- package/src/utils/cloudinary.js +165 -0
- package/src/utils/css-prefix.js +43 -0
- package/src/utils/dom.js +74 -0
- package/src/utils/find.js +28 -0
- package/src/utils/fontFace.js +25 -0
- package/src/utils/groupBy.js +12 -0
- package/src/utils/index.js +29 -0
- package/src/utils/matches.js +11 -0
- package/src/utils/mixin.js +5 -0
- package/src/utils/object.js +26 -0
- package/src/utils/playButton.js +9 -0
- package/src/utils/positioning.js +78 -0
- package/src/utils/querystring.js +12 -0
- package/src/utils/slicing.js +21 -0
- package/src/utils/string.js +15 -0
- package/src/utils/throttle.js +30 -0
- package/src/utils/time.js +77 -0
- package/src/utils/type-inference.js +35 -0
- package/src/validators/validators-functions.js +48 -0
- package/src/validators/validators-types.js +78 -0
- package/src/validators/validators.js +110 -0
- package/src/video-player.const.js +68 -0
- package/src/video-player.js +761 -0
- package/src/video-player.utils.js +123 -0
- package/test/adaptive-streaming.test.js +38 -0
- package/test/ads.test.js +35 -0
- package/test/analytics.test.js +111 -0
- package/test/api.test.js +111 -0
- package/test/autoplay.scroll.test.js +23 -0
- package/test/basic-ui.test.js +59 -0
- package/test/colors.test.js +58 -0
- package/test/components.test.js +21 -0
- package/test/custom-error.test.js +24 -0
- package/test/fluid.test.js +36 -0
- package/test/isValidConfig.test.js +224 -0
- package/test/mocks/cloudinary-core-mock.js +0 -0
- package/test/mocks/styleMock.js +1 -0
- package/test/multiplayer.test.js +25 -0
- package/test/playlist.test.js +60 -0
- package/test/puppeteer/vp-env.js +19 -0
- package/test/recommendations.test.js +38 -0
- package/test/title-bar.test.js +28 -0
- package/test/ui-conf.test.js +49 -0
- package/test/unit/cloudinaryConfig.test.js +22 -0
- package/test/unit/cloudinaryUtils.test.js +53 -0
- package/test/unit/utils.test.js +27 -0
- package/test/unit/videoSource.test.js +454 -0
- package/tsconfig.json +15 -0
- package/types/video-player-tests.js +12 -0
- package/types/video-player-tests.ts +31 -0
- package/types/video-player.d.ts +570 -0
package/.eslintignore
ADDED
package/.snyk
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
|
|
2
|
+
version: v1.16.0
|
|
3
|
+
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
|
|
4
|
+
ignore:
|
|
5
|
+
'npm:mem:20180117':
|
|
6
|
+
- jest-webpack > yargs > os-locale > mem:
|
|
7
|
+
reason: None given
|
|
8
|
+
expires: '2019-03-02T12:06:33.051Z'
|
|
9
|
+
'npm:shelljs:20140723':
|
|
10
|
+
- eslint > shelljs:
|
|
11
|
+
reason: None given
|
|
12
|
+
expires: '2019-03-02T12:06:33.051Z'
|
|
13
|
+
# patches apply the minimum changes required to fix a vulnerability
|
|
14
|
+
patch:
|
|
15
|
+
SNYK-JS-LODASH-567746:
|
|
16
|
+
- videojs-ima > lodash:
|
|
17
|
+
patched: '2020-05-03T06:05:08.670Z'
|
|
18
|
+
- dashjs > request-promise > request-promise-core > lodash:
|
|
19
|
+
patched: '2020-07-06T12:04:07.601Z'
|
package/.travis.yml
ADDED
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
1.6.2-edge.13 / 2021-09-26
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
Fixes
|
|
5
|
+
------
|
|
6
|
+
playedEventTimes event was fired once
|
|
7
|
+
|
|
8
|
+
1.6.2-edge.12 / 2021-08-17
|
|
9
|
+
==================
|
|
10
|
+
|
|
11
|
+
Changes
|
|
12
|
+
------------
|
|
13
|
+
set manual interaction areas template using config and not a function
|
|
14
|
+
|
|
15
|
+
1.6.2-edge.11 / 2021-08-11
|
|
16
|
+
==================
|
|
17
|
+
|
|
18
|
+
Changes
|
|
19
|
+
---------
|
|
20
|
+
Webpack should not remove console.error
|
|
21
|
+
|
|
22
|
+
1.6.2-edge.10 / 2021-08-08
|
|
23
|
+
==================
|
|
24
|
+
|
|
25
|
+
Changes
|
|
26
|
+
---------
|
|
27
|
+
- Add validators for video player configs
|
|
28
|
+
- interaction areas have not been supported in the light version
|
|
29
|
+
|
|
30
|
+
1.6.2-edge.9 / 2021-08-04
|
|
31
|
+
==================
|
|
32
|
+
|
|
33
|
+
fixes
|
|
34
|
+
-----
|
|
35
|
+
webpack build fix
|
|
36
|
+
|
|
37
|
+
changes:
|
|
38
|
+
---------
|
|
39
|
+
adding a transition to interaction-area items
|
|
40
|
+
|
|
41
|
+
1.6.2-edge.8 / 2021-07-27
|
|
42
|
+
==================
|
|
43
|
+
|
|
44
|
+
Fixes:
|
|
45
|
+
----------
|
|
46
|
+
fix: console error when passing transformation array to a source
|
|
47
|
+
|
|
48
|
+
1.6.2-edge.7 / 2021-07-26
|
|
49
|
+
==================
|
|
50
|
+
|
|
51
|
+
Fixes
|
|
52
|
+
-------
|
|
53
|
+
Check if interaction areas layout enable fix
|
|
54
|
+
|
|
55
|
+
1.6.2-edge.6 / 2021-07-25
|
|
56
|
+
==================
|
|
57
|
+
|
|
58
|
+
Fixes:
|
|
59
|
+
------------
|
|
60
|
+
fix: interaction-areas layout glitching
|
|
61
|
+
fix : style hover interaction-areas layout
|
|
62
|
+
|
|
63
|
+
Changes:
|
|
64
|
+
------------
|
|
65
|
+
Changing video-player interaction-areas config
|
|
66
|
+
|
|
67
|
+
1.6.2-edge.5 / 2021-07-22
|
|
68
|
+
==================
|
|
69
|
+
|
|
70
|
+
Fixes
|
|
71
|
+
-----------------
|
|
72
|
+
fix css glitch for interaction-areas-container
|
|
73
|
+
video not working if google analytics script is missing
|
|
74
|
+
|
|
75
|
+
Changes
|
|
76
|
+
---------
|
|
77
|
+
improve interaction area layout message
|
|
78
|
+
|
|
79
|
+
1.6.2-edge.4 / 2021-07-21
|
|
80
|
+
==================
|
|
81
|
+
|
|
82
|
+
Fixes
|
|
83
|
+
-------
|
|
84
|
+
small fix - check if interactionLayout object is defined
|
|
85
|
+
|
|
86
|
+
1.6.2-edge.3 / 2021-07-20
|
|
87
|
+
==================
|
|
88
|
+
|
|
89
|
+
Changes:
|
|
90
|
+
-------------------
|
|
91
|
+
Improve interaction area position function
|
|
92
|
+
Add pulse animation to the dots on video zoom
|
|
93
|
+
Hide Interaction areas layout message after 2.5 sec
|
|
94
|
+
|
|
95
|
+
1.6.2-edge.2 / 2021-07-15
|
|
96
|
+
==================
|
|
97
|
+
|
|
98
|
+
Fixes:
|
|
99
|
+
-------------
|
|
100
|
+
fix: Do not add video codec if it is already defined.
|
|
101
|
+
fix: Interaction area point should be as video player Skin theme color
|
|
102
|
+
fix: Hover on the mute\unmute button, Video controllers move outside of the video container
|
|
103
|
+
|
|
104
|
+
1.6.2-edge.1 / 2021-07-13
|
|
105
|
+
==================
|
|
106
|
+
|
|
107
|
+
Fixes:
|
|
108
|
+
--------------
|
|
109
|
+
fix: in some cases interaction area dots get stuck
|
|
110
|
+
fix: layout message disappears when video on autoplay mode
|
|
111
|
+
fix: after zoom out in full screen the interaction areas move (set manually)
|
|
112
|
+
fix: interaction area dots flickering
|
|
113
|
+
|
|
114
|
+
Other Changes
|
|
115
|
+
--------------
|
|
116
|
+
update dependencies
|
|
117
|
+
|
|
118
|
+
1.6.2-edge.0 / 2021-07-05
|
|
119
|
+
==================
|
|
120
|
+
|
|
121
|
+
Fixes:
|
|
122
|
+
--------
|
|
123
|
+
fix: source copy, ie11 fix
|
|
124
|
+
fix: interaction areas size in full screen are not on the right size
|
|
125
|
+
|
|
126
|
+
Other Changes
|
|
127
|
+
--------------
|
|
128
|
+
interaction areas new look
|
|
129
|
+
|
|
130
|
+
1.6.1-edge.6 / 2021-06-30
|
|
131
|
+
==================
|
|
132
|
+
|
|
133
|
+
Fixes
|
|
134
|
+
--------
|
|
135
|
+
fix: option { controlBar: false } generates errors
|
|
136
|
+
fix: more ie fix , source copy for ie fix
|
|
137
|
+
|
|
138
|
+
1.6.1-edge.5 / 2021-06-27
|
|
139
|
+
==================
|
|
140
|
+
|
|
141
|
+
Fixes
|
|
142
|
+
---------
|
|
143
|
+
IE11 fixes
|
|
144
|
+
|
|
145
|
+
1.6.1-edge.4 / 2021-06-23
|
|
146
|
+
==================
|
|
147
|
+
|
|
148
|
+
Fixes
|
|
149
|
+
--------
|
|
150
|
+
fix play big button z-index bug
|
|
151
|
+
|
|
152
|
+
1.6.1-edge.3 / 2021-06-22
|
|
153
|
+
==================
|
|
154
|
+
|
|
155
|
+
Fixes
|
|
156
|
+
------------
|
|
157
|
+
fix videos in dash not playing
|
|
158
|
+
|
|
159
|
+
1.6.1-edge.2 / 2021-06-20
|
|
160
|
+
==================
|
|
161
|
+
|
|
162
|
+
Fixes
|
|
163
|
+
--------
|
|
164
|
+
reimplement isObj to work in IE11
|
|
165
|
+
|
|
166
|
+
1.6.1-edge.1 / 2021-06-16
|
|
167
|
+
==================
|
|
168
|
+
|
|
169
|
+
fix
|
|
170
|
+
----
|
|
171
|
+
fix: interaction-area auto-cropping calculation function
|
|
172
|
+
|
|
173
|
+
1.6.1-edge.0 / 2021-06-14
|
|
174
|
+
==================
|
|
175
|
+
|
|
176
|
+
fixed:
|
|
177
|
+
--------
|
|
178
|
+
some refactoring
|
|
179
|
+
|
|
180
|
+
1.6.0-edge.2 / 2021-06-14
|
|
181
|
+
==================
|
|
182
|
+
|
|
183
|
+
Fixes
|
|
184
|
+
---------
|
|
185
|
+
some refactoring
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
1.6.0-edge.1 / 2021-06-13
|
|
189
|
+
==================
|
|
190
|
+
|
|
191
|
+
Fixes
|
|
192
|
+
------
|
|
193
|
+
fix: workaround safari hls h265 problem
|
|
194
|
+
fix: add a source if there is no codec
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
1.6.0-edge.0 / 2021-06-02
|
|
198
|
+
==================
|
|
199
|
+
|
|
200
|
+
New functionality and features
|
|
201
|
+
------------------------------
|
|
202
|
+
* Add interaction areas (#254)
|
|
203
|
+
* Add handling non existent texttracks (#252)
|
|
204
|
+
|
|
205
|
+
Fixes
|
|
206
|
+
------------------------------
|
|
207
|
+
* Fix fluid posted CSS (#247)
|
|
208
|
+
* Fix handleCldError not returning statusCode (#248)
|
|
209
|
+
* Fix retry timeout not clearing on play (#240)
|
|
210
|
+
* Fix big button disappearing in IE11 (#244)
|
|
211
|
+
|
|
212
|
+
Other Changes
|
|
213
|
+
------------------------------
|
|
214
|
+
* Update dependencies (#236)
|
|
215
|
+
* Minor refactor for code syntax (linting + let/const)
|
|
216
|
+
|
|
217
|
+
1.5.3 / 2021-03-29
|
|
218
|
+
==================
|
|
219
|
+
|
|
220
|
+
Fixes
|
|
221
|
+
-----
|
|
222
|
+
* Fix seek thumbnails for adaptive videos (#232)
|
|
223
|
+
* Filter out dash sources on safari (#235)
|
|
224
|
+
* Update subtitles crossorigin definition to be "anonymous"
|
|
225
|
+
* Fix recommendations displayed in the light version
|
|
226
|
+
* Fix autoplay on fallback (#227)
|
|
227
|
+
* Fix dash seek behavior and error handling (#228)
|
|
228
|
+
* Fix error when playing a second HLS video (#226)
|
|
229
|
+
* Fix seek thumbnails image path (#223)
|
|
230
|
+
* Fix dash.js error handling: pass dash errors to videojs (#219)
|
|
231
|
+
|
|
232
|
+
Other Changes
|
|
233
|
+
---------------
|
|
234
|
+
* Add example of how to force subtitles in an HLS stream (#231)
|
|
235
|
+
* Use native hls text tracks by default (#229)
|
|
236
|
+
* Add type declaration for cloudinary-core module
|
|
237
|
+
* Add example of subtitles for playlistByTag (#220)
|
|
238
|
+
* bump dashjs to version 3.2.1
|
|
239
|
+
* Bump elliptic from 6.5.3 to 6.5.4
|
|
240
|
+
* Bump node-notifier from 8.0.0 to 8.0.1
|
|
241
|
+
* Bump ini from 1.3.5 to 1.3.7
|
|
242
|
+
|
|
243
|
+
1.5.2 / 2021-03-25
|
|
244
|
+
==================
|
|
245
|
+
* This version is identical to 1.5.1
|
|
246
|
+
|
|
247
|
+
1.5.2-edge.4 / 2021-03-18
|
|
248
|
+
==================
|
|
249
|
+
|
|
250
|
+
Fixes
|
|
251
|
+
-----
|
|
252
|
+
* Fix seek thumbnails for adaptive videos (#232)
|
|
253
|
+
* Filter out dash sources on safari (#235)
|
|
254
|
+
* Update subtitles crossorigin definition to be "anonymous"
|
|
255
|
+
* Fix recommendations displayed in the light version
|
|
256
|
+
|
|
257
|
+
Other Changes
|
|
258
|
+
-------------
|
|
259
|
+
* Bump elliptic from 6.5.3 to 6.5.4
|
|
260
|
+
* Add example of how to force subtitles in an HLS stream (#231)
|
|
261
|
+
* bump dashjs to version 3.2.1
|
|
262
|
+
|
|
263
|
+
1.5.2-edge.3 / 2021-02-22
|
|
264
|
+
==================
|
|
265
|
+
|
|
266
|
+
Fixes
|
|
267
|
+
-----
|
|
268
|
+
* Fix autoplay on fallback (#227)
|
|
269
|
+
* Fix dash seek behavior and error handling (#228)
|
|
270
|
+
|
|
271
|
+
Other changes
|
|
272
|
+
-------------
|
|
273
|
+
* Use native hls text tracks by default (#229)
|
|
274
|
+
|
|
275
|
+
1.5.2-edge.2 / 2021-01-18
|
|
276
|
+
==================
|
|
277
|
+
|
|
278
|
+
* Fix error when playing a second HLS video (#226)
|
|
279
|
+
|
|
280
|
+
1.5.2-edge.1 / 2020-12-29
|
|
281
|
+
==================
|
|
282
|
+
|
|
283
|
+
* Fix seek thumbnails image path (#223)
|
|
284
|
+
* Add type declaration for cloudinary-core module
|
|
285
|
+
* Bump node-notifier from 8.0.0 to 8.0.1
|
|
286
|
+
* Bump ini from 1.3.5 to 1.3.7
|
|
287
|
+
|
|
288
|
+
1.5.2-edge.0 / 2020-11-23
|
|
289
|
+
==================
|
|
290
|
+
|
|
291
|
+
* Fix dash.js error handling: pass dash errors to videojs (#219)
|
|
292
|
+
* Add example for subtitles for playlistByTag (#220)
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
1.5.1-edge.0 / 2020-11-22
|
|
296
|
+
==================
|
|
297
|
+
|
|
298
|
+
* Fix: remove adaptive streaming from light version
|
|
299
|
+
|
|
300
|
+
1.5.0 / 2020-11-10
|
|
301
|
+
==================
|
|
302
|
+
|
|
303
|
+
New functionality and features
|
|
304
|
+
------------------------------
|
|
305
|
+
* Add support for playing raw url
|
|
306
|
+
* Add support for quality selector
|
|
307
|
+
* Add support for seekbar thumbnails
|
|
308
|
+
|
|
309
|
+
Fixes
|
|
310
|
+
-----
|
|
311
|
+
* Fix null error on source change
|
|
312
|
+
* Fix ie11 support in Shoppable Videos
|
|
313
|
+
* Fix raw url source type
|
|
314
|
+
* Fix shoppable video hotspot timing
|
|
315
|
+
* Ignore non existent texttracks
|
|
316
|
+
* Fix duplicate logo button
|
|
317
|
+
* Fix seek thumbnails in ie11
|
|
318
|
+
* Fix dash quality selector
|
|
319
|
+
* Fix quality selector in ie11
|
|
320
|
+
* Fix text tracks in ie11
|
|
321
|
+
|
|
322
|
+
Other changes
|
|
323
|
+
-------------
|
|
324
|
+
* Remove Array.find polyfill
|
|
325
|
+
* Update Cloudinary logo
|
|
326
|
+
* Set seekThumbnails to false by default
|
|
327
|
+
* Generate https sources by default
|
|
328
|
+
* Move expose-loader to dev dependencies
|
|
329
|
+
* Update dependencies
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2016 Cloudinary
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
# cloudinary-video-player
|
|
2
|
+
|
|
3
|
+
The Cloudinary Video Player is a JavaScript-based HTML5 video player bundled with many valuable customization and integration capabilities, and is monetization and analytics-ready. The player is fully responsive for use in any device or screen size, and is integrated with Cloudinary's video delivery and manipulation solution.
|
|
4
|
+
|
|
5
|
+
This README includes basic information for installation and getting started. View the [documentation](https://cloudinary.com/documentation/cloudinary_video_player) for comprehensive guidance on integration and all the available features.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
### NPM
|
|
10
|
+
1. Install the files using:
|
|
11
|
+
|
|
12
|
+
```shell
|
|
13
|
+
npm install lodash cloudinary-core cloudinary-video-player
|
|
14
|
+
```
|
|
15
|
+
1. Include the javascript file in your HTML. For Example:
|
|
16
|
+
|
|
17
|
+
```html
|
|
18
|
+
<link href="node_modules/cloudinary-video-player/dist/cld-video-player.min.css" rel="stylesheet">
|
|
19
|
+
|
|
20
|
+
<script src="node_modules/lodash/lodash.js" type="text/javascript"></script>
|
|
21
|
+
<script src="node_modules/cloudinary-core/cloudinary-core.js" type="text/javascript"></script>
|
|
22
|
+
<script src="node_modules/cloudinary-video-player/dist/cld-video-player.min.js" type="text/javascript"></script>
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### CDN
|
|
26
|
+
|
|
27
|
+
Cloudinary Video Player can also be included directly from the [Unpkg CDN](https://unpkg.com/#/):
|
|
28
|
+
|
|
29
|
+
```html
|
|
30
|
+
<link href="https://unpkg.com/cloudinary-video-player/dist/cld-video-player.min.css" rel="stylesheet">
|
|
31
|
+
|
|
32
|
+
<script src="https://unpkg.com/cloudinary-core/cloudinary-core-shrinkwrap.min.js" type="text/javascript"></script>
|
|
33
|
+
<script src="https://unpkg.com/cloudinary-video-player/dist/cld-video-player.min.js" type="text/javascript"></script>
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### Packages
|
|
37
|
+
|
|
38
|
+
The Cloudinary video player offers standard and light package variations, available in either minified or non-minified formats.
|
|
39
|
+
* Standard package: Includes all functionality described in this video player [documentation](https://cloudinary.com/documentation/cloudinary_video_player).
|
|
40
|
+
* Light package: Excludes the following optional functionality: Adaptive bitrate streaming (HLS and MPEG-DASH), Video ads, Shoppable videos (alpha)
|
|
41
|
+
|
|
42
|
+
- `cld-video-player.js` - Non minified version which includes all optional modules.
|
|
43
|
+
- `cld-video-player.min.js` - Minified version which includes all optional modules.
|
|
44
|
+
- `cld-video-player.light.js` - Non minified version which does not include any optional modules.
|
|
45
|
+
- `cld-video-player.light.min.js` - Minified version which does not include any optional modules. (for smaller bundle size)
|
|
46
|
+
|
|
47
|
+
### Cloudinary JavaScript library
|
|
48
|
+
|
|
49
|
+
The Core Cloudinary JavaScript library provides several classes, defined under the "`cloudinary`" domain. The reference documentation is located at https://cloudinary.github.io/pkg-cloudinary-core
|
|
50
|
+
|
|
51
|
+
## Getting started
|
|
52
|
+
|
|
53
|
+
Create a video tag containing `cld-video-player` class and a supported skin class:
|
|
54
|
+
```html
|
|
55
|
+
<video
|
|
56
|
+
id="example-player"
|
|
57
|
+
controls
|
|
58
|
+
autoplay
|
|
59
|
+
data-cld-public-id="dog"
|
|
60
|
+
class="cld-video-player cld-video-player-skin-dark">
|
|
61
|
+
</video>
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
Instantiate a new `cloudinary.Cloudinary` instance containing your cloudinary configuration:
|
|
65
|
+
|
|
66
|
+
```javascript
|
|
67
|
+
var cld = cloudinary.Cloudinary.new({ cloud_name: "demo"});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
Instantiate a new cloudinary Video Player:
|
|
71
|
+
```javascript
|
|
72
|
+
cld.videoPlayer('example-player')
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
## Documentation
|
|
76
|
+
- [Documentation](https://cloudinary.com/documentation/cloudinary_video_player)
|
|
77
|
+
- [API Reference](https://cloudinary.com/documentation/video_player_api_reference)
|
|
78
|
+
- [Demo](https://demo.cloudinary.com/video-player/)
|
|
79
|
+
- [Code Examples](https://cloudinary.github.io/cloudinary-video-player/)
|
|
80
|
+
- [Video Player Studio](https://studio.cloudinary.com/)
|
|
81
|
+
|
|
82
|
+
## Development
|
|
83
|
+
In order to run this project locally:
|
|
84
|
+
1. [Install yarn](https://yarnpkg.com/lang/en/docs/install/)
|
|
85
|
+
1. Clone this repository
|
|
86
|
+
1. `yarn install`
|
|
87
|
+
1. `yarn start`
|