INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Netflix support  (Read 15511 times)

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Netflix support
« on: February 17, 2015, 02:39:13 am »

COOOOOOOOOOOOOOL!!!!!!!!!!!!!! I got Netflix working in media centre web viewer from a library entry. :)))))

Added a custom file type for Silverlight using the custom resources FileAssociations.xml

Added the below and set the file type to xap for the imported url.
Set xap filetype to open in JRiver webviewer.
That's it. I had logged in and saved Netflix credentials from an internal JR web browser so it just launches straight into full screen web viewer mode. :)

<Item Name="xap">video/xap</Item>


Silverlight xap (xap)

Create a FileAssociations.xml from the below code window and put into this directory> C:\Program Files (x86)\J River\Media Center 20\Data\Custom Resources
You'll need to create the "Custom Resources" directory.
That's it. It works perfectly.
Now I can go back to my plan of scrapping URL's for Netflix streams I want to add to the library via playlists. :)

Maybe I can find a way to create dynamic smartlists for the various genres and other search types?


Code: [Select]
<!--
Media Center File Associations XML (Default / English)
-->

<MJFA version="1.044">

  <!-- Descriptions -->
  <DescriptionTypes>
    <Audio>WAV Audio (wav,w64,raw,l16,l24);AU Audio (au,snd);AIF Audio (aif,aifc,aiff);MPEG Audio (mp3,mpa,mpga);MIDI Audio (mid,midi,rim,rmid);Windows Media Audio (wma,wax,x-ms-wma);MusicEx Media (jmx);Audible Audio (aa);RealAudio (ram,ra);OGG Audio (ogg);MPC Audio (mpc,mp+,x-musepack);FLAC Audio (flac,fla);Monkey's Audio (ape,apl,mac,x-ape);CD Audio (cda);AAC Audio (m4a,aac,3ga);ALAC Audio (m4a);iTunes Protected Audio (m4p,m4b);CUE Files (cue);WavPack (wv);AC3 Audio (ac3);DTS Audio (dts);Matroska Audio (mka);True Audio (tta);DSD Audio (dff,dsf,sacd);Shorten (shn);CAF Audio (caf);Opus Audio (opus)</Audio>
    <Image>JPEG Image (jpg,jpe,jpeg);GIF Image (gif);BMP Image (bmp);TIFF Image (tif,tiff);PNG Image (png);RAW Image (crw,cr2,nef,mrw,orf,raf,pef,dng,srf,arw,x3f,rw2);Photoshop Image (psd);3D JPEG Image (jps,mpo)</Image>
    <Video>MPEG Video (mp2,mpeg,mpg,m1v,mpv,mpe,m2v,mpgv);MPEG Transport Video (m2t,tp,ts,trp,rec);AVCHD Video (m2ts,mts);Windows Media Video (wmv,wvx,dvr-ms,x-ms-wmv,wtv);QuickTime (mov,qt);MP4 Video (mp4);M4V Video (m4v);AVI Video (avi);RealVideo (rv,rmvb);ShockWave (swf);DIVX Video (divx,x-divx);DVD Video (ifo,vob);Matroska Video (mkv);Matroska Video 3D (mk3d);Ogg Video (ogv,ogm);WebM Video (webm);Tivo (tivo);Flash Video (flv,f4v);3GP (3gp,3g2,3gpp,3gp2);JRiver TV (jtv);Enhanced VOB (evo);XVID Video (xvid);Blu-ray (bdmv,mpls);Bink (bik);RTMP (rtmp);3d Blu-ray (bdmv3d);Silverlight xap (xap)</Video>
    <Data>MS Office Files (doc,docx,xls,xlsx,csv,ppt,pptx,mde,mdb);OpenOffice Files (odt,odg,odp,ods);Adobe Acrobat Files (pdf);Text Files (txt,rtf,log);Source Files (cpp,h,c);Webpage Files (html,htm,mht,url);Executables (exe);Disk Image Files (iso,img,nrg,mdx);</Data>
    <Playlist>Media Playlist (mpl);Audio Playlist (m3u,m3u8,pls,xpl,bpl,xspf);Windows Media Player Playlist (wpl);</Playlist>
    <Unknown>Windows Media (asx,asf,wm);RealMedia (rm,rp,rmm,rmx,smi,smil,rmj);Podcast (feed,itpc,opml,pcast,podcast);Audio CD (cdaudiodisc);DVD Video (dvdvideodisc);Blu-ray (bluraydisc)</Unknown>
  </DescriptionTypes>

  <!-- Defaults -->
  <DefaultFileTypes>m4a;jmx;mp3;wma;wmv;avi;wav;m3u;m3u8;pls;mpl;mpc;flac;ogg;ape;wv;jpg;tif;mpg;feed;itpc;opml,pcast;podcast;ifo;cdaudiodisc;dvdvideodisc</DefaultFileTypes>

  <!-- Types (by category) -->
  <MJTypes>mp3;wav;w64;raw;au;snd;wma;ogg;ape;apl;mac;mp+;mpc;mpp;flac;fla;vqf;cda;mpga;jmx;aa;opml;wv;aif;aiff;aifc;l16;l24;m4a;aac;3ga;ac3;tta;dts;dff;dsf;sacd;shn</MJTypes>

  <IMGTypes>jpg;jpe;gif;jpeg;bmp;tif;tiff;png;crw;cr2;nef;mrw;orf;raf;pef;dng;srf;arw;x3f;rw2;psd;jps;mpo</IMGTypes>

  <DXTypes>rmvb;rv;rm;smi;smil;snd;mid;rmi;midi;mpeg;mpg;m1v;m2v;mp2;mpa;mpe;m2t;tp;ts;rec;trp;m2ts;mts;asx;wax;wvx;asf;wm;wmv;avi;divx;mkv;mka;mk3d;ogv;ogm;webm;dvr-ms;tivo;nsv;flv;f4v;jts;jtv;evo;xvid;mp4;qt;mov;vob;wtv;bdmv;mpls;bik;rtmp;caf;opus;mpgv;bdmv3d</DXTypes>

  <RPTypes>rmi;rmid;lsy;lqt;la1;ram;rmm;rp;r3t;ra;rmd;rmx;rmj;rtx;rt;rup</RPTypes>

  <QTTypes>qt;mov;mp4;m4a;m4p;m4b;aac;m4v;3gp;3g2;3gpp;3gp2</QTTypes>

  <OTTypes>feed;itpc,pcast;podcast;cdaudiodisc;dvdvideodisc;bluraydisc;mpl;m3u;m3u8;pls;xpl;bpl;xspf;wpl;cue</OTTypes>

  <!-- Mime -->
  <MimeAssociations>
    <Audio>
      <Item Name="aa">audio/audible</Item>
      <Item Name="aac">audio/aac;audio/x-aac;audio/aacp</Item>
      <Item Name="ac3">audio/ac3</Item>
      <Item Name="aif">audio/aif</Item>
      <Item Name="aifc">audio/aifc</Item>
      <Item Name="aiff">audio/aiff;audio/x-aiff</Item>
      <Item Name="ape">audio/ape</Item>
      <Item Name="apl">audio/apl</Item>
      <Item Name="asf">audio/asf</Item>
      <Item Name="asx">audio/asx</Item>
      <Item Name="au">audio/au;audio/basic</Item>
      <Item Name="caf">audio/caf</Item>
      <Item Name="dts">audio/dts</Item>
      <Item Name="flac">audio/flac;audio/x-flac</Item>
      <Item Name="fla">audio/fla</Item>
      <Item Name="m4a">audio/m4a;audio/x-m4a;audio/mp4</Item>
      <Item Name="m4b">audio/m4b</Item>
      <Item Name="m4p">audio/m4p</Item>
      <Item Name="mac">audio/mac</Item>
      <Item Name="mid">audio/mid;audio/midi;audio/x-mid;audio/x-midi;midi/mid</Item>
      <Item Name="mka">audio/x-matroska</Item>
      <Item Name="mm">audio/mm</Item>
      <Item Name="mp3">audio/mpeg;audio/mp3;audio/mpg;audio/x-mp3;audio/x-mpeg;audio/x-mpg</Item>
      <Item Name="mpa">audio/mpa</Item>
      <Item Name="mpc">x-musepack;audio/mpc;audio/mp+</Item>
      <Item Name="mpga">audio/mpga</Item>
      <Item Name="mx">audio/mx</Item>
      <Item Name="ogg">audio/ogg;application/ogg</Item>
      <Item Name="opus">audio/opus</Item>
      <Item Name="ra">audio/ra</Item>
      <Item Name="ram">audio/x-pn-realaudio;audio/ram</Item>
      <Item Name="raw">audio/raw</Item>
      <Item Name="rim">audio/rim</Item>
      <Item Name="rm">audio/realaudio</Item>
      <Item Name="rmid">audio/rmid</Item>
      <Item Name="rmj">audio/rmj;application/vnd.rn-realsystem-rmj</Item>
      <Item Name="rmx">application/vnd.rn-realsystem.rmx</Item>
      <Item Name="smi">audio/smi</Item>
      <Item Name="smil">audio/smil</Item>
      <Item Name="snd">audio/snd</Item>
      <Item Name="wav">audio/wav;audio/x-wav</Item>
      <Item Name="l16">audio/L16</Item>
      <Item Name="l24">audio/L24</Item>
      <Item Name="wax">audio/x-ms-wax;audio/wax</Item>
      <Item Name="wma">audio/x-ms-wma;audio/wma</Item>
      <Item Name="dff">audio/x-dff</Item>
      <Item Name="dsf">audio/x-dsf</Item>
      <Item Name="dsd">audio/x-dsd</Item>
      <Item Name="sacd">audio/x-sacd</Item>
    </Audio>
    <Image>
      <Item Name="bmp">image/bmp</Item>
      <Item Name="cr2">image/cr2</Item>
      <Item Name="crw">image/crw</Item>
      <Item Name="gif">image/gif</Item>
      <Item Name="jp2">image/jpeg2000</Item>
      <Item Name="jpg">image/jpeg;image/pjpeg;image/jpg</Item>
      <Item Name="pict">image/pict</Item>
      <Item Name="png">image/png</Item>
      <Item Name="tif">image/tiff</Item>
      <Item Name="tiff">image/tiff</Item>
      <Item Name="xbm">image/xbm</Item>
      <Item Name="psd">image/psd</Item>
      <Item Name="mpo">image/mpo</Item>
      <Item Name="jps">image/jps</Item>
      <Item Name="ico">image/vnd.microsoft.icon</Item>
    </Image>
    <Video>
      <Item Name="3g2">video/3gpp2</Item>
      <Item Name="3gp">video/3gpp</Item>
      <Item Name="3gp2">video/3gpp2</Item>
      <Item Name="3gpp">video/3gpp</Item>
      <Item Name="asf">video/x-ms-asf;video/x-ms-asf-plugin</Item>
      <Item Name="asx">application/x-mplayer2;video/asx</Item>
      <Item Name="avi">video/avi;video/x-msvideo;video/msvideo</Item>
      <Item Name="divx">video/x-divx;video/divx</Item>
      <Item Name="m1v">video/m1v</Item>
      <Item Name="m4v">video/x-m4v;video/m4v</Item>
      <Item Name="mkv">video/x-matroska</Item>
      <Item Name="mk3d">video/x-matroska-3d</Item>
      <Item Name="mov">video/mov;video/quicktime</Item>
      <Item Name="mp2">video/mp2</Item>
      <Item Name="mp4">video/mp4</Item>
      <Item Name="mpeg">video/mpeg;video/mpg;video/x-mpeg;video/x-mpeg2a</Item>
      <Item Name="mpg">video/mpg</Item>
      <Item Name="mpv">video/mpv</Item>
      <Item Name="qt">video/qt</Item>
      <Item Name="rv">video/rv</Item>
      <Item Name="swf">application/x-shockwave-flash</Item>
      <Item Name="vob">video/dvd</Item>
      <Item Name="wm">video/x-ms-wm;video/wm</Item>
      <Item Name="wmv">video/x-ms-wmv;video/wmv</Item>
      <Item Name="wmx">video/x-ms-w,x;video/wmx</Item>
      <Item Name="wvx">video/x-ms-wvx;video/wvx</Item>
      <Item Name="xvid">video/xvid</Item>
      <Item Name="flv">video/x-flv;video/flv</Item>
      <Item Name="ts">video/mp2t</Item>
      <Item Name="rec">video/mp2t</Item>
      <Item Name="mts">video/mp2t</Item>
      <Item Name="m2ts">video/mp2t</Item>
      <Item Name="mp2t">video/mp2t</Item>
      <Item Name="mpgv">video/mpgv</Item>
      <Item Name="bdmv3d">video/bdmv3d</Item>
      <Item Name="xap">video/xap</Item>
    </Video>
    <Data>
      <Item Name="c">text/c</Item>
      <Item Name="cpp">text/cpp</Item>
      <Item Name="csv">text/csv</Item>
      <Item Name="doc">application/msword</Item>
      <Item Name="docx">application/vnd.openxmlformats-officedocument.wordprocessingml.document</Item>
      <Item Name="h">text/h</Item>
      <Item Name="htm">text/html</Item>
      <Item Name="html">text/html</Item>
      <Item Name="mdb">application/mdb</Item>
      <Item Name="mde">application/mde</Item>
      <Item Name="odg">application/vnd.oasis.opendocument.graphics</Item>
      <Item Name="odp">application/vnd.oasis.opendocument.presentation</Item>
      <Item Name="ods">application/vnd.oasis.opendocument.spreadsheet</Item>
      <Item Name="odt">application/vnd.oasis.opendocument.text</Item>
      <Item Name="rtf">text/rtf</Item>
      <Item Name="pdf">application/pdf</Item>
      <Item Name="podcast">application/podcast+xml</Item>
      <Item Name="ppt">application/mspowerpoint</Item>
      <Item Name="pptx">application/vnd.openxmlformats-officedocument.presentationml.presentation</Item>
      <Item Name="ps">application/postscript</Item>
      <Item Name="torrent">application/x-bittorrent</Item>
      <Item Name="txt">text/plain</Item>
      <Item Name="vcf">text/vcard</Item>
      <Item Name="xls">application/msexcel</Item>
      <Item Name="xlsx">application/vnd.openxmlformats-officedocument.spreadsheetml.sheet</Item>
      <Item Name="css">text/css</Item>
      <Item Name="js">application/javascript</Item>
      <Item Name="zip">application/zip</Item>
    </Data>
    <Playlist>
      <Item Name="bpl">audio/bpl</Item>
      <Item Name="ifo">content/dvd;video/ifo</Item>
      <Item Name="m3u">audio/mpegurl;audio/x-mpegurl;audio/mpeg-url</Item>
      <Item Name="mpl">application/x-mediajukebox-mpl</Item>
      <Item Name="pls">audio/x-scpls</Item>
      <Item Name="xpl">audio/xpl</Item>
      <Item Name="wpl">application/vnd.ms-wpl</Item>
      <Item Name="xspf">application/xspf+xml</Item>
    </Playlist>
    <Unknown>
      <Item Name="asf">application/vnd.ms.wms-hdr.asfv1</Item>
      <Item Name="rss">application/rss.xml;text/rss</Item>
      <Item Name="xml">application/xml;text/xml</Item>
      <Item Name="apk">application/vnd.android.package-archive</Item>
    </Unknown>
  </MimeAssociations>

