cloudinary-video-player 1.5.8 → 1.5.9
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/CHANGELOG.md +12 -0
- package/dist/cld-video-player.js +4 -4
- package/dist/cld-video-player.light.js +2 -2
- package/dist/cld-video-player.light.min.js +1 -1
- package/dist/cld-video-player.min.js +1 -1
- package/docs/interaction-area.html +2 -2
- package/package.json +1 -1
- package/src/components/interaction-area/interaction-area.service.js +2 -2
- package/src/components/interaction-area/interaction-area.utils.js +1 -1
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
|
|
30
30
|
var playerOption = {
|
|
31
31
|
bigPlayButton: false,
|
|
32
|
-
|
|
32
|
+
interactionDisplay: {
|
|
33
33
|
theme:{
|
|
34
34
|
template : 'pulsing'
|
|
35
35
|
},
|
|
@@ -151,7 +151,7 @@
|
|
|
151
151
|
var cld = cloudinary.Cloudinary.new({cloud_name: 'demo'});
|
|
152
152
|
|
|
153
153
|
cld.videoPlayer('player', {
|
|
154
|
-
|
|
154
|
+
interactionDisplay: {
|
|
155
155
|
theme:{
|
|
156
156
|
template : 'pulsing' // 'pulsing' / 'shadowed' (the default is 'pulsing')
|
|
157
157
|
},
|
package/package.json
CHANGED
|
@@ -28,7 +28,7 @@ export const interactionAreaService = (player, playerOptions, videojsOptions) =>
|
|
|
28
28
|
let currentTrack = null;
|
|
29
29
|
let unZoom = noop;
|
|
30
30
|
|
|
31
|
-
const shouldLayoutMessage = () => shouldShowAreaLayoutMessage(videojsOptions.
|
|
31
|
+
const shouldLayoutMessage = () => shouldShowAreaLayoutMessage(videojsOptions.interactionDisplay);
|
|
32
32
|
|
|
33
33
|
function isInteractionAreasEnabled(enabled = false) {
|
|
34
34
|
const interactionAreasConfig = getInteractionAreasConfig();
|
|
@@ -87,7 +87,7 @@ export const interactionAreaService = (player, playerOptions, videojsOptions) =>
|
|
|
87
87
|
|
|
88
88
|
if (shouldLayoutMessage()) {
|
|
89
89
|
let layoutMessageTimout = null;
|
|
90
|
-
const showItAgainCheckbox = get(videojsOptions, '
|
|
90
|
+
const showItAgainCheckbox = get(videojsOptions, 'interactionDisplay.layout.showAgain', false);
|
|
91
91
|
player.pause();
|
|
92
92
|
|
|
93
93
|
createInteractionAreaLayoutMessage(player.videojs, () => {
|
|
@@ -22,7 +22,7 @@ export const getInteractionAreaItem = ({ playerOptions, videojsOptions }, item,
|
|
|
22
22
|
const accentColor = playerOptions && playerOptions.colors ? playerOptions.colors.accent : defaultColor.accent;
|
|
23
23
|
|
|
24
24
|
// theme = 'pulsing' / 'shadowed'
|
|
25
|
-
const theme = get(videojsOptions, '
|
|
25
|
+
const theme = get(videojsOptions, 'interactionDisplay.theme.template', INTERACTION_AREAS_THEME.PULSING);
|
|
26
26
|
|
|
27
27
|
return elementsCreator({
|
|
28
28
|
tag: 'div',
|