tchret
tchret

Reputation: 142

Controlling the Netflix player manually with .seek() method

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

Upvotes: 1

Views: 1398

Answers (2)

Sam
Sam

Reputation: 331

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

Upvotes: 1

Tuur Martens
Tuur Martens

Reputation: 1

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.

Upvotes: 0

Related Questions