</MJFA>


Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #1 on: February 17, 2015, 02:55:16 am »

Standard View


Display View
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #2 on: February 17, 2015, 03:24:18 am »

Works in Theatre View just fine.. This documentary is tagged TV Show with season and episode so it shows in the series view and launches perfectly in full screen mode.
The bottom pic is in live view mode. All the Netflix controls still work even in live view with a mouse.





Logged

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: Netflix support
« Reply #3 on: February 18, 2015, 06:11:21 pm »

OH BOY OH BOY OH BOY OH BOY!!!!

gvanbrunt

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1232
  • MC Nerd
Re: Netflix support
« Reply #4 on: February 18, 2015, 08:04:41 pm »

Very cool. Have to try this out when I get a chance. Thanks for your efforts..
Logged

fitbrit

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 4887
Re: Netflix support
« Reply #5 on: February 18, 2015, 09:48:54 pm »

You have been doing some very cool things recently, HiltonK. Kudos and thanks!
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #6 on: February 19, 2015, 03:21:56 am »

You have been doing some very cool things recently, HiltonK. Kudos and thanks!

No Worries, I enjoy pushing things to the limit as Jim and Matt know well. :)

Please feel free to call me Hilton, Hilt or Sid, short for Sydney Hilton. :) You don't say JimH do you? LOL  Don't worry your not the only one that calls me Hiltonk. :)

