Difference between revisions of "Netflix Native Integration"

From MythTV Official Wiki
Jump to: navigation, search
Line 1: Line 1:
This describes how to integrate Netflix with a MythTV frontend.
+
This describes how to integrate [http://www.netflix.com/ Netflix] and [http://www.amazon.com/primeinstantvideo Amazon Instant Video] with a MythTV frontend.
 
The system is made for maximum convenience, including these features:
 
The system is made for maximum convenience, including these features:
 
*Netflix runs in a native Chrome browser.
 
*Netflix runs in a native Chrome browser.
 
**The HTML5 player with Encrypted Media Extensions is used.
 
**The HTML5 player with Encrypted Media Extensions is used.
**Neither WINE nor pipeline are required.
+
**Neither WINE nor pipelight are required for Netflix, (but pipelight is recommended for Amazon Instant Video).
 
**Hardware acceleration is supported.
 
**Hardware acceleration is supported.
*The remote can be used to control volume and start and stop movies and toggle fullscreen mode.
+
*The remote can be used to load and start and stop movies and control the volume.
 
*The remote can act as a mouse with acceleration.
 
*The remote can act as a mouse with acceleration.
*A remote can enter letters using multi-tap on the number buttons.
+
*The remote can enter letters using multi-tap on the number buttons.
*Amazon Instant Video is also supported.
+
 
 +
These instructions are only for Linux.
  
 
==Installation==
 
==Installation==
Line 14: Line 15:
 
===Dependencies===
 
===Dependencies===
  
*The MythTV frontend
+
*The MythTV frontend with the MythNetVision plugin
 
*[http://www.chromium.org/Home Chromium] or [https://www.google.com/chrome/ Chrome]
 
*[http://www.chromium.org/Home Chromium] or [https://www.google.com/chrome/ Chrome]
 
*[http://www.semicomplete.com/projects/xdotool/ xdotool]
 
*[http://www.semicomplete.com/projects/xdotool/ xdotool]
Line 26: Line 27:
 
These scripts were designed for the keys on a Windows-compatible remote control.
 
These scripts were designed for the keys on a Windows-compatible remote control.
 
You may have to adjust the LIRC config for other models.
 
You may have to adjust the LIRC config for other models.
 +
Full integration requires the <tt>BACK</tt> and <tt>ZOOM</tt> buttons and a number keypad.
  
[http://www.amazon.com/Azend-Group-MediaGate-GP-IR01BK-1-Channel/dp/B0028N6XDA http://ecx.images-amazon.com/images/I/41ui3RBb9EL._SX425_.jpg]
+
[[File:MCERemoteControl.jpg|link=http://www.amazon.com/Azend-Group-MediaGate-GP-IR01BK-1-Channel/dp/B0028N6XDA]]
  
 
===MythTV changes===
 
===MythTV changes===
  
====Binary Installation====
+
These instructions assume that you built and installed MythTV yourself.
 
+
If you used a binary installation, you will need to [[User_Manual:Initial_Installation#Getting_and_compiling_the_source_code|reinstall MythTV]] to get these features.
It is easier to maintain an installation that was installed from source.
 
If your installation was from binaries instead, then use these instructions, but you may have to run them again every time you update MythTV.
 
 
 
''TODO''
 
 
 
*Menus
 
*Wrapper script
 
 
 
====Source Installation====
 
  
 
The changes can all be retrieved from GitHub.
 
The changes can all be retrieved from GitHub.
Line 83: Line 76:
 
Use the [http://en.wikipedia.org/wiki/Multi-tap multi-tap] system like on old mobile phones.
 
Use the [http://en.wikipedia.org/wiki/Multi-tap multi-tap] system like on old mobile phones.
 
For example, to enter the letter <tt>L</tt>, press <tt>555</tt>.
 
For example, to enter the letter <tt>L</tt>, press <tt>555</tt>.
 +
To enter an actual number <tt>5</tt>, press <tt>5555</tt>.
 +
To enter a space, press <tt>0</tt>.

Revision as of 07:26, 23 December 2014

This describes how to integrate Netflix and Amazon Instant Video with a MythTV frontend. The system is made for maximum convenience, including these features:

  • Netflix runs in a native Chrome browser.
    • The HTML5 player with Encrypted Media Extensions is used.
    • Neither WINE nor pipelight are required for Netflix, (but pipelight is recommended for Amazon Instant Video).
    • Hardware acceleration is supported.
  • The remote can be used to load and start and stop movies and control the volume.
  • The remote can act as a mouse with acceleration.
  • The remote can enter letters using multi-tap on the number buttons.

These instructions are only for Linux.

Installation

Dependencies

On a Debian-like system, the dependencies can be installed with this command:

sudo apt-get install chromium-browser xdotool python-alsaaudio python-pylirc

These scripts were designed for the keys on a Windows-compatible remote control. You may have to adjust the LIRC config for other models. Full integration requires the BACK and ZOOM buttons and a number keypad.

MCERemoteControl.jpg

MythTV changes

These instructions assume that you built and installed MythTV yourself. If you used a binary installation, you will need to reinstall MythTV to get these features.

The changes can all be retrieved from GitHub.

git merge https://github.com/chadparry/mythtv/tree/netflix

Then re-install like normal.

make && sudo make install

Usage

Starting

  • Start by choosing "Netflix" or "Amazon Instant Video" from the "Internet Video" menu.
  • To exit, use the BACK remote control button. (It looks like a ⬅ on the Windows remote control).
  • To control the volume, use the VOLUMEUP and VOLUMEDOWN buttons.

Shortcut Keys

While a show is playing in Netflix, the following keys are available. When a show is not playing, pressing these buttons could cause nonsense characters to be entered. These buttons are not supported in Amazon Instant Video.

  • PLAY
  • PAUSE
  • REWIND
  • FORWARD
  • MUTE
  • ZOOM (toggles fullscreen mode)

Mouse Controls

The arrows can be used to control the mouse. Mouse acceleration is supported, meaning that the cursor will speed up as long as you hold the button down.

Multi-Tap

The number buttons can be used to enter alphabetic characters. This is necessary for entering a name into a search box. Use the multi-tap system like on old mobile phones. For example, to enter the letter L, press 555. To enter an actual number 5, press 5555. To enter a space, press 0.