radiant-player / radiant-player-mac

:notes: Turn Google Play Music into a separate, beautiful application that integrates with your Mac.
http://radiant-player.github.io/radiant-player-mac/
MIT License
2.99k stars 261 forks source link

Airplay Support #28

Closed jackatbancast closed 10 years ago

jackatbancast commented 10 years ago

Is there potential for Airplay support to allow for offloading of music playing to another device, without having to set it globally?

brandonskane commented 10 years ago

:+1: like in iTunes, would be great.

megalithic commented 10 years ago

definitely would be a great enhancement.

v3rm0n commented 10 years ago

I haven't done any Objective-C development before, but I looked into it and found a project https://bitbucket.org/kluivers/airplaystreaming that seems to have most of the code for this. Problem is that because this app is basically just a web browser I couldn't find any way to change the audio output device of the WebView. Any ideas on this?

kbhomes commented 10 years ago

Since I haven't been able to find any method to redirect the audio output of the WebView's Flash Player, I don't see implementing AirPlay as a viable feature, so I will be closing this. If anybody can think of ideas, produce proof of concepts, or even implementations, feel free to comment.

schisamo commented 10 years ago

@kbhomes Maybe you'll have better luck when the HTML5 lab feature is enabled:

http://www.theverge.com/2012/4/10/2937875/google-play-music-labs-features-html5-player-desktop-notifications

kbhomes commented 10 years ago

@schisamo Currently, HTML5 audio support appears to be disabled despite still being an option in Google Music (see #37). Once HTML5 is re-enabled (if ever), I'll definitely take a look into seeing if it's possible to hook into WebKit's WebAudio interface and provide audio capabilities that way (AirPlay, equalizer, etc.)

jackatbancast commented 10 years ago

@kbhomes as far as I know, or have investigated, HTML5 only works with certain implementations HTML5 audio of browsers, not sure if this is graceful support dropping or User-Agent string checking, might be worth looking into more?

blanchardjeremy commented 9 years ago

Just so everyone knows, there's a way to stream any audio through airport speakers. The same instructions for Spotify work great with radiant player: https://support.spotify.com/us/learn-more/faq/#!/article/Stream-Spotify-using-Airplay

brandonskane commented 9 years ago

@auzigog that sets the the global output to Airplay (all of the system's audio) as opposed to just Spotify/Radiant.

blanchardjeremy commented 9 years ago

Correct. It's not a perfect solution, but a good stopgap until something more precise is built.