Me getting this to work was probably no real revelation, most of it had to do with the new webview streaming audio/video support which prompted me to try Netflix again.
Last time I tried this MC20 didn't know what to do with the stream, even though as Hendrik said (or maybe might have been Glynor) LAV already knows what to do with web streams, MC20 just needed to be told.

The only challenge I had was forcing it stay in webview and not jump external, creating the xap as a recognised file extension allowed me to control where it launches.
Silverlight uses xap file extension so it just made sense to use that one.
http://en.wikipedia.org/wiki/XAP_(file_format)
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Netflix support
« Reply #7 on: February 19, 2015, 04:16:50 am »

Great work! - Just got back and given it a go (but not had the opportunity to play on the HTPC).  From what I can see on the PC, it plays in the internal or external browser just fine, though a couple of Q's
- You mention LAV being used but it seems to be all browser/silverlight to me (neither video or audio being processed in MC)
- I take it there is no RC control

Thanks
Nathan
 
Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #8 on: February 19, 2015, 04:35:06 am »

Great work! - Just got back and given it a go (but not had the opportunity to play on the HTPC).  From what I can see on the PC, it plays in the internal or external browser just fine, though a couple of Q's
- You mention LAV being used but it seems to be all browser/silverlight to me (neither video or audio being processed in MC)
- I take it there is no RC control

