Tagged with Streaming

Selecting Airplay Speakers in OS X Has No Effect

It appears to have started occurring after I upgraded to Mavericks (OS X 10.9), though I can’t confirm this for sure. When I select an airplay output device from my Macbook Air nothing happens.

TLDR;

If you have this problem restart the music service for your mac with the following command:

sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`

THE DETAILS

If I hold the option key and click on the speaker icon in the menu bar, I see the Airplay devices available on my network and am able to select them:

However, after selecting a device the audio will continue to play from my Macbook Air, and if I re-open the menu under ‘Output Device:’ my ‘Internal Speakers’ are still selected.

Looking for a solution to this problem I came across this forum thread which suggested the following command, which I break down below:

##### Full Command #####
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`

##### Breaking down the command #####
# Lists the running processes on your computer
ps -ax                                   
# Finds the line for the core audio process in the process list
ps -ax | grep 'coreaudiod'       
# Avoids the problem where the grep process also shows up in the ps results        
ps -ax | grep 'coreaudiod' | grep 'sbin' 
# Pulls out the Process ID for the core audio process
ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}' 
# Uses the Process ID of the core audio process to kill it (it will auto-restart)
sudo kill `ps -ax | grep 'coreaudiod' | grep 'sbin' |awk '{print $1}'`

This command has been a life saver for me, though I’m still not sure why Apple’s core audio service would be so brittle to get into the bad state necessitating this command so frequently.

Tagged , , , , ,

Accessing US Content From Canada with a Boxee Box

If you want the answer without having to read the rest: Unblock-Us.  If you want to hear more of the story of my experience, read on!

Following the strong recommendation of my friend Ryan Jones, I finally broke down and bought a Boxee Box to replace my 7 year old Dell laptop as my primary HTPC (Home Theatre PC).  I’ve been fairly happy with the device and it’s functionality, and perhaps I will do a more comprehensive review at a later time, but for now I want to talk about the setup I ended up using to be able to access US only content (e.g. Pandora, Netflix US Selection, etc.) using my Boxee Box.

If you’re curious about the actual mechanism that is used to block access to US content for those of us located elsewhere, I discussed it in more detail in an earlier post about Pandora.  Here, I’ll simply summarize by saying that all computers have an address (just like houses), and that the US content providers check that address when you request content from them, and deny you if your address is not located in the US.  There are several ways you can try and get around this limitation, and unfortunately for most of them if you want to get decent performance you’ll need to open up your wallet.

For my Boxee Box I initially tried to use one of my standby solutions for this problem; a paid VPN service.  In this case I tried using a service called Overplay, chosen because of it’s fairly low cost ($10/month), and the fact that they had an article specifically about using their VPN with the Boxee Box.  I won’t fully replicate their instructions here, but will instead redirect anyone interested in configuring a VPN on the Boxee Box directly to their article here.  Their steps take you through configuring the Boxee Box to use their VPN service and turning it on.  This part of the process went fairly smoothly, but then I started to encounter some issues.

I first attempted to use Netflix with the VPN turned on.  This didn’t work at all, simply leaving me at an unchanging black screen until I exited back to the Boxee Box interface.  Worse, after exiting the app it had disappeared and was nowhere to be found, and I could only recover it by restarting the Boxee Box.   (I should note that I have a support ticket in with Overplay for this issue, and have not yet heard back)  After several attempts with similar results, I attempted changing the VPN server.  Overplay has three servers located in the US; one in each of the west, central, and east.  I was initially using the East server, so I changed to the Central server.  Fortunately the Central server yielded improved results, allowing me to log into Netflix and get my test US-only content (the Tron movie) streaming, as well as to get Pandora configured.  Unfortunately I was still experiencing frustrating issues.  Occasionally my Boxee Box would decide that it no longer had an internet connection, and I would have to go back into the settings and re-run the network wizard so it would realize it was still connected.  I also experienced bandwidth issues with several sources of HD content, exhibited by halts to the streaming every 20-30 seconds as content buffered.  Finally I was frustrated by the fact that the VPN was not turned back on when I restarted the devise.  Every time I restarted the Boxee Box I needed to go back into the settings and reconnect to the VPN.

My vision for using a Boxee Box was that I could achieve a seamless experience for accessing my local content, as well as the US-only content that I sorely miss.  The VPN alternative was falling short of this expectation, so I looked for other alternatives and came across Unblock-US.  This is a somewhat mysterious service which appears to have gone through several name changes, and seems somewhat questionable even from the less than professional appearance of their website.

I also am currently at a loss to explain exactly how their service works.  There is a Quora article trying to answer this question, but no answer has yet been forthcoming.  From what I could find from various discussions it appears to manipulate the DNS requests for the services it enables by returning alternative IP’s, but what exactly it does with your requests after that point I am not sure.  It does not seem likely that they are in fact routing all your streaming content through their servers as they offer a lower price point than any other competitors that are providing products based on that form of solution.  In any case, the failure of the VPN based solution to live up to my expectations led me to give Unblock-US’s 7-day trial a go.

So far I have only had success with their system.  It requires you to go into your network settings and manually change your DNS server to point to their provided servers.  This may seem scary if you don’t know what a DNS is, but they have explicit instructions to walk you through this change in the Boxee Box settings.  I turned off my VPN, followed their instructions, and went to go test how it worked.

Much to my surprise, I have had no issues with Unblock-US’s solution.  Both Netflix and Pandora were still available and working, and the bandwidth issues I was experiencing through VPN were no longer present.  One of the inherent disadvantages of Unblock-US is that they have to support every service you wish to use, but their list of supported services is quite extensive.  I will continue to make use of their service, and if my experience changes I will updated this post, but so far I am surprised to say I am very happy with how well their solution has worked out, and I intend to cancel my VPN subscription and move my subscription dollars over to them.

Tagged , , , , , , , , , , ,