VCVCV (Arts/Media/Design Jobs)

Job ID 706343  In Category: Arts/Media/Design

VCVCV

Hiring Company: XCVXCV
Location: IUKA, Mississippi
Job Type: Full Time
Salary: $38852
Experience Desired: 0 - 2 Years
Last Update: Apr 02, 2020 01:59:52 PM
Full Job Description:


script>
/* Replace This Code - get Value from playlist page and place it here */
var playlistId = "PLbuw-nTYtTBegFsTEldhzU-oW82h9sgex";http://baseportal.com/cgi-bin/baseportal.pl?htx=/TECHTRON/SONRISEBROADCASTING/1
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";

var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

var player;

function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '1',
width: '0',
events: {
'onReady': onPlayerReady,
'onStateChange': onPlayerStateChange
}

});
}


var playlistArray;
var playListArrayLength;
var maxNumber;

var oldNumber = 0;
var NewNumber = 0;

function newRandomNumber() {
oldNumber = NewNumber;
NewNumber = Math.floor(Math.random() * maxNumber);
if (NewNumber == oldNumber) {
newRandomNumber();
} else {
return NewNumber;
}
}

function onPlayerReady(event) {
player.loadPlaylist({
'listType': 'playlist',
'list': playlistId
});
}

var firstLoad = true;
function onPlayerStateChange(event) {
console.log(event.data);
if (event.data == YT.PlayerState.ENDED) {
player.playVideoAt(newRandomNumber());
} else {
if (firstLoad && event.data == YT.PlayerState.PLAYING) {
firstLoad = false;
playlistArray = player.getPlaylist();
playListArrayLength = playlistArray.length;
maxNumber = playListArrayLength;
NewNumber = newRandomNumber();
player.playVideoAt(newRandomNumber());
}
}
}















Company Type: Not Specified
Contact Name : VXCV
Contact Phone: 6626604215
Contact Email  :
Number of Views: 393
USA Jobs Online > Arts/Media/Design Jobs > VCVCV
Post Jobs  -  Manage Postings  -  User Agreement  -  Privacy Statement
© 2024 GetJob.US