2014-04-23, 19:51
I got this working on Windows 8.0 and Frodo, like so:
Notes:
- Create [Netflix.vbs]:
Code:CreateObject("WScript.Shell").Run "netflix://"
WScript.Sleep 5000
- Create a new folder. Mine is at d:\xbmcprograms, but yours can be wherever you want.
- Create an empty/blank file in your new folder called [Netflix.app].
- Add these entries to the appropriate sections of [%ProgramFiles(X86)%\XBMC\system\playercorefactory.xml]:
Code:<players>
<player name="Netflix" type="ExternalPlayer" audio="false" video="false">
<filename>c:\windows\system32\wscript.exe</filename>
<args>d:\xbmcprograms\netflix.vbs</args>
<hidexbmc>false</hidexbmc>
<hideconsole>true</hideconsole>
<warpcursor>none</warpcursor>
</player>
<rule name="Netflix" filetypes="app" player="Netflix" />
- Create [%appdata%\XBMC\userdata\advancedsettings.xml] and add this entry to it:
Code:<videoextensions>
<add>.app</add>
</videoextensions>
- Make sure the <args> in playercorefactory matches the actual path of [Netflix.vbs]
- Add folder containing [Netflix.app] to XBMC's video sources:
On the default (Confluence) skin: Videos -> Files -> Add Videos... / Add the folder containing [Netflix.app]. It should appear in the 'Files' list that you were just looking at.
- Restart XBMC
Notes:
- I was originally having trouble with the "Click OK when playback has ended" prompt, but forcing wscript.exe to wait 5 seconds before exiting fixed that.
- I originally tried just putting the [Netflix.vbs] file in the library with wscript.exe as the external player with an argument of {1} but I had issues with XBMC locking up when I tried to launch it that way. Using the stub file fixed that. Maybe I'll look into that later.
- Having the script wait 5 seconds is a hack to work around the fact that I couldn't find documentation on how to programmatically detect whether a Metro/ModernUI/Windows Runtime app was running. If anyone finds this in an API somewhere, can you share?