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...
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()
.
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