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.
@@ -29,7 +29,7 @@
29
29
 
30
30
  var playerOption = {
31
31
  bigPlayButton: false,
32
- interactionAreas: {
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
- interactionAreas: {
154
+ interactionDisplay: {
155
155
  theme:{
156
156
  template : 'pulsing' // 'pulsing' / 'shadowed' (the default is 'pulsing')
157
157
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloudinary-video-player",
3
- "version": "1.5.8",
3
+ "version": "1.5.9",
4
4
  "description": "Cloudinary Video Player",
5
5
  "bundlewatch": {
6
6
  "files": [
@@ -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.interactionAreas);
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, 'interactionAreas.layout.showAgain', false);
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, 'interactionAreas.theme.template', INTERACTION_AREAS_THEME.PULSING);
25
+ const theme = get(videojsOptions, 'interactionDisplay.theme.template', INTERACTION_AREAS_THEME.PULSING);
26
26
 
27
27
  return elementsCreator({
28
28
  tag: 'div',