cloudinary-video-player 3.5.3-edge.0 → 3.5.3-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/dist/adaptive-streaming.js +6 -6
- package/dist/adaptive-streaming.min.js +4 -4
- package/dist/chapters.js +3 -3
- package/dist/chapters.min.js +3 -3
- package/dist/cld-video-player.css +40 -28
- package/dist/cld-video-player.js +50 -61
- package/dist/cld-video-player.light.js +50 -61
- package/dist/cld-video-player.light.min.js +4 -4
- package/dist/cld-video-player.min.css +3 -3
- package/dist/cld-video-player.min.js +4 -4
- package/dist/colors.js +2 -2
- package/dist/colors.min.js +3 -3
- package/dist/dash.js +2 -2
- package/dist/dash.min.js +133 -133
- package/dist/debug.js +3 -3
- package/dist/debug.min.js +3 -3
- package/dist/ima.js +3 -3
- package/dist/ima.min.js +3 -3
- package/dist/interaction-areas.js +4 -4
- package/dist/interaction-areas.min.js +3 -3
- package/dist/node_modules_lodash_throttle_js.js +2 -2
- package/dist/playlist.js +9 -9
- package/dist/playlist.min.js +3 -3
- package/dist/recommendations-overlay.js +4 -4
- package/dist/recommendations-overlay.min.js +3 -3
- package/dist/schema.json +4 -0
- package/dist/share.js +3 -3
- package/dist/share.min.js +3 -3
- package/dist/shoppable.js +7 -7
- package/dist/shoppable.min.js +3 -3
- package/dist/visual-search.js +4 -4
- package/dist/visual-search.min.js +3 -3
- package/lib/adaptive-streaming.js +1 -1
- package/lib/all.js +1 -1
- package/lib/all.js.LICENSE.txt +1 -1
- package/lib/chapters.js +1 -1
- package/lib/cld-video-player.js +1 -1
- package/lib/cld-video-player.js.LICENSE.txt +1 -1
- package/lib/cld-video-player.min.css +3 -4
- package/lib/colors.js +1 -1
- package/lib/dash.js +1 -1
- package/lib/debug.js +1 -1
- package/lib/ima.js +1 -1
- package/lib/interaction-areas.js +1 -1
- package/lib/player.js +1 -1
- package/lib/player.js.LICENSE.txt +1 -1
- package/lib/playlist.js +1 -1
- package/lib/recommendations-overlay.js +1 -1
- package/lib/schema.json +4 -0
- package/lib/share.js +1 -1
- package/lib/shoppable.js +1 -1
- package/lib/videoPlayer.js +1 -1
- package/lib/videoPlayer.js.LICENSE.txt +1 -1
- package/lib/visual-search.js +1 -1
- package/package.json +33 -29
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @license
|
|
13
|
-
* Video.js 8.23.
|
|
13
|
+
* Video.js 8.23.4 <http://videojs.com/>
|
|
14
14
|
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
|
|
15
15
|
* Available under Apache License Version 2.0
|
|
16
16
|
* <https://github.com/videojs/video.js/blob/main/LICENSE>
|
package/lib/visual-search.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.cloudinaryVideoPlayerChunkLoading=self.cloudinaryVideoPlayerChunkLoading||[]).push([[728],{9148:(e,a,s)=>{s.d(a,{default:()=>
|
|
1
|
+
(self.cloudinaryVideoPlayerChunkLoading=self.cloudinaryVideoPlayerChunkLoading||[]).push([[728],{9148:(e,a,s)=>{s.d(a,{default:()=>n});var t=s(6673),r=s.n(t);const n=(e,a)=>{a.addClass("vjs-visual-search");let s=!1;const t=(e=>{const a=()=>{e.$$(".vjs-visual-search-marker").forEach(e=>e.remove()),e.$$(".vjs-visual-search-results-wrapper").forEach(e=>e.remove()),e.removeClass("vjs-visual-search-results-active")};return{displayResults:s=>{a();const t=e.duration(),n=e.controlBar.progressControl.seekBar,c=r().dom.createEl("div",{className:"vjs-visual-search-results-wrapper",role:"presentation"});s.forEach(a=>{const{start_time:s,end_time:n}=a,l=s/t*100,o=(n-s)/t*100,i="".concat(Math.floor(s/60),":").concat(Math.floor(s%60).toString().padStart(2,"0")),d=r().dom.createEl("div",{className:"vjs-control vjs-visual-search-marker",style:"left: ".concat(l,"%; width: ").concat(o,"%"),tabIndex:0,role:"button",title:"Search result at ".concat(i),ariaLabel:"Search result at ".concat(i)});c.appendChild(d),d.addEventListener("click",()=>{e.currentTime(s)}),d.addEventListener("keydown",a=>{"Enter"!==a.key&&" "!==a.key||(a.preventDefault(),e.currentTime(s))})}),n.el().appendChild(c),s.length>0&&e.addClass("vjs-visual-search-results-active")},clearMarkers:a}})(a),n=async e=>{const s=a.$(".vjs-visual-search-button");s.classList.add("vjs-waiting");try{const s=a.cloudinary.source(),r=s.publicId(),n=Object.assign({},s.transformation());n.flags=n.flags||[],n.flags.push("getinfo:search_b64_".concat(btoa(e)));const c=s.config().url("".concat(r),{transformation:n}),l=await fetch(c,{method:"GET",headers:{"Content-Type":"application/json"}});if(!l.ok)throw new Error("Search request failed with status: ".concat(l.status));const o=await l.json();t.displayResults(o.timestamps),o&&!a.hasStarted()&&a.play().then(()=>a.pause())}catch(e){console.error("Error performing visual search:",e)}finally{s.classList.remove("vjs-waiting")}},c=()=>{var e;s=!1,t.clearMarkers(),null===(e=a.$(".vjs-visual-search-wrapper"))||void 0===e||e.remove()},l=()=>{c();const e=a.$(".vjs-title-bar");e&&e.classList.remove("vjs-hidden");const l=r().dom.createEl("div",{className:"vjs-visual-search-wrapper"}),o=()=>{s&&(s=!1,l.classList.remove("vjs-visual-search-active"),d.input.value="",d.input.tabIndex=-1,d.closeButton.tabIndex=-1,t.clearMarkers())},i=(()=>{const e=r().dom.createEl("button",{className:"vjs-control vjs-button vjs-visual-search-button",title:"Search video content",ariaLabel:"Search video content"}),a=r().dom.createEl("span",{className:"vjs-icon-search"});e.appendChild(a);const t=r().dom.createEl("span",{className:"vjs-loading-spinner"});return e.appendChild(t),e.addEventListener("click",()=>{if(s){const e=d.input.value.trim();e&&n(e)}else s=!0,l.classList.add("vjs-visual-search-active"),d.input.tabIndex=0,d.closeButton.tabIndex=0,d.input.focus()}),e})(),d=((e,a)=>{const s=r().dom.createEl("form",{className:"vjs-visual-search-form"}),t=r().dom.createEl("input",{className:"vjs-visual-search-input",type:"text",ariaLabel:"Search input",tabIndex:-1}),n=r().dom.createEl("button",{className:"vjs-control vjs-button vjs-visual-search-close",type:"button",title:"Close search",ariaLabel:"Close search",tabIndex:-1}),c=r().dom.createEl("span",{className:"vjs-icon-close"});return n.appendChild(c),s.appendChild(t),s.appendChild(n),s.addEventListener("submit",a=>{a.preventDefault();const s=t.value.trim();s&&e(s)}),n.addEventListener("click",e=>{e.preventDefault(),a&&a()}),{element:s,input:t,closeButton:n}})(n,o);l.appendChild(i),l.appendChild(d.element),e.prepend(l),a.on("keydown",e=>{"Escape"===e.key&&s&&o()})};l(),a.visualSearch={createSearchUI:l,clearUI:c}}}}]);
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudinary-video-player",
|
|
3
|
-
"version": "3.5.3-edge.
|
|
3
|
+
"version": "3.5.3-edge.13",
|
|
4
4
|
"description": "Cloudinary Video Player",
|
|
5
5
|
"author": "Cloudinary",
|
|
6
6
|
"license": "MIT",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/cloudinary/cloudinary-video-player.git"
|
|
10
|
+
},
|
|
7
11
|
"module": "./lib/cld-video-player.js",
|
|
8
12
|
"main": "./dist/cld-video-player.min.js",
|
|
9
13
|
"style": "./dist/cld-video-player.min.css",
|
|
@@ -54,84 +58,84 @@
|
|
|
54
58
|
"files": [
|
|
55
59
|
{
|
|
56
60
|
"path": "./dist/cld-video-player.min.js",
|
|
57
|
-
"maxSize": "
|
|
61
|
+
"maxSize": "137kb"
|
|
58
62
|
},
|
|
59
63
|
{
|
|
60
64
|
"path": "./lib/cld-video-player.js",
|
|
61
|
-
"maxSize": "
|
|
65
|
+
"maxSize": "137kb"
|
|
62
66
|
},
|
|
63
67
|
{
|
|
64
68
|
"path": "./lib/videoPlayer.js",
|
|
65
|
-
"maxSize": "
|
|
69
|
+
"maxSize": "137kb"
|
|
66
70
|
},
|
|
67
71
|
{
|
|
68
72
|
"path": "./lib/all.js",
|
|
69
|
-
"maxSize": "
|
|
73
|
+
"maxSize": "330kb"
|
|
70
74
|
}
|
|
71
75
|
]
|
|
72
76
|
},
|
|
73
77
|
"dependencies": {
|
|
74
|
-
"@cloudinary/url-gen": "^1.
|
|
78
|
+
"@cloudinary/url-gen": "^1.22.0",
|
|
75
79
|
"cloudinary-video-analytics": "1.8.2",
|
|
76
80
|
"cloudinary-video-player-profiles": "1.3.0",
|
|
77
|
-
"hls.js": "^1.6.
|
|
81
|
+
"hls.js": "^1.6.15",
|
|
78
82
|
"lodash": "^4.17.21",
|
|
79
83
|
"srt-parser-2": "^1.2.3",
|
|
80
84
|
"uuid": "^11.0.3",
|
|
81
|
-
"video.js": "^8.23.
|
|
85
|
+
"video.js": "^8.23.4",
|
|
82
86
|
"videojs-contrib-ads": "^7.5.2",
|
|
83
87
|
"videojs-contrib-dash": "^5.1.1",
|
|
84
88
|
"videojs-contrib-quality-levels": "^4.1.0",
|
|
85
89
|
"videojs-contrib-quality-menu": "^1.0.4",
|
|
86
|
-
"videojs-ima": "^2.
|
|
90
|
+
"videojs-ima": "^2.5.0",
|
|
87
91
|
"videojs-per-source-behaviors": "^3.0.1",
|
|
88
92
|
"webfontloader": "^1.6.28"
|
|
89
93
|
},
|
|
90
94
|
"devDependencies": {
|
|
91
95
|
"@actions/core": "^1.11.1",
|
|
92
|
-
"@actions/github": "^6.0.
|
|
93
|
-
"@babel/core": "^7.
|
|
94
|
-
"@babel/eslint-parser": "^7.
|
|
95
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
96
|
-
"@babel/preset-env": "^7.
|
|
96
|
+
"@actions/github": "^6.0.1",
|
|
97
|
+
"@babel/core": "^7.28.5",
|
|
98
|
+
"@babel/eslint-parser": "^7.28.5",
|
|
99
|
+
"@babel/plugin-transform-runtime": "^7.28.5",
|
|
100
|
+
"@babel/preset-env": "^7.28.5",
|
|
97
101
|
"@commitlint/cli": "^19.6.0",
|
|
98
102
|
"@commitlint/config-conventional": "^19.6.0",
|
|
99
|
-
"@playwright/test": "1.
|
|
103
|
+
"@playwright/test": "1.57.0",
|
|
100
104
|
"@types/node": "22.10.1",
|
|
101
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
102
|
-
"@typescript-eslint/parser": "^8.
|
|
105
|
+
"@typescript-eslint/eslint-plugin": "^8.48.0",
|
|
106
|
+
"@typescript-eslint/parser": "^8.48.0",
|
|
103
107
|
"babel-jest": "^29.7.0",
|
|
104
108
|
"babel-loader": "^9.2.1",
|
|
105
|
-
"bundlewatch": "^0.4.
|
|
109
|
+
"bundlewatch": "^0.4.1",
|
|
106
110
|
"copy-webpack-plugin": "^12.0.2",
|
|
107
111
|
"css-loader": "^7.1.2",
|
|
108
|
-
"css-minimizer-webpack-plugin": "^7.0.
|
|
112
|
+
"css-minimizer-webpack-plugin": "^7.0.2",
|
|
109
113
|
"css.escape": "^1.5.1",
|
|
110
|
-
"eslint": "^9.
|
|
114
|
+
"eslint": "^9.39.1",
|
|
111
115
|
"eslint-config-prettier": "^9.1.0",
|
|
112
116
|
"eslint-plugin-jest": "^28.9.0",
|
|
113
|
-
"eslint-plugin-prettier": "^5.
|
|
117
|
+
"eslint-plugin-prettier": "^5.5.4",
|
|
114
118
|
"eslint-webpack-plugin": "^4.2.0",
|
|
115
|
-
"expose-loader": "^5.0.
|
|
116
|
-
"html-webpack-plugin": "^5.6.
|
|
119
|
+
"expose-loader": "^5.0.1",
|
|
120
|
+
"html-webpack-plugin": "^5.6.5",
|
|
117
121
|
"husky": "^9.1.7",
|
|
118
122
|
"jest": "^29.7.0",
|
|
119
123
|
"jest-environment-jsdom": "^29.7.0",
|
|
120
124
|
"jest-puppeteer": "^10.1.4",
|
|
121
|
-
"mini-css-extract-plugin": "^2.9.
|
|
125
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
122
126
|
"puppeteer": "^22.15.0",
|
|
123
127
|
"puppeteer-request-spy": "^1.4.0",
|
|
124
|
-
"sass": "^1.
|
|
125
|
-
"sass-loader": "^16.0.
|
|
126
|
-
"semver": "^7.
|
|
128
|
+
"sass": "^1.94.2",
|
|
129
|
+
"sass-loader": "^16.0.6",
|
|
130
|
+
"semver": "^7.7.3",
|
|
127
131
|
"shx": "^0.3.4",
|
|
128
|
-
"terser-webpack-plugin": "^5.3.
|
|
132
|
+
"terser-webpack-plugin": "^5.3.14",
|
|
129
133
|
"url-loader": "^4.1.1",
|
|
130
134
|
"webpack": "^5.95.0",
|
|
131
135
|
"webpack-bundle-analyzer": "^4.10.2",
|
|
132
136
|
"webpack-cli": "^5.1.4",
|
|
133
137
|
"webpack-conditional-loader": "^1.0.12",
|
|
134
|
-
"webpack-dev-server": "^5.
|
|
138
|
+
"webpack-dev-server": "^5.2.2",
|
|
135
139
|
"webpack-merge": "^6.0.1"
|
|
136
140
|
}
|
|
137
141
|
}
|