stormcloud-video-player 0.7.7 → 0.7.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/dist/stormcloud-vp.min.js +1 -1
- package/lib/index.cjs +110 -54
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +109 -53
- package/lib/index.js.map +1 -1
- package/lib/player/StormcloudVideoPlayer.cjs +3 -22
- package/lib/player/StormcloudVideoPlayer.cjs.map +1 -1
- package/lib/players/HlsPlayer.cjs +3 -22
- package/lib/players/HlsPlayer.cjs.map +1 -1
- package/lib/players/index.cjs +3 -22
- package/lib/players/index.cjs.map +1 -1
- package/lib/sdk/adstormPlayer.cjs +3 -22
- package/lib/sdk/adstormPlayer.cjs.map +1 -1
- package/lib/ui/OverlayRenderer.cjs +107 -32
- package/lib/ui/OverlayRenderer.cjs.map +1 -1
- package/lib/ui/StormcloudVideoPlayer.cjs +110 -54
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
package/lib/players/index.cjs
CHANGED
|
@@ -825,28 +825,9 @@ function createAdStormPlayer(contentVideo, options) {
|
|
|
825
825
|
adVideoElement.removeAttribute("src");
|
|
826
826
|
adVideoElement.load();
|
|
827
827
|
}
|
|
828
|
-
function buildVastUrl(durationSeconds
|
|
829
|
-
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/
|
|
830
|
-
|
|
831
|
-
video: {
|
|
832
|
-
codec: "h264",
|
|
833
|
-
width: contentVideo.videoWidth || 1280,
|
|
834
|
-
height: contentVideo.videoHeight || 720,
|
|
835
|
-
fps: 29.97,
|
|
836
|
-
bitrate: 5e3,
|
|
837
|
-
profile: "high",
|
|
838
|
-
pix_fmt: "yuv420p",
|
|
839
|
-
has_b_frames: 0
|
|
840
|
-
},
|
|
841
|
-
audio: {
|
|
842
|
-
codec: "aac",
|
|
843
|
-
sample_rate: 48e3,
|
|
844
|
-
bitrate: 128
|
|
845
|
-
}
|
|
846
|
-
};
|
|
847
|
-
var finalMetadata = metadata || defaultMetadata;
|
|
848
|
-
var metadataStr = encodeURIComponent(JSON.stringify(finalMetadata));
|
|
849
|
-
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds), "&metadata=").concat(metadataStr);
|
|
828
|
+
function buildVastUrl(durationSeconds) {
|
|
829
|
+
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/nab/vast/pod";
|
|
830
|
+
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds));
|
|
850
831
|
}
|
|
851
832
|
function parseVastXml(xmlString) {
|
|
852
833
|
var ads = [];
|