I'm having trouble working with the setTimeout function, as it doesn't seem to be functioning properly. First and foremost,
Player.prototype.playByUrl = function (url) {
this.object.data = url;
return this.play();
}
The code above shows my custom function which I am calling.
window.onload = function () {
player = new Player('playerObject');
setTimeout(player.playByUrl($mp4Link),3000);
}
Despite the implementation in the code snippet above, the setTimeout function doesn't appear to be working correctly. Why could that be?