Tracciamento della riproduzione Siamo spiacenti, questa pagina è in attesa di traduzione in italiano You can monitor the playback progress via the JS API. To do this, enable the player.api("played"); The value will come in percentages, taking into account rewinds and replay. If the user watches 10% of the video and rewinds to the end, the player will return real progress (10). Another wayYou need to enable event tracking in the player settings and catch the time event. This method does not take into account rewinding. function PlayerjsEvents(event,id,data){ if(event == "time"){ let duration = player.api("duration"); let time = data; if(duration > 0){ if(time / duration > 0.5){ // 50% } } } } |