Thanks
Nathan
 

Yes your right, I guess the comments about LAV were not relevant here, but there was a comment made recently about web streaming from an update a few days ago that put me on the case again.
Its just using Silverlight in the browser.  The onscreen controls work with mouse and also the default netflix controls. There's a couple that overlap with MC20 so it steals them but the most important play/pause forward/back esc keys work.

Space – Toggle Play/Pause
Enter – Toggle Play/Pause
PgUp – Play
PgDn – Pause
F – Full-screen
Esc – Exit full-screen
Shift+Left arrow – Rewind
Shift+Right arrow – Fast Forward
Up arrow – Volume Up
Down arrow – Volume Down
M – Mute toggle

In full-screen mode:

Ctrl+space – Frame forward/backward mode. Ctrl+space pauses the movie and enters key frame mode (aka intra-frame or i-frame mode). The right and left arrow keys then move between key frames.

The following Ctrl+Shift+Alt+* shortcuts (Ctrl+Shift+Option+* in Mac OS X)  toggle information displays on/off when the player is NOT in full-screen mode. The displays will remain on, however, if full-screen mode is activated.

Ctrl+Shift+Alt+M – Menu;  includes loading custom .dfxp sub-title files.
Ctrl+Shift+Alt+C – Codes; frame rate plus other (unknown to me) info. Also makes the other overlays green.
Ctrl+Shift+Alt+D – Display A/V Stats on-screen
Ctrl+Shift+Alt+L – Logging window
Ctrl+Shift+Alt+P – Player info
Ctrl+Shift+Alt+R – toggle color Rotation for overlays in Chrome; probably a debugging feature.
Ctrl+Shift+Alt+S – current Streaming bit-rate and manual bit-rate selection

