cloudinary-video-player 3.14.1 → 3.14.2-edge.1

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.
Files changed (80) hide show
  1. package/README.md +3 -13
  2. package/dist/149.min.js +6 -0
  3. package/dist/309.min.js +3 -3
  4. package/dist/689.min.js +2 -2
  5. package/dist/801.min.js +6 -0
  6. package/dist/adaptive-streaming.js +2 -2
  7. package/dist/adaptive-streaming.min.js +2 -2
  8. package/dist/chapters.js +2 -2
  9. package/dist/chapters.min.js +2 -2
  10. package/dist/cld-player-core.js +3119 -11
  11. package/dist/cld-player-core.min.js +3 -3
  12. package/dist/cld-poster-url.js +2 -2
  13. package/dist/cld-poster-url.min.js +2 -2
  14. package/dist/cld-video-player.css +5 -5
  15. package/dist/cld-video-player.js +43 -42
  16. package/dist/cld-video-player.light.js +43 -42
  17. package/dist/cld-video-player.light.min.js +3 -5
  18. package/dist/cld-video-player.min.css +2 -2
  19. package/dist/cld-video-player.min.js +3 -5
  20. package/dist/colors.js +2 -2
  21. package/dist/colors.min.js +2 -2
  22. package/dist/dash.js +2 -2
  23. package/dist/dash.min.js +2 -2
  24. package/dist/debug.js +2 -2
  25. package/dist/debug.min.js +2 -2
  26. package/dist/ima.js +2 -2
  27. package/dist/ima.min.js +2 -2
  28. package/dist/interaction-areas.js +7 -7
  29. package/dist/interaction-areas.min.js +3 -3
  30. package/dist/node_modules_lodash_throttle_js.js +2 -2
  31. package/dist/{video-player_js.js → player-full.js} +1398 -29
  32. package/dist/player-full.min.js +6 -0
  33. package/dist/player.css +3128 -0
  34. package/dist/{cld-video-player-lazy.js → player.js} +69 -101
  35. package/dist/player.min.css +5 -0
  36. package/dist/player.min.js +6 -0
  37. package/dist/playlist.js +2 -2
  38. package/dist/playlist.min.js +2 -2
  39. package/dist/recommendations-overlay.js +2 -2
  40. package/dist/recommendations-overlay.min.js +2 -2
  41. package/dist/share.js +2 -2
  42. package/dist/share.min.js +2 -2
  43. package/dist/shoppable.js +23 -23
  44. package/dist/shoppable.min.js +3 -3
  45. package/dist/utils_fetch-config_js.js +101 -2
  46. package/dist/utils_schedule_js.js +2 -2
  47. package/dist/visual-search.js +2 -2
  48. package/dist/visual-search.min.js +2 -2
  49. package/lib/all.js +3 -4
  50. package/lib/chapters.js +2 -3
  51. package/lib/cld-video-player.min.css +2 -2
  52. package/lib/cloudinary-config-from-options.js +21 -2775
  53. package/lib/colors.js +3 -2
  54. package/lib/debug.js +2 -2
  55. package/lib/fetch-config.js +0 -2
  56. package/lib/index.full.js +57 -0
  57. package/lib/index.js +128 -11
  58. package/lib/index2.js +10331 -0
  59. package/lib/{interaction-areas.service.js → interaction-areas.js} +4 -3
  60. package/lib/player-api.js +7 -2
  61. package/lib/player.min.css +5 -0
  62. package/lib/playlist-panel.js +1 -1
  63. package/lib/playlist.js +4 -3
  64. package/lib/recommendations-overlay.js +2 -3
  65. package/lib/share.js +2 -3
  66. package/lib/shoppable-post-widget.js +1 -1
  67. package/lib/{shoppable-widget.js → shoppable.js} +1 -2
  68. package/lib/throttle.js +1 -1
  69. package/lib/toNumber.js +2 -2
  70. package/lib/validators-functions.js +2 -47
  71. package/lib/video-player.const.js +47 -5
  72. package/lib/video-player.js +401 -7997
  73. package/package.json +22 -23
  74. package/dist/350.min.js +0 -6
  75. package/dist/933.min.js +0 -8
  76. package/dist/cld-video-player-lazy.min.js +0 -6
  77. package/dist/plugins_cloudinary_url-helpers_js-utils_cloudinary-config-from-options_js-utils_querystring_j-adfe37.js +0 -996
  78. package/lib/lazy.js +0 -19
  79. package/lib/player.js +0 -9
  80. package/lib/videoPlayer.js +0 -9
package/dist/chapters.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Cloudinary Video Player v3.14.1
3
- * Built on 2026-04-26T10:01:58.309Z
2
+ * Cloudinary Video Player v3.14.2-edge.1
3
+ * Built on 2026-04-29T09:18:27.638Z
4
4
  * https://github.com/cloudinary/cloudinary-video-player
5
5
  */
