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.
@@ -737,28 +737,9 @@ function createAdStormPlayer(contentVideo, options) {
737
737
  adVideoElement.removeAttribute("src");
738
738
  adVideoElement.load();
739
739
  }
740
- function buildVastUrl(durationSeconds, metadata) {
741
- var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/".concat(licenseKey, "/pod");
742
- var defaultMetadata = {
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 = [];