Controlling the Netflix player manually with .seek() method

蹲街弑〆低调 提交于 2019-12-08 04:55:30

问题


I'm looking to seek the Netflix player manually (from the console). I get the player : netflix.cadmium.objects.videoPlayer(), and I know there is a .seek() method on it but I don't know how to use it.

What I've tried

netflix.cadmium.objects.videoPlayer().seek(60)
netflix.cadmium.objects.videoPlayer().seek("60")

& nothing happens...


回答1:


The netflix.cadmium.objects.videoPlayer().seek() function accepts a time in milliseconds. Assuming your argument was in seconds, you can fix this by calling .seek(60 * 1000) to seek one minute into the video.

For future reference, most time-related functions in JavaScript will either accept or return a number in milliseconds such as setTimeout() and Date.getTime().




回答2:


I did:bgMusic2.SeekTo( 0 ); So try changing seek to SeekTo( number here ); One very usefull tool for learning stuff like this is an app called DroidScript.



来源:https://stackoverflow.com/questions/32422222/controlling-the-netflix-player-manually-with-seek-method

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!