roshil halliwel fabianne

0 views
Skip to first unread message

Stephaine Zitzow

unread,
Aug 1, 2024, 11:47:43 PM8/1/24
to casoloras

If using Chrome, for a whole lot more keyboard shortcuts both in show selection and in the HTML5 player, check out the Flix Plus by Lifehacker extension ( -plus-by-lifehacker/fcjjgdnadfneaamhipplgpfkdnbfagla?hl=en-US) that I wrote. It also lets you customize the keys.

To start, I found an (admittedly old) post from someone at Netflix stating that their licensing requirements prohibited them from providing ways to control the player externally (everything needed to be wrapped up in a netflix-branded application, and providing ways to interact with the player externally would allow you to embed the netflix player in places it shouldn't go.) You can find that reply here (although it's four years old, I'd imagine not much has changed.)

I tried snooping around on the 'watch instantly' page myself, and there are objects like netflix.SilverLight and netflix.SilverLight.MoviePlayer (which has a getPlugin() method that returns some details about the plugin, and hookable events, but no methods for control,) but they mostly have to do with exposing the size of the player viewport, among other things necessary to place it on the page. I couldn't really find anything in any of the objects that suggested they interacted with the movie player that would seem to allow me access to it.

I also snagged the player binaries, and snooping through them I've found a ScriptInterface object internally with [ScriptableMember]-decorated methods in it called PlayMovie(), StopMovie(), ShowCurtain(), HideCurtain().

Then, I noticed there's another namespace in the player binaries called Netflix.Silverlight.CBPApp.HostedPlayer, which has its own interface - HostedPlayerScriptInterface. This has everything you want in it - data on play position, controls for increasing and decreasing play speed, pausing, playing, setting the play position, querying play state, etc. All of these are decorated as [ScriptableMember]s.

Now I break your heart - it looks like (for whatever reason) this interface is not exposed as a [ScriptableType], which to my understanding is a requirement for being able to access it from javascript. In fact, the only things that seem to be exposed this way are events that the player fires. My guess is that this code is for integrating with other partners, or left over from someone they inherited the original code for the video player from, but it seems intentionally that this [ScriptableType] parameter is left out. There may be a way to request a binary that's built to be 'Hosted', though I'm not sure what that means, and I also suspect it will be transparently obvious to the people watching what you're trying to do and have a stop put to it quickly.

Sorry for the long-winded response that ends in disappointment, but it appears as of right now there's not really a way to do this. I've seen some suggestions that basically amount to sending keystrokes to the browser window that emulate the keyboard controls, but this clearly isn't what you're looking for, so I'm going to go with 'no' as an answer here. :)

So, looks like you need to trick the Netflix player into thinking it's running in hosted player mode. There's some configuration options that can be passed in, but I'm not sure how, specifically, you would do that. It looks like that's all set up on player initialization - maybe some sort of bookmarklet could reload the page and inject a change? Or maybe just reload the player and change the settings.

Bear in mind I haven't done much of this javascript interop stuff so much of this is inferred from the documentation, but it does seem as if there is a javascript control API in there, it's just a matter of tricking the player into working in Hosted mode.

Going to have to stop here, but hopefully this gives you a good start. I've dumped the contents of that hosted player Javascript API file so you can see the methods that will be exposed once you manage to get the player in Hosted mode.

In Silverlight for a method to be exposed to JavaScript directly, it needs attributes [ScriptableType] on its class and [ScriptableMember] on itself. You could try opening up the XAP file for the Netflix player, disassembling the main assembly, and searching for any methods with [ScriptableMember] attached to them. This may not turn up anything useful at all, but it is something you can try nonetheless.

I can't think of anything that I've changed on the machine to have caused this. It worked fine for the longest time. I tried clearing out temp browser files, reinstalling the silverlight plugin, rebooting, etc. and nothing helps.

Video by nature is CPU intensive, that being the case it's not surprise Netflix is using a lot of CPU. As for making your system unusable, things I'd look at are the amount of RAM in the computer. You didn't mention which iMac you have but one thing to look at is is open Activity Monitor - System Memory and check the amount of Free RAM. As a general rule of thumb if it's 500MB or less your system could probably use a RAM upgrade. Do this when running Netflix or when you see a system slow-down.

I have the same problem with the exception that I'm not looking at a video, I am simply watching the Netflix web site, and I'm using Linux Mint 17.1 . I've watched the top process (system monitor) and loaded the Netflix web page and the web content process goes through the roof (over 100% cpu usage). When I kill the web content process, only the Netflix tab (in Mozilla Firefox) dies and all other operations do not appear to be affected.

This behaviour has not always occurred and appears to have just recently started to happen, within the last few days. This behaviour makes my computer virtually unusable and until I am able to stop it from happening I will not be starting the Netflix web page which is a nuisance because I use it to look for programs that I would like to watch on my smart TV.

Thank you for the reply. I understand the video is CPU intense, but my point was that something has recently changed because just weeks ago I was able to do the same activities (netflix + other apps running) without the maxed out CPU.

Were you running Netflix when you had 1.68GB free? To be honest 4GB isn't that much RAM these days, so you may want to still consider upgrading it. It's inexpensive if you buy from reputable sources such as www.macsales.com (OWC) or Crucial. Do not buy RAM directly from Apple!

You can also do some other resets but I don't know if they will affect your situation. You can reset both the SMC and PRAM, it not a bad idea to each reset 2x. Please follow these instructions closely:

I've tried running netflix on internet explorer running on a virtual machine inside VMware fusion. the free memory goes down to 100megs (definitely need to do that memory upgrade) but even running it that way the osx apps are more responsive and it's using less CPU than if I ran netflix inside safari. Something isn't working right.

Here's the link to what fixed my problem immediately. Please note: my problem was resolved following just the three steps pasted below. The original link has additional steps that may be necessary, although I did not employ them, and my problem of 100% CPU USAGE is gone!!! Thank God!

I haven't tried Bethesdas steps yet, but I figured I would mention that within the past couple of days Netflix has been doing the same thing to me. I don't have an Apple computer, but this is the only post anywhere I found about this.

So usually when watching Netflix I'm only running about 40% cpu (I believe), but now suddenly it's running in the high 80's up to 100. The only reason I noticed is because suddenly now when I go to a different tab, the video stops and starts buffering, but can't buffer all the way up until going back to the Netflix tab. This is really annoying, by the way. Also, now about 50% of the time when I open fullscreen, everything but the audio stops, so I have to exit fullscreen and then go back in... Also the video is starting to get a bit choppy which is what prompted me to start looking for an answer.

I have noticed this as well. The Silverlight plug-in didn't used to take up all the CPU usage. Oddly, if I go to full screen mode (I have dual monitors) I can see the CPU usage drops to about 50% exactly the opposite of what you would think should happen (More pixels are being pused to the screen so it should run slower) I think this is an error in the way the Silverlight plugin handles video on the Apple OS.

I recently installed Fedora 14 on my home PC so I have a dual boot system running windows and linux. I probably would primarily use Linux on that machine as its older and Linux manages its resources MUCH better than Windows does, BUT I'm a bit of a Netflix junky and from what I've read there isn't currently a solution that allows for Netflix to work on Linux. Evidently Moonlight (which as I understand is supposed to be like silverlight) is missing a key piece of functionality. So is there really no solution?

With Microsoft abandoning Silverlight, Netflix has made strong efforts to switch their video delivery software to HTML5. An HTML5 video player does not need a browser plugin like Adobe Flash or Microsoft Silverlight to work. However, in order to stream videos, Netflix requires their delivered content to remain secure. This is achieved in HTML5 via a browser plugin known as Network Security Service. Finally both of these components are mature enough.

The answers to your questions are here: -on-ubuntu-is-here.htmlBy adding a ppa you can get a special blend of wine and firefox that will run the netflix videoplayer (silverlight). It's 3 commands and although I personally have had some trouble on the 64-bit kernel it works well on a 32-kernel. If you have further questions or you get it running on a 64-bit kernel let me know.

You can watch netflix inside of a webbrowser simply by changing your user agent. Normally your browser sends a user agent to the server when accessing a website containing your browser version and your operating system. It looks something like this:

90f70e40cf
Reply all
Reply to author
Forward
0 new messages