osmf-hls-plugin icon indicating copy to clipboard operation
osmf-hls-plugin copied to clipboard

How to get current time position on video

Open dakora1310 opened this issue 9 years ago • 0 comments

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()); } }

dakora1310 avatar Dec 10 '15 16:12 dakora1310