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
package/lib/index.js
CHANGED
|
@@ -759,28 +759,9 @@ function createAdStormPlayer(contentVideo, options) {
|
|
|
759
759
|
adVideoElement.removeAttribute("src");
|
|
760
760
|
adVideoElement.load();
|
|
761
761
|
}
|
|
762
|
-
function buildVastUrl(durationSeconds
|
|
763
|
-
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/
|
|
764
|
-
|
|
765
|
-
video: {
|
|
766
|
-
codec: "h264",
|
|
767
|
-
width: contentVideo.videoWidth || 1280,
|
|
768
|
-
height: contentVideo.videoHeight || 720,
|
|
769
|
-
fps: 29.97,
|
|
770
|
-
bitrate: 5e3,
|
|
771
|
-
profile: "high",
|
|
772
|
-
pix_fmt: "yuv420p",
|
|
773
|
-
has_b_frames: 0
|
|
774
|
-
},
|
|
775
|
-
audio: {
|
|
776
|
-
codec: "aac",
|
|
777
|
-
sample_rate: 48e3,
|
|
778
|
-
bitrate: 128
|
|
779
|
-
}
|
|
780
|
-
};
|
|
781
|
-
var finalMetadata = metadata || defaultMetadata;
|
|
782
|
-
var metadataStr = encodeURIComponent(JSON.stringify(finalMetadata));
|
|
783
|
-
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds), "&metadata=").concat(metadataStr);
|
|
762
|
+
function buildVastUrl(durationSeconds) {
|
|
763
|
+
var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/nab/vast/pod";
|
|
764
|
+
return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds));
|
|
784
765
|
}
|
|
785
766
|
function parseVastXml(xmlString) {
|
|
786
767
|
var ads = [];
|