HTML 5 may work also though I haven't tried to get that working.
PS.. It's still a bit of a kludge, but at least we can store the unique url links in the library and launch it and control it in standard or full screen display/theatre modes.
The real challenge is getting native browsing back into MC20 and then being able to "bookmark" videos into the MC20 Library.

Kind of a hybrid of browsing random streams and saving the ones you want to revisit into the library for quick playback from library search or MC20 browsing.

In a perfect world MC shouldn't care where the file is stored, we just want to keep a reference to its location, store the meta data and know what to do with the stream audio and video. (oh and be able to hand off the stream to another zone or device)

If it launches in an external browser, you've still got the option of using WDM for DSP etc but the lipsync might be a bit out unless you have a very low hardware buffer set. I think I tested this previously and the hardware needs to support down to around 30ms other wise you start to see the delay and some hardware doesn't work well with streaming content with small buffers.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Netflix support
« Reply #9 on: February 19, 2015, 04:55:57 am »

I agree.  We have two needs from inside MC
1 - ability to browse content / import etc
2 - playback in a 10ft IF (RC support etc).

I'll work some more this weekend on my AHK script and see where that goes, but it is great that we can at least get links into MC.

I also read (somewhere in my research) that the Silverlight player only support 720p and 2ch audio..... but it could have been old info.
Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #10 on: February 19, 2015, 05:02:48 am »

