1

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

tchret
  • 142
  • 2
  • 10
  • Did you end up getting this to work? Found an older thread that indicated this was possible: http://stackoverflow.com/questions/6086205/javascript-api-for-netflix-instant-player – MobileVet Jul 16 '16 at 19:26
  • Appears removed now, see http://stackoverflow.com/questions/27927950/controlling-netflix-html5-playback-with-tampermonkey-javascript for follow up discussion – rogerdpack Sep 26 '16 at 13:13

2 Answers2

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

Sam
  • 291
  • 4
  • 9
0

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.