Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

onTime is not working with live streaming


Hi team,

The requirement is to get current time of video being played. However onTime event is working fine with youtube links but not with live streaming url.

Its console value only once.

onTime:function(){
response.watchTime = this.getPosition();
console.log( this.getPosition())

}

1 Community Answers

George

JW Player Support Agent  
0 rated :

Which version of JW Player are you using? It seems like you are using the JW6 syntax. The corrext way to go about this is:
events: {
onTime: function (x) {
console.log(x.position);
}
}

This question has received the maximum number of answers.