NetflixPro icon indicating copy to clipboard operation
NetflixPro copied to clipboard

Uncaught TypeError: window.netflix.cadmium.objects.videoPlayer is not a function

Open arnonym opened this issue 10 years ago • 11 comments

Since a few days I get the error

Uncaught TypeError: window.netflix.cadmium.objects.videoPlayer is not a function

in javascript console.

arnonym avatar Oct 11 '15 15:10 arnonym

Thanks, looks like Netflix changed some of their code and are no longer exposing that object. Looking into it!

JohnCoates avatar Oct 11 '15 20:10 JohnCoates

Just wondering if there was any update here? Thanks!

shail avatar Nov 27 '15 18:11 shail

Another way of rewinding is pausing the video and then using the arrow keys which allows you to rewind/fast forward by 10 seconds at a time.

shail avatar Nov 27 '15 19:11 shail

Any luck with this? I had a quick look at the netflix javascript code, but didn't see how to get to the object yet. (BTW, Your blog about writing the extension was interesting to read, thanks for that.)

sswam avatar Jan 26 '16 14:01 sswam

I've been trying to find a way around this as well. Grabbing the HTML5 video element and trying to manually change the currentTime appears to break the player. netflix.cadmium.objects exists but no longer has a videoPlayer reference there. I'm wading through minified source files but may just have to give up on this soon. Hopfeully someone else will figure out a new way to seek the Netflix player with JS.

chevcast avatar Apr 21 '16 01:04 chevcast

Hey @JohnCoates any plans to update this extension?

avigoldman avatar Aug 04 '16 00:08 avigoldman

I put my latest thoughts on controlling netflix here: http://stackoverflow.com/questions/27927950/controlling-netflix-html5-playback-with-tampermonkey-javascript/39703888#39703888 FWIW

rdp avatar Sep 26 '16 13:09 rdp

Thanks @rdp.

@avrahamgoldman: I'm accepting pull requests that bring functionality back. Development is stalled because Netflix has made it nearly impossible to get access to their internal controls.

If there's a way to get access to that Netflix object that would be great. The object gets created with no global reference to it, so I'm not sure how to grab it without modifying their code, which would be a fragile solution.

JohnCoates avatar Sep 26 '16 20:09 JohnCoates

I actually developed a little (very barebones and non optimized) library that controls the netflix player. https://github.com/avrahamgoldman/netflix.js

avigoldman avatar Sep 28 '16 01:09 avigoldman

Looks really nice! I might have a go at updating this extension to use your library

JohnCoates avatar Sep 28 '16 04:09 JohnCoates

Let me know how it goes!! Hit me up with any suggestions or questions :D

avigoldman avatar Sep 28 '16 04:09 avigoldman