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
|
@@ -737,28 +737,9 @@ function createAdStormPlayer(contentVideo, options) {
|
|
|
737
737
|
adVideoElement.removeAttribute("src");
|
|
738
738
|
adVideoElement.load();
|
|
739
739
|
}
|
|
740
|
-
function buildVastUrl(durationSeconds
|
|
741
|
-
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/
|
|
742
|
-
|
|
743
|
-
video: {
|
|
744
|
-
codec: "h264",
|
|
745
|
-
width: contentVideo.videoWidth || 1280,
|
|
746
|
-
height: contentVideo.videoHeight || 720,
|
|
747
|
-
fps: 29.97,
|
|
748
|
-
bitrate: 5e3,
|
|
749
|
-
profile: "high",
|
|
750
|
-
pix_fmt: "yuv420p",
|
|
751
|
-
has_b_frames: 0
|
|
752
|
-
},
|
|
753
|
-
audio: {
|
|
754
|
-
codec: "aac",
|
|
755
|
-
sample_rate: 48e3,
|
|
756
|
-
bitrate: 128
|
|
757
|
-
}
|
|
758
|
-
};
|
|
759
|
-
var finalMetadata = metadata || defaultMetadata;
|
|
760
|
-
var metadataStr = encodeURIComponent(JSON.stringify(finalMetadata));
|
|
761
|
-
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds), "&metadata=").concat(metadataStr);
|
|
740
|
+
function buildVastUrl(durationSeconds) {
|
|
741
|
+
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/nab/vast/pod";
|
|
742
|
+
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds));
|
|
762
743
|
}
|
|
763
744
|
function parseVastXml(xmlString) {
|
|
764
745
|
var ads = [];
|