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/lib/index.cjs CHANGED
@@ -928,28 +928,9 @@ function createAdStormPlayer(contentVideo, options) {
928
928
  adVideoElement.removeAttribute("src");
929
929
  adVideoElement.load();
930
930
  }
931
- function buildVastUrl(durationSeconds, metadata) {
932
- var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/".concat(licenseKey, "/pod");
933
- var defaultMetadata = {
934
- video: {
935
- codec: "h264",
936
- width: contentVideo.videoWidth || 1280,
937
- height: contentVideo.videoHeight || 720,
938
- fps: 29.97,
939
- bitrate: 5e3,
940
- profile: "high",
941
- pix_fmt: "yuv420p",
942
- has_b_frames: 0
943
- },
944
- audio: {
945
- codec: "aac",
946
- sample_rate: 48e3,
947
- bitrate: 128
948
- }
949
- };
950
- var finalMetadata = metadata || defaultMetadata;
951
- var metadataStr = encodeURIComponent(JSON.stringify(finalMetadata));
952
- return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds), "&metadata=").concat(metadataStr);
931
+ function buildVastUrl(durationSeconds) {
932
+ var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/nab/vast/pod";
933
+ return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds));
953
934
  }
954
935
  function parseVastXml(xmlString) {
955
936
  var ads = [];