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