denivip / osmf-hls-plugin

OSMF HLS Plugin
ISC License
180 stars 93 forks source link

How to get current time position on video #113

Open dakora1310 opened 8 years ago

dakora1310 commented 8 years ago

Hello, can you help me. I try to get current time of film when I press to pause. But it is not working, and in console I don`t have any error. function onJavaScriptBridgeCreated(playerId, event, obj){ if(event=="onJavaScriptBridgeCreated"){ playerosmf = document.getElementById(playerId); } else if(event=="pause") // pause { console.log(playerosmf.getPosition()); } }