Difference between revisions of "AirTunes/AirPlay"

From MythTV Official Wiki
Jump to: navigation, search
(Enabling AirTunes)
(Enabling AirPlay (video support): permanent enable)
Line 25: Line 25:
 
Because AirPlay support is experimental, you have to manually enable it at the command line.
 
Because AirPlay support is experimental, you have to manually enable it at the command line.
  
Set the environment variable named MYTHTV_AIRPLAY before starting the frontend, for example:-
+
Set the environment variable named MYTHTV_AIRPLAY before starting the frontend from the command line, for example:-
  
  export MYTHTV_AIRPLAY="1"
+
''shell> ''export MYTHTV_AIRPLAY="1"
  mythfrontend
+
''shell> ''mythfrontend
 +
 
 +
where ''shell>'' denotes the command-line prompt, not something you type.
 +
 
 +
If you want it enabled for starting '''MythFrontend''' from the Finder, run
 +
 
 +
''shell> ''echo setenv MYTHTV_AIRPLAY 1 | launchctl
 +
 
 +
and if you want it enabled this way permanently then run
 +
 
 +
''shell> ''echo setenv MYTHTV_AIRPLAY 1 >> ~/.launchd.conf

Revision as of 17:46, 28 April 2012

MythTV 0.25 added support for AirTunes and AirPlay for streaming audio and video from iOS devices to MythFrontend.


Important.png Note: Please note - AirPlay (video support) is experimental at this time. Although AirPlay and AirTunes will work from various iOS devices (i.e., iPod touch, iPhone, iPad), it does not currently work when trying to stream from iTunes.

Enabling AirTunes

AirTunes does not work out the box because AirTunes is a proprietary format and is encrypted in order to enable vendor lock-in. Fortunately the encryption key has been discovered which enables use of AirTunes in open source applications such as MythTV.

When starting the frontend, you will get the following message in the log:

 RAOP Conn: Failed to read key from: /home/<user>/.mythtv/RAOPKey.rsa

You can obtain the key from this post at the vlc-devel mailing list or from google's cache.

Simply copy the entire section:-

 -----BEGIN RSA PRIVATE KEY-----
 (and everything inbetween)
 -----END RSA PRIVATE KEY-----

Paste into a new file at /home/<user>/.mythtv/RAOPKey.rsa and restart your frontend.

The correct RAOPKey.rsa file will have the sha1sum 35a168eaecec4d3c31424bba54de5ca0a058c24a.

Enabling AirPlay (video support)

Because AirPlay support is experimental, you have to manually enable it at the command line.

Set the environment variable named MYTHTV_AIRPLAY before starting the frontend from the command line, for example:-

shell> export MYTHTV_AIRPLAY="1"
shell> mythfrontend

where shell> denotes the command-line prompt, not something you type.

If you want it enabled for starting MythFrontend from the Finder, run

shell> echo setenv MYTHTV_AIRPLAY 1 | launchctl

and if you want it enabled this way permanently then run

shell> echo setenv MYTHTV_AIRPLAY 1 >> ~/.launchd.conf