Skip to content
This repository has been archived by the owner on Feb 13, 2019. It is now read-only.

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
MelizzaP committed Oct 11, 2016
1 parent 1889522 commit 6f04999
Showing 1 changed file with 5 additions and 21 deletions.
26 changes: 5 additions & 21 deletions elements/bulbs-video/components/revealed.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,33 +206,17 @@ export default class Revealed extends React.Component {
return `onion_${videohubReferenceId}`;
}


vastUrl (videoMeta) {
let hostChannel = videoMeta.hostChannel;
let videohubReferenceId = videoMeta.id;
let baseUrl = `http://${window.FREEWHEEL_NETWORK_ID}.v.fwmrm.net/ad/g/1?`;
let vastTestId = this.vastTest(window.location.search);

baseUrl += '&resp=' + 'vmap1';
baseUrl += '&prof=' + this.getProfValue();
baseUrl += '&csid=' + this.buildCsid(videoMeta.hostChannel);
baseUrl += '&caid=' + this.buildCaid(videoMeta.id);

videoMeta.tags.push('html5'); // Force HTML 5
// Tags
baseUrl += '&t=' + videoMeta.tags;
//Category
let hostChannel = videoMeta.hostChannel;
let channel = videoMeta.channel_slug;
let series = videoMeta.series_slug;
let category = `${hostChannel}/${channel}`;
if (series) {
category += `/${series}`;
}
baseUrl += '&s=' + category;
baseUrl += '&rnd=' + this.cacheBuster();

if (vastTestId) {
baseUrl += '&xgid=' + vastTestId;
}
baseUrl += '&csid=' + this.buildCsid(hostChannel);
baseUrl += '&caid=' + this.buildCaid(videohubReferenceId);
baseUrl += '&pvrn=' + this.cacheBuster();

return baseUrl;
}
Expand Down

0 comments on commit 6f04999

Please sign in to comment.