stormcloud-video-player 0.7.7 → 0.7.8
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 +3 -22
- package/lib/index.cjs.map +1 -1
- package/lib/index.js +3 -22
- 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/StormcloudVideoPlayer.cjs +3 -22
- package/lib/ui/StormcloudVideoPlayer.cjs.map +1 -1
- package/package.json +1 -1
|
@@ -789,28 +789,9 @@ function createAdStormPlayer(contentVideo, options) {
|
|
|
789
789
|
adVideoElement.removeAttribute("src");
|
|
790
790
|
adVideoElement.load();
|
|
791
791
|
}
|
|
792
|
-
function buildVastUrl(durationSeconds
|
|
793
|
-
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/
|
|
794
|
-
|
|
795
|
-
video: {
|
|
796
|
-
codec: "h264",
|
|
797
|
-
width: contentVideo.videoWidth || 1280,
|
|
798
|
-
height: contentVideo.videoHeight || 720,
|
|
799
|
-
fps: 29.97,
|
|
800
|
-
bitrate: 5e3,
|
|
801
|
-
profile: "high",
|
|
802
|
-
pix_fmt: "yuv420p",
|
|
803
|
-
has_b_frames: 0
|
|
804
|
-
},
|
|
805
|
-
audio: {
|
|
806
|
-
codec: "aac",
|
|
807
|
-
sample_rate: 48e3,
|
|
808
|
-
bitrate: 128
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
var finalMetadata = metadata || defaultMetadata;
|
|
812
|
-
var metadataStr = encodeURIComponent(JSON.stringify(finalMetadata));
|
|
813
|
-
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds), "&metadata=").concat(metadataStr);
|
|
792
|
+
function buildVastUrl(durationSeconds) {
|
|
793
|
+
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/nab/vast/pod";
|
|
794
|
+
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds));
|
|
814
795
|
}
|
|
815
796
|
function parseVastXml(xmlString) {
|
|
816
797
|
var ads = [];
|