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.
@@ -825,28 +825,9 @@ function createAdStormPlayer(contentVideo, options) {
825
825
  adVideoElement.removeAttribute("src");
826
826
  adVideoElement.load();
827
827
  }
828
- function buildVastUrl(durationSeconds, metadata) {
829
- var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/vast/".concat(licenseKey, "/pod");
830
- var defaultMetadata = {
831
- video: {
832
- codec: "h264",
833
- width: contentVideo.videoWidth || 1280,
834
- height: contentVideo.videoHeight || 720,
835
- fps: 29.97,
836
- bitrate: 5e3,
837
- profile: "high",
838
- pix_fmt: "yuv420p",
839
- has_b_frames: 0
840
- },
841
- audio: {
842
- codec: "aac",
843
- sample_rate: 48e3,
844
- bitrate: 128
845
- }
846
- };
847
- var finalMetadata = metadata || defaultMetadata;
848
- var metadataStr = encodeURIComponent(JSON.stringify(finalMetadata));
849
- return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds), "&metadata=").concat(metadataStr);
828
+ function buildVastUrl(durationSeconds) {
829
+ var baseUrl = "https://adstorm.co/api-adstorm-dev/adstorm/nab/vast/pod";
830
+ return "".concat(baseUrl, "?duration=").concat(Math.ceil(durationSeconds));
850
831
  }
851
832
  function parseVastXml(xmlString) {
852
833
  var ads = [];