-->

The Wayback Machine - https://web.archive.org/web/20121115194233/http://www.variety.com:80/video/

Variety Videos

 
 
 
 
"; //Fire off the instantiators (to ensure the object is ready in the DOM) brightcove.createExperiences(); //Request video info addScriptTag("single", "https://web.archive.org/web/20121115194233/http://api.brightcove.com/services/library?command=find_video_by_id&video_id=" + vidId + "&video_fields=name,shortDescription&token=13L0i6lHBoixM0Hgl8_RQl6DnyuprD15EKvb6TqNaBs.", "responseSingle"); } //Check if playlistId exist and is different from the recent video playlistId (713046265) //yes --> display the specific playlist in top right section and recent tag videos in bottom section //no --> display recent tag video in top right and nothing in bottom section if (playlistId != null && playlistId != "" && playlistId != "713046265") { //Request all videos in playlist addScriptTag("playlist", "https://web.archive.org/web/20121115194233/http://api.brightcove.com/services/library?command=find_playlist_by_id&playlist_id=" + playlistId + "&playlist_fields=id,name,shortDescription,thumbnailURL,videos&video_fields=id,name,shortDescription,thumbnailURL&token=13L0i6lHBoixM0Hgl8_RQl6DnyuprD15EKvb6TqNaBs.", "responsePlaylist"); } else { //Request recent tag videos addScriptTag("recent", "https://web.archive.org/web/20121115194233/http://api.brightcove.com/services/library?command=find_videos_by_tags&or_tags=recent&video_fields=id,name,linkurl,linktext,shortdescription,longdescription,publisheddate,thumbnailurl,playsTrailingWeek&sort_by=MODIFIED_DATE&token=13L0i6lHBoixM0Hgl8_RQl6DnyuprD15EKvb6TqNaBs.&page_size=18", "responseRecentTop"); } } //get response from API for playlist function responsePlaylist(jsonData) { //Process JSON response var str = ""; var resp = document.getElementById("respPlaylist"); var playlist = jsonData; var videos = jsonData["videos"]; var numvideos = jsonData["videos"].length; //start carousel code //str += "
    "; str += "

    " + playlist.name + "

      "; for (var i = 0; i " + videos[i].name + "" + videos[i].name + ""; } //fix carousel non-multiple of numrow by adding empty spaces //for (var j = 0; j  "; //} //end carousel code str += "
    "; resp.innerHTML = str; //register jQuery for carousel after JSON Brightcove is done $('#carousel-playlist').carousel({ itemsPerPage: 3, itemsPerTransition: 3, easing: 'linear', noOfRows: 2 }); //Verify if videoID was provided var vidId; var url = window.location.href; var param = url.split("/"); if (param[3] == 'video') { if (param[4] != null && param[4] != '?') { vidId = param[4]; vidId = vidId.substr(1); //remove ? mark } } //Check and display video code //if the videoId exist, do nothing //else display first playlist video: videos[0].id if (vidId == null || vidId == "") { if (videos[0].id != null) { //Show video on page //var divresult = document.getElementById("videoEmbebSingle"); //var profHTML = ""; //divresult.innerHTML = profHTML; //Create object var divresult = document.createElement("object"); divresult.id="flashObj"; divresult.className="BrightcoveExperience"; //Create object param var param0 = document.createElement("param");param0.name="bgcolor";param0.value="#FFFFFF"; var param1 = document.createElement("param");param1.name="width";param1.value="480"; var param2 = document.createElement("param");param2.name="height";param2.value="320"; var param3 = document.createElement("param");param3.name="playerID";param3.value="949801296001"; var param4 = document.createElement("param");param4.name="playerKey";param4.value="AQ~~,AAAAABH82YA~,bioKh8uw6PawiJ2H2ofIkumx5XJmQY7P"; var param5 = document.createElement("param");param5.name="isVid";param5.value="true"; var param6 = document.createElement("param");param6.name="isUI";param6.value="true"; var param7 = document.createElement("param");param7.name="dynamicStreaming";param7.value="true"; var param8 = document.createElement("param");param8.name="@videoPlayer";param8.value=videos[0].id ; //Add param to object divresult.appendChild(param0); divresult.appendChild(param1); divresult.appendChild(param2); divresult.appendChild(param3); divresult.appendChild(param4); divresult.appendChild(param5); divresult.appendChild(param6); divresult.appendChild(param7); divresult.appendChild(param8); //Add the embed object to your container document.getElementById("videoEmbebSingle").appendChild(divresult); //Add a sibling for the embed object document.getElementById("videoEmbebSingle").innerHTML += "
    "; //Fire off the instantiators (to ensure the object is ready in the DOM) brightcove.createExperiences(); //Show info var resp = document.getElementById("respSingleText"); var str = "

    " + videos[0].name + "


    " + videos[0].shortDescription + "

    "; resp.innerHTML += str; } } //Display recent videos in bottom section addScriptTag("recent", "https://web.archive.org/web/20121115194233/http://api.brightcove.com/services/library?command=find_videos_by_tags&or_tags=recent&video_fields=id,name,linkurl,linktext,shortdescription,longdescription,publisheddate,thumbnailurl,playsTrailingWeek&sort_by=MODIFIED_DATE&token=13L0i6lHBoixM0Hgl8_RQl6DnyuprD15EKvb6TqNaBs.&page_size=7", "responseRecentBottom"); } // get response from API for getSingleVideoInfo function responseSingle(jsonData) { var resp = document.getElementById("respSingleText"); var str = ""; if (jsonData.name != null) { str += "

    " + jsonData.name + "


    "; if (jsonData.shortDescription != null) { str += "

    " + jsonData.shortDescription + "

    "; } resp.innerHTML += str; } } //get response from API for recent playlist function responseRecentTop(jsonData) { //Process JSON response var str = ""; var resp = document.getElementById("respPlaylist"); var items = jsonData["items"]; var numvideos = jsonData["items"].length; //start carousel code str += "

    Recent Videos

      "; for (var i = 0; i " + items[i].name + "" + items[i].name + ""; } //fix carousel non-multiple of numcolumn by adding empty spaces //for (var j = 0; j  "; //} //end carousel code str += "
    "; resp.innerHTML = str; //register jQuery for carousel after JSON Brightcove is done $('#carousel-playlist').carousel({ itemsPerPage: 3, itemsPerTransition: 3, easing: 'linear', noOfRows: 2 }); //Verify if videoID was provided var vidId; var url = window.location.href; var param = url.split("/"); if (param[3] == 'video') { if (param[4] != null && param[4] != '?') { vidId = param[4]; vidId = vidId.substr(1); //remove ? mark } } //Check and display video code //if the videoId exist, do nothing //else display first video: items[0].id if (vidId == null || vidId == "") { if (items[0].id != null) { //Show video on page //var divresult = document.getElementById("videoEmbebSingle"); //var profHTML = ""; //divresult.innerHTML = profHTML; //Create object var divresult = document.createElement("object"); divresult.id="flashObj"; divresult.className="BrightcoveExperience"; //Create object param var param0 = document.createElement("param");param0.name="bgcolor";param0.value="#FFFFFF"; var param1 = document.createElement("param");param1.name="width";param1.value="480"; var param2 = document.createElement("param");param2.name="height";param2.value="320"; var param3 = document.createElement("param");param3.name="playerID";param3.value="949801296001"; var param4 = document.createElement("param");param4.name="playerKey";param4.value="AQ~~,AAAAABH82YA~,bioKh8uw6PawiJ2H2ofIkumx5XJmQY7P"; var param5 = document.createElement("param");param5.name="isVid";param5.value="true"; var param6 = document.createElement("param");param6.name="isUI";param6.value="true"; var param7 = document.createElement("param");param7.name="dynamicStreaming";param7.value="true"; var param8 = document.createElement("param");param8.name="@videoPlayer";param8.value=items[0].id ; //Add param to object divresult.appendChild(param0); divresult.appendChild(param1); divresult.appendChild(param2); divresult.appendChild(param3); divresult.appendChild(param4); divresult.appendChild(param5); divresult.appendChild(param6); divresult.appendChild(param7); divresult.appendChild(param8); //Add the embed object to your container document.getElementById("videoEmbebSingle").appendChild(divresult); //Add a sibling for the embed object document.getElementById("videoEmbebSingle").innerHTML += "
    "; //Fire off the instantiators (to ensure the object is ready in the DOM) brightcove.createExperiences(); //Show info var resp = document.getElementById("respSingleText"); var str = "

    " + items[0].name + "


    " + items[0].shortDescription + "

    "; resp.innerHTML += str; } } } //get response from API for recent playlist function responseRecentBottom(jsonData) { var resp = document.getElementById("resp"); var str = ""; str += "
    "; str += "
    Recent Videos
    "; str += "
    "; for (var i = 0; i
    "; str += '
    ' + title.name + '
    '; str += ''; } str += "
    "; resp.innerHTML += str; } window.onload = getPlaylist;