I agree.  We have two needs from inside MC
1 - ability to browse content / import etc
2 - playback in a 10ft IF (RC support etc).

I'll work some more this weekend on my AHK script and see where that goes, but it is great that we can at least get links into MC.

I also read (somewhere in my research) that the Silverlight player only support 720p and 2ch audio..... but it could have been old info.

Yes I believe your right about 720p and 2ch, I'm pretty sure you need HTML 5 to get HD and multi channel. Though MCE supports multi channel and 1080p from memory.
More investigation required!  

I downloaded XBMC/KODI to play with the native Netflix plugin and do some network snooping and look at their code to see what they're doing. Most of it will probably be over my head, but I might see something interesting.

I also installed node in an attempted to scrape Netflix entire library into a SQLite database. I got it working as far as logging in and starting the process but I think it keeps too many ports open and triggers a ENOBUFFS error on windows. It may work on a Linux machine better but I haven't got one setup at the moment.
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #11 on: February 19, 2015, 05:56:08 am »

Netflix is using MPEG-DASH for video streaming and the browser needs to support EME or the stream falls back to Silverlight.

So I can get the video to open from the library in an external browser in HTML 5 mode by just changing the file type in the library to URL or webm and disabling Silverlight plugin in IE 11.

Bottom line.. to use anything other than Silverlight in the internal browser requires an EME compliant browser engine to protect the encrypted content stream.

This is a great site with some really interesting information and the article that set me straight about Netflix. MPEG-DASH looks to have become the defacto standard for streaming DRM protected video.
http://www.streamingmediaglobal.com/Articles/Editorial/Featured-Articles/The-State-of-MPEG-DASH-Deployment-96144.aspx
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #12 on: February 19, 2015, 05:58:58 am »

This might shed some light on the current weirdness with Youtube videos.

Some regions and/or videos are using different streaming technologies.

"YouTube is taking a somewhat more complex approach, using a mix of ISO BMFF H.264 and WebM VP9-based DASH profiles depending on the players they are targeting, also with demuxed essences.

“Our motivations to implement DASH implementation were to improve playback, enable interoperability, and reduce the total number of formats. As DASH profiles, we use ISO BMFF on demand and live, as well as WebM on demand. In terms of codecs, we are using VP8, VP9, and H.264,” explains Richard Leider, tech lead manager of YouTube Player Infrastructure."
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #13 on: February 19, 2015, 06:13:27 am »

If anyone else wants to have a go at scraping with node this is the guide I followed.

There's actually not much to the script, but I'm not a good scripter so what would I know!

My thoughts are however, if you can create a translation from the standard HTML interactions with a web page and then render that to your own web viewer and layout you can effectively make your own front end to the standard website.

That's what I think the XBMC/KODI plugin is doing.  I think it's a grey area whether your actually scraping if your using your own login and only scraping based on standard search terms and website views and then rendering that in your own "web engine". Grabbing all the data for a search term and storing it though, that's definitely scraping.

You could say for example do a search for "action movies" and limit the returned results to a few pages worth that get cached, and then if you go past the limit of the cached search it does another batch and caches that.  Limit it to 50 results or something like that.



http://mechanicalscribe.com/notes/scraping-netflix-category-data/
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #14 on: February 19, 2015, 07:47:34 am »

I got Netflix video working with embedded web browser and the audio in sync using WDM as default sound card and looping back with the old zone switch trick.

Used this in the zone switch rules to route IPC audio back to another zone setup with a 10ms hardware buffer. Works fine on my realtek onboard with optical out.
[Filename]="live:////ipc"

At least it's "working" in MC with the audio engine now and wholly within MC with no external launchers or web browsers.

YMMV with a 10ms buffer to keep lipsync but it works for me. :)

PS. Someones already done a hotkey script for Silverlight Netflix. http://forums.sagetv.com/forums/showthread.php?t=38969
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #15 on: February 19, 2015, 08:22:33 am »

Check this out. Netflix HT - super early preview
This guys done some work with a chrome plugin to add keyboard navigation to Netflix. It re-renders certain things on the page and makes them navigable with keys.
Implement this plugin in chromium or something like it and your 90% there.
Add EME support to Chromium for HTML5 playback for another 5%.
Add audio from web via playingnow and MC audio engine and your done.


