0
hello I’m using the using the jlPlayer and I have this video code:
<video preload="none" class="jlplayer-video" id="MY_VIDEO_1" onended="refresh()">
<!-- <track kind="captions" src="legenda.vtt" default> -->
</video>
<img src="img/logo.png" width="100" class="logo">
</form>
*remembering the source of the video I set by javascript * until then everything more problem is using mediaElement because this script I made does not work:
var mediaElement = document.getElementById('MY_VIDEO_1');
var date = new Date();
if(date.getMinutes() == 0){
mediaElement.currentTime = 0;
}
if(date.getMinutes() == 1){
mediaElement.currentTime = 60;
}
someone can tell me what’s wrong?