Stream Audio to AppleTV

From AwkwardTV
Jump to: navigation, search

What You'll Need

Soundfly - freeware - by abyssoft


You'll need to put Soundfly receiver.app on your ATV either by scp, afp, or ftp.

My recommendation is to make an Applications directory in ~/ where it can be easily located ("mkdir ~/Applications", then "mv Soundfly\ receiver.app ~/Applications/"). ~ Maraklov 00:37, 1 September 2007 (CEST)

Start by ssh

From ssh you can start Soundfly receiver with the command:

open /mnt/Scratch/Users/frontrow/Applications/Soundfly\ receiver.app

To kill the process on your AppleTV, you just have to do the command "ps awwwwx | grep [S]oundfly" and use "kill pid" where pid is the first number in the result from the last command.

LaunchAgent

You can also set up a LaunchAgent. It launches Soundfly receiver.app every time the AppleTV boots.

Mine is a file called com.maraklov.soundfly.plist in the ~/Library/LaunchAgents/ directory. ~ Maraklov 00:37, 1 September 2007 (CEST)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
	<key>Label</key>
	<string>com.maraklov.soundfly</string>
	<key>ProgramArguments</key>
	<array>
		<string>open</string>
		<string>/mnt/Scratch/Users/frontrow/Applications/Soundfly</string>
		<string>receiver.app</string>
	</array>
	<key>RunAtLoad</key>
	<true/>
</dict>
</plist>

Start Soundfly.app

Open the Soundfly app on your Mac and the while to app is open, your audio will be streamed over the network to Soundfly receiver playing on your AppleTV.