It works well, kind like what I mentioned above where he intercepts the website and re-renders it and adds keyboard support.
Go hard left to get the menu to pop up.
Scrolling isn't as smooth as you'd like but it works.

Forum
http://forum.kodi.tv/showthread.php?tid=207262

Chrome Extension
https://chrome.google.com/webstore/detail/netflix-ht-super-early-pr/kadcncdkgaldpfclhiahmbmdfbfdmdja

PS. you can actually use this method launching in chrome as an external browser as long as you have the plugin installed.
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Netflix support
« Reply #16 on: February 19, 2015, 01:49:05 pm »

Oooo lots of good things to have a look at.  Did you get any sleep?
Logged
JRiver CEO Elect

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Netflix support
« Reply #17 on: February 20, 2015, 08:11:35 pm »

Updated my script for the Win Netflix App.  I think it is now more reliable in launching this script directly from MC (before I had to lauch a BAT file to then launch the script or the Netflix app would not reliably start each time... very odd).  Anyway I've got most RC control working (as well as native KB/Mouse) for browing and 1080 Video and 5.1 Audio.
Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #18 on: February 20, 2015, 08:35:06 pm »

Within MC web or the win metro Netflix app?
Logged

jmone

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 14465
  • I won! I won!
Re: Netflix support
« Reply #19 on: February 20, 2015, 09:14:47 pm »

All within the Metro App (just launching it from MC and adding RC support).

To me it is all just a bunch of ugly options till we hear from JR what they really want to do programatically.  From what I can see the options users have come up with are:

- Rod's (nwboater) Need New Way To Watch Netflix With 10 Foot Interface (Solved) - Complete External Netfix Player based on WMC Netflix Plugin (small cost).  No Integration with MC Library or Playback.  Bit of stuffing around to get it going.  Does not work in Win 10, hence I then looked at:
- My Another Way To Watch Netflix With a 10 Foot Interface & RC (Win8/10 only) - similar to above but works with the Netfix App (Win 8.1 and 10).  Less stuffing around to get going, no cost but RC Navigation is not as smooth as the WMC Netflix app.
- Hilton (this thread) - Ability to add links to the Library for Playback in a netflix Web based players.  Unless we can get an HTML5 version going will be limited to 720p / 2ch audio.  No working RC control at this stage.  That said, the concepts used in the script I've been editing for the Win Netflix App could be used to navigate a full screen Netflix web page


Logged
JRiver CEO Elect

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #20 on: February 21, 2015, 09:15:49 am »

Spotify - my next project
Logged

nwboater

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1346
Re: Netflix support
« Reply #21 on: February 21, 2015, 06:55:26 pm »

Gosh, it's great to see all this activity towards integrating Netflix in MC and the talents some of our members have!!!

I have Win7/32 and did not have to pay anything for the Netflix app. Darned if I remember how I got it installed although I recall there were a few hoops to jump through. I do remember that Google was my friend however.

Sorry I didn't document that part. Guess with my advancing years I more and more need to record such things. Darn it!

Cheers,
Rod
Logged

ferday

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1732
Re: Netflix support
« Reply #22 on: February 22, 2015, 10:03:48 pm »

i've never used netflix from JRiver, since my TV streams it and of course my HTPC

but here's a question:  i often use HOLA to watch USA / UK netflix, but of course i have to go through my browser which means i have to watch it in my main theatre or on my computer screen.  is there a way to use this method from Hilton to copy the URL's from HOLA spoofed netflix so i can use JRiver to stream to the TV upstairs?

my wife would love this...

Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #23 on: February 22, 2015, 11:38:32 pm »

i've never used netflix from JRiver, since my TV streams it and of course my HTPC

but here's a question:  i often use HOLA to watch USA / UK netflix, but of course i have to go through my browser which means i have to watch it in my main theatre or on my computer screen.  is there a way to use this method from Hilton to copy the URL's from HOLA spoofed netflix so i can use JRiver to stream to the TV upstairs?

my wife would love this...



I haven't tried that but I don't believe it will work.  Let me see if I can find another way though. :)
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #24 on: February 23, 2015, 01:33:16 am »