6
6
  "use strict";
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Cloudinary Video Player v3.14.1
3
- * Built on 2026-04-26T10:01:43.068Z
2
+ * Cloudinary Video Player v3.14.2-edge.1
3
+ * Built on 2026-04-29T09:18:10.635Z
4
4
  * https://github.com/cloudinary/cloudinary-video-player
5
5
  */
6
6
  "use strict";(self.cloudinaryVideoPlayerChunkLoading=self.cloudinaryVideoPlayerChunkLoading||[]).push([[625],{9234(t,e,r){r.d(e,{default:()=>c});var s=r(6673),a=r.n(s),i=r(5770),o=r(2415),n=r(7311);const p=function(){function t(t,e){return this.player=t,this.options=e,this.player.one("loadedmetadata",this.initializeChapters.bind(this)),this}return t.prototype.src=function(t){this.resetPlugin(),this.options=t,this.player.one("loadedmetadata",this.initializeChapters.bind(this))},t.prototype.detach=function(){this.resetPlugin()},t.prototype.resetPlugin=function(){this.chaptersTrack&&(this.player.$(".vjs-control-bar-chapter-display").remove(),this.player.$(".vjs-chapter-display").remove(),this.player.$$(".vjs-chapter-marker").forEach(t=>t.remove()),this.player.removeRemoteTextTrack(this.chaptersTrack),delete this.chaptersTrack)},t.prototype.getChaptersFileUrlByName=function(){const t=this.player.cloudinary.currentPublicId();if(!t)return null;const e=this.player.cloudinary.source(),{type:r}=e.resourceConfig(),s=`${(0,i.k$)(this.player.cloudinary.cloudinaryConfig())}/_applet_/video_service/chapters/${r}/${(0,o.G)(t)}.vtt`;return(0,n.N)(s,e.queryParams())},t.prototype.initializeChapters=async function(){const t=!0===this.options?this.getChaptersFileUrlByName():this.options.url;if(t){const e={kind:"chapters",src:t,default:!0},r=this.player.addRemoteTextTrack(e);r.addEventListener("load",()=>{this.chaptersTrack=r.track,this.setupChaptersDisplays()})}else if(Object.entries(this.options).length){const t=this.player.addRemoteTextTrack({kind:"chapters",default:!0}),e=this.player.duration();Object.entries(this.options).forEach((r,s,a)=>{const i=new VTTCue(parseFloat(r[0]),parseFloat(a[s+1]?a[s+1][0]:e),r[1]);t.track.addCue(i)}),this.chaptersTrack=t.track,this.setupChaptersDisplays(),this.player.controlBar.chaptersButton&&this.player.controlBar.chaptersButton.update()}},t.prototype.setupChaptersDisplays=function(){this.setupProgressBarMarkers(),this.setupProgressBarChapter(),this.setupControlBarChapter()},t.prototype.setupControlBarChapter=function(){const t=this.player.$(".vjs-control-bar-chapter-display")||document.createElement("div");t.setAttribute("class","vjs-control-bar-chapter-display");const e=this.player.$(".vjs-control-bar .vjs-spacer");e.innerHTML="",e.classList.add("vjs-control-bar-chapter-wrapper"),e.appendChild(t),this.chaptersTrack.addEventListener("cuechange",()=>{const e=Array.from(this.chaptersTrack.activeCues);t.innerText=e.length>0?e[0].text:""})},t.prototype.setupProgressBarMarkers=function(){const t=this.player.duration(),{seekBar:e}=this.player.controlBar.progressControl;Array.from(this.chaptersTrack.cues).forEach(r=>{if(0!==r.startTime){const s=r.startTime/t*100+"%",i=a().dom.createEl("div",void 0,{class:"vjs-chapter-marker",style:`left: ${s}`});e.el().append(i)}})},t.prototype.setupProgressBarChapter=function(){const t=a().dom.createEl("div",void 0,{class:"vjs-chapter-display",style:`max-width: ${this.player.$(".vjs-vtt-thumbnail-display")?this.player.$(".vjs-vtt-thumbnail-display").style.width:"160px"}`}),e=this.player.getDescendant(["controlBar","progressControl","seekBar","mouseTimeDisplay"]),r=e.getDescendant(["timeTooltip"]);r.el().parentElement.prepend(t);const s=t=>{const e=t*this.player.duration(),r=Array.from(this.chaptersTrack?.cues||[]).find(t=>e>=t.startTime&&e<=t.endTime);return r?r.text:""};r.update=function(e,r,a){Object.getPrototypeOf(this).update.call(this,e,r,a),t.innerText=s(r)},"object"!=typeof this.player.vttThumbnails&&(e.update=function(e,s){const i=s*this.player_.duration(),o=e.width,n=t.clientWidth/2;r.updateTime(e,s,i,()=>{e.width*s<n?this.el_.style.left=`${n}px`:e.width*s+n>o?this.el_.style.left=e.width-n+"px":this.el_.style.left=e.width*s+"px"}),r.write(a().time.formatTime(i))})},t}(),c=function(t,e){e.addClass("vjs-chapters"),e.chapters=new p(e,t)}}}]);