How can we get seek time from youtube player api?

2019-08-09 02:44发布

I'm wondering how can we get pause,play and upto how much user seen the video data from the youtube player api ?Is this possible to get those details ?

1条回答
Deceive 欺骗
2楼-- · 2019-08-09 03:24

For getting current time : getCurrentTimeMillis()

For moving the video to the time indicated: seekToMillis(int milliSeconds)

To plays the selected video : play()

To pause the video: pause()

And to get info maybe the best option would be use JSON

查看更多
登录 后发表回答