You'll be pleased to know you can push Netflix streams to another MC20 machine. I just did it and the video opened in a webbrowser on the target machine.
However I doubt that would work for DLNA TV unless it already had Netflix support.

To get it to work I had to change the Netflix library entry file type to webm.

I'll do some more playing around, Im pretty sure I can get the remote stream to open in the embedded browser on the remote machine.
 I just haven't configured the remote machine to know what to do with a webm stream so it passes it off by default to the external web browser.

Yep I got the Netflix stream to open in the remote MC20 by setting webm filetype to open in embedded JRiver webpage viewer. ;)

Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #25 on: February 23, 2015, 02:06:35 am »

Technically with Webm and the new streaming media support in MC20 we should be able to push a lot of web content straight from a library entry to another zone.

I just saved a youtube url as a library entry and it opens in full screen and autoplays. I had to edit the standard url to achieve this but it's pretty simple.
This also opens in the remote machine fine when I push it through another machines zone. Again I've changed the file type to webm.
This wont work with some copy protected media which forces you to watch from the youtube site. In that case you can just save the standard URL and then use the mouse or keyboard shortcuts to change to full screen and start playback.


Here's the standard URL
https://www.youtube.com/watch?v=v93Jh6JNBng
And here's the modified one to open full screen and auto play.
https://www.youtube.com/v/v93Jh6JNBng?rel=0&autoplay=1


Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #26 on: February 23, 2015, 02:16:43 am »

Now all we need to do is to get the guys to create a browser plugin in the embedded web view to allow you to save a url to the library with a webm file type.

Right click send to or something like that.  It can then parse the URL and change it to open in full screen depending on the domain. If it's youtube parse it to save the url with autoplay and fullscreen, if its Netflix just save the url, but save the movie id and track id in the database too. (we they can then create a Netflix lookup (like the TV/movie lookup) and grab the movie image and info)
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #27 on: February 23, 2015, 02:55:43 am »

This also works for Spotify tracks, albums or playlists, when you click "copy link" in the Spotify browser. You can then open the url in MC20 and tick the option to save it to the library.
Spotify is reliant on flash however so it will only open in an external browser when you open it from the library. That means you don't give it a file type tag and it will just open in the external browser. As long as you've saved your login details, after a moment it will start to play.

PS. This also works for pushing Spotify playlists/tracks/albums to another zone. ;)  You can then use the Spotify mobile app to control it.
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #28 on: February 23, 2015, 03:46:58 am »

It also works for launching iTunes tracks and radio locally and also in a remote zone if you set the filetype tag to webm and use the following URL example.

itmss://itunes.apple.com/au/station/listen-in-itunes/idra.810283811?cmd=AddStation
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #29 on: February 23, 2015, 04:58:35 am »

Jim, Matt, et al

A plugin something like this playon explorer add-on would be good.




Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #30 on: February 23, 2015, 05:04:59 am »

Wow did not know that...

I can Cast the video to a JRiver zone on another machine. Hmmmm.... ;)

Instead of Cast to - Play to Zone
Instead of Add to playmark - Add to library
Instead of Record - hmmm Im not going there...
Logged

Hilton

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1291
Re: Netflix support
« Reply #31 on: February 23, 2015, 05:35:06 am »

Back to Netflix.....


This is a bit of a kludge, but...

You can add a search to the library by just copying the url of a search you've done in Netflix and opening it in to MC20 with Open URL.
Tick the option to save it to media.
Find it in the recently imported playlist.
Right click on it to Send it to a NEW playlist, call it Netflix Searches.
Change the Name to whatever the search was.
Set the file type tag to webm. (need to set MC20 to open webm filetypes in JRiver Webpage viewer)

You can then open it from Theatre view and go straight to the search results, browse the results and click on play.
You can do this for just about any search you can think of, including saving a Series URL in the library. Netflix will automatically remember where you're upto.

Small steps.....


Logged

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: Netflix support
« Reply #32 on: February 23, 2015, 06:47:17 am »

Just want to say I'm loving this. I haven't had a chance to sit down and work through and implement all of this, but I'm looking forward to doing so. Thanks for all your work guys.

imugli

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 1598
Re: Netflix support
« Reply #33 on: February 24, 2015, 11:12:09 am »

Have you guys tried unified remote on android? Works over WiFi. I've just started playing with it tonight. Didn't seem too bad so far.
Pages: [1]   Go Up