PDA

View Full Version : Airplay on Boxee Box? is it doable?


stevo81989
December 21st, 2010, 08:56 AM
So someone has been able to get Airplay working on linux and XMBC:

http://www.tuaw.com/2010/12/20/airplay-running-on-xbmc-linux-box/

Im not a very good developer, but those of you who are, is this something a simple add on will fix, or do you think this would require system level access?? If it is a simple app, i really hope someone can help work on it, thanks!

l0th
December 21st, 2010, 09:01 AM
Same here, here's a big +1

cecemf
December 25th, 2010, 01:10 AM
Boxee team will implement this feature only lots of people ask for it, so please follow the link and VOTE !!!

http://jira.boxee.tv/browse/BOXEE-7624

stevo81989
December 25th, 2010, 07:47 AM
Just voted. This would be amazing if we could implement it...now all I gotta do is enable on my jailbroken ipod :-/

PascalW
January 3rd, 2011, 02:33 PM
I've created an external solution to make media playing software Airplay compatible. Currently XBMC, Plex and Boxee are supported.

It's a python script which can run on OSX, Linux and Windows. It has a few python dependencies and for Linux and Windows requires a Bonjour compatible DNS library. The code is hosted on Github, check out the README and INSTALL files to see how to get going, it's pretty easy.

Source on Github (https://github.com/PascalW/Airplayer), direct download here (https://github.com/PascalW/Airplayer/tarball/master).

Peteostro
January 3rd, 2011, 03:13 PM
Looks like some one got airplay working on XBMC linux. maybe the boxee team can get in touch with them

http://www.tuaw.com/2010/12/20/airplay-running-on-xbmc-linux-box/

PascalW
January 3rd, 2011, 03:16 PM
Looks like some one got airplay working on XBMC linux. maybe the boxee team can get in touch with them

http://www.tuaw.com/2010/12/20/airplay-running-on-xbmc-linux-box/

Check out the post above you, it works for boxee too ;)

Peteostro
January 3rd, 2011, 03:25 PM
Check out the post above you, it works for boxee too ;)

Thanks
I think we want airplay support with out having to have another computer on.

PascalW
January 3rd, 2011, 03:27 PM
Thanks
I think we want airplay support with out having to have another computer on.

There's no need to have another computer running, this software is meant to be run on the computer that is running Boxee. Seriously, checkout the readme. No need for such an attitude.

To clarify, by external I meant that it's not a Boxee plugin or something but it's a standalone script which communicates to Boxee through the webinterface.
If you're looking for a single click option then this is not for you. But it isn't that complex either.

Ozpeter
January 3rd, 2011, 03:54 PM
I've created an external solution to make media playing software Airplay compatible. Currently XBMC, Plex and Boxee are supported.My impression is that what people want to do is to play something on an iPod and the sound comes out of the Boxee Box. Is that right, and does this "external solution" make that happen? If so, how?

Peteostro
January 3rd, 2011, 04:06 PM
There's no need to have another computer running, this software is meant to be run on the computer that is running Boxee. Seriously, checkout the readme. No need for such an attitude.

To clarify, by external I meant that it's not a Boxee plugin or something but it's a standalone script which communicates to Boxee through the webinterface.
If you're looking for a single click option then this is not for you. But it isn't that complex either.

There is no attitude.
This is a boxee box forum we are looking for a solution that will work on the boxee box. I do not believe your solution will work since boxee box is locked down and can not run Python with out being hacked.

PascalW
January 4th, 2011, 02:44 AM
Hm well I did overlook this is the Boxee Box subforum. If the Boxee Box cannot run Python than this won't work for the Boxee Box indeed.

aviramsegal
January 4th, 2011, 02:47 AM
voted as it will be nice to use airplay to stream the videos i took on my iphone to boxee in a second.
no pc required

Ozpeter
January 4th, 2011, 02:54 AM
Indeed, currently the Box can only run Boxee apps - you can't get at the underlying OS to run stuff natively.

StevenR
January 4th, 2011, 06:46 AM
I've taken a look at the Python code, and it might be possible to convert it to be able to run on the Boxee Box. It is possible to run Python scripts on the Boxee Box, due to two things:

1) Boxee applications are based on Python and can be developed to run a Python file instead of displaying a window.
2) If an application runs a Python file and that file contains long running code (e.g. an infinite loop), the code will be running in the background even when that application is exited.

Providing the Python code is compatible with the Boxee Box, it could be turned into a Boxee application with the only issue being that you need to start that application every time the Box is restarted. I've already successfully done this with a Python script for a simple web server.

There is another issue with running it on the Boxee Box - a lot of the HTTP commands have been removed, including the PlayFile command which the script relies on. However, with the script running directly in Boxee, it should be possible to create an updated Boxee_media_backend.py file which directly uses the Boxee Python API to implement the same functionality.

I'll have another dig through the code and see how feasible this might be.

cecemf
January 4th, 2011, 06:50 AM
I've taken a look at the Python code, and it might be possible to convert it to be able to run on the Boxee Box. It is possible to run Python scripts on the Boxee Box, due to two things:

1) Boxee applications are based on Python and can be developed to run a Python file instead of displaying a window.
2) If an application runs a Python file and that file contains long running code (e.g. an infinite loop), the code will be running in the background even when that application is exited.

Providing the Python code is compatible with the Boxee Box, it could be turned into a Boxee application with the only issue being that you need to start that application every time the Box is restarted. I've already successfully done this with a Python script for a simple web server.

There is another issue with running it on the Boxee Box - a lot of the HTTP commands have been removed, including the PlayFile command which the script relies on. However, with the script running directly in Boxee, it should be possible to create an updated Boxee_media_backend.py file which directly uses the Boxee Python API to implement the same functionality.

I'll have another dig through the code and see how feasible this might be.

Steve great comment !
You should post it here : hhttp://jira.boxee.tv/browse/BOXEE-7624

That's the official Boxee post that the developer reads and it's been acknowledge as a future feature request so hopefully your comment will help it happen ;-)

stevo81989
January 4th, 2011, 09:04 AM
Just so we are clear, is this an implementation that can play video as well or is it audio only? Also, thanks a ton for your work on this! I think everyone can agree this is something that would make Boxee amazing!! Also if you are willing to work with Boxee on an app or something you could email Avner directly or see @dn0t on twitter. i think he is one of the main developers. That is of course if you are willing. i cant speak for everyone but i would like to say many thanks for you efforts!!

seand5018
January 4th, 2011, 10:14 AM
But (gasp) if this worked, I could (gasp) play Netflix and Hulu + from my iphone to my (gasp) Boxee. The technology goes so much faster than the corporations want it to often as not.

Good work on the Python coding BTW.

PascalW
January 4th, 2011, 01:25 PM
I've taken a look at the Python code, and it might be possible to convert it to be able to run on the Boxee Box. It is possible to run Python scripts on the Boxee Box, due to two things:

1) Boxee applications are based on Python and can be developed to run a Python file instead of displaying a window.
2) If an application runs a Python file and that file contains long running code (e.g. an infinite loop), the code will be running in the background even when that application is exited.

Providing the Python code is compatible with the Boxee Box, it could be turned into a Boxee application with the only issue being that you need to start that application every time the Box is restarted. I've already successfully done this with a Python script for a simple web server.

There is another issue with running it on the Boxee Box - a lot of the HTTP commands have been removed, including the PlayFile command which the script relies on. However, with the script running directly in Boxee, it should be possible to create an updated Boxee_media_backend.py file which directly uses the Boxee Python API to implement the same functionality.

I'll have another dig through the code and see how feasible this might be.

The PlayFile command is available in the standalone Boxee version (for OSX at least), are you sure it's not available on the Boxee box?

One problem with running it inside Boxee as a plugin, is that the embedded Python interpreter is Python 2.4 I guess, at least that's the case for XBMC. I don't think Airplayer is fully Python 2.4 compatible.

Airplayer supports running in the foreground, which will effectively block the thread running it, but also supports running in the background (by forking).

Just so we are clear, is this an implementation that can play video as well or is it audio only? Also, thanks a ton for your work on this! I think everyone can agree this is something that would make Boxee amazing!! Also if you are willing to work with Boxee on an app or something you could email Avner directly or see @dn0t on twitter. i think he is one of the main developers. That is of course if you are willing. i cant speak for everyone but i would like to say many thanks for you efforts!!

This implementation is for video and photo streaming. Audio streaming is a different, encrypted protocol. Currently Airplay is still a little bit limited (unless you have a jailbroken iDevice), you can only stream videos from the Youtube app and iTunes app and show pictures from the pictures app. In the future Apple will probably extend to Safari and other apps too.

StevenR
January 4th, 2011, 02:38 PM
The PlayFile command is available in the standalone Boxee version (for OSX at least), are you sure it's not available on the Boxee box?


Yes, in Boxee V1.0 (running on the Boxee Box) almost all the XBMC HTTP API commands have been removed and very few still work, a request has been made on JIRA to reinstate them:

http://jira.boxee.tv/browse/BOXEE-7068


One problem with running it inside Boxee as a plugin, is that the embedded Python interpreter is Python 2.4 I guess, at least that's the case for XBMC. I don't think Airplayer is fully Python 2.4 compatible.


I've just spotted another problem, due to the way it is locked down it might not be possible to get a compatible DNS-SD library onto the Boxee Box.

There might be alternative ways of doing it, such as running the script on another computer and passing the requests to the Boxee Box.
There is still the issue of the missing PlayFile command, but there are ways around this such as a simple web server app running on the Boxee Box which implements the PlayFile command - I've just created a rough app which does this and it works reasonably well.

mabmojo
January 24th, 2011, 04:34 PM
@PascalW

Sir, I would really like to see If i could get this installed on my ATV1 with Boxee on it.

Is it possible and if so could I have some direction on how to do so.

Thanks

Mab

PascalW
January 24th, 2011, 11:03 PM
@PascalW

Sir, I would really like to see If i could get this installed on my ATV1 with Boxee on it.

Is it possible and if so could I have some direction on how to do so.

Thanks

Mab

Does it run OS X or Linux? Anyhow, if you can get Python on it you should be set. You just have to follow the installation instructions provided in the source then.

Rustycar
January 25th, 2011, 06:56 AM
As was pointed out earlier Airplay applies only to video and pictures, the older AirTunes protocol is still in use for audio files.

However forked-daapd (https://github.com/jasonmc/forked-daapd) managed to reverse engineer Airtunes v2 (http://blog.technologeek.org/2010/05/02/315) last year so hopefully someone can merge that into the work being done with Airplay.

mabmojo
March 19th, 2011, 08:04 PM
I recently sold my ATV w/ boxee on it and picked up a BBox. Has any one heard any news, making progress of getting any airplay support on the bbox.

Cheers

Mike

Rustycar
March 20th, 2011, 08:41 AM
I recently sold my ATV w/ boxee on it and picked up a BBox. Has any one heard any news, making progress of getting any airplay support on the bbox.

Cheers

Mike

If the reverse engineered version of Airplay makes it's way into XBMC when it's at a good enough point for end users then you might see Boxee adopt it (emphasis on might).

twistybox
March 20th, 2011, 11:24 AM
Why would Boxee bother to implement a reverse engineered Airplay? They wouldn't be able to advertise it if they did that. The spec is available from Apple and Boxee can simply license it - not sure what the costs are.

That would then put them in the same category as Denon and others who have adopted it officially, giving them the right to use the Airplay logo in advertisements/marketing materials.

jmilum
March 22nd, 2011, 10:51 AM
Boxee can simply license it - not sure what the costs are.
When I asked Avner about this recently, he said that licensing airplay for the Boxee Box would be a problem and not likely to happen.

On the other hand, Airplay for the Boxee iPad App would work to the Apple TV.

twistybox
March 22nd, 2011, 11:16 AM
By the end of the year, it's going to look like a pretty big missing feature if it's not supported.

At $99, the AppleTV is just about worth purchasing for Airplay alone, even if you have no plans to ever use any of its other features.

Lukecro
March 23rd, 2011, 01:45 PM
When I asked Avner about this recently, he said that licensing airplay for the Boxee Box would be a problem and not likely to happen.

On the other hand, Airplay for the Boxee iPad App would work to the Apple TV.

New article on Mac Rumors says that Apple is considering licensing AirPlay video compatibility to CE companies, just as they're already licensing the AirTunes/AirPlay audio compatibility to some companies. Rumour is they charge the companies $4 per device sold. I doubt D-Link would want to add $4 to their Boxee Box costs at this point, even if Apple let them license AirPlay/AirTunes - but it'd be great if Boxee could add it as an a la carte software option. Boxee could pay Apple $4 per AirPlay activation, and they could turn a profit by charging us a bit more than the cost. Heck, I'd pay $10 for getting an AirPlay/Tunes app on my Boxee Box. Not so sure Apple would let Boxee do that, since they see Boxee as being an Apple TV competitor, but it'd sure be cool if they let it happen. See:

http://forums.macrumors.com/wap/GetThread.php?t=1123487

jmilum
March 23rd, 2011, 03:05 PM
The original article from Bloomberg:

Apple Is Said to Weigh Expanding AirPlay For Streaming Video on Devices (http://www.bloomberg.com/news/2011-03-23/apple-is-said-to-weigh-expanding-airplay-for-streaming-video-on-devices.html)

What's interesting is that currently Apple doesn't license Airplay for video. I didn't realize that. So audio costs $4, I wonder what they will charge for adding in video?

Perhaps if Apple is willing to work with other vendors then Boxee could pass on the charge to customers directly. I would pay, and then anyone clamoring for the service could put up or shut up.

zorlan
March 23rd, 2011, 06:36 PM
Someone please explain to me the benefits of airplay with boxee box I'm not following this well :(

minel
March 23rd, 2011, 07:10 PM
Someone please explain to me the benefits of airplay with boxee box I'm not following this well :(

you have a movie on your iPhone / iPad... or a bunch of pictures... family is over.. you want to show them on the big screen tv...

AirPlay will stream them to Boxee Box over wifi and play on TV... that's what AirPlay is...

Or you have some songs on your iPhone / iPad and want to play them on the big stereo that Boxee Box is connected to.. that's doable too.

Except it costs Boxee money to licence it from Apple and they are probably too poor/cheap to implement it :)

twistybox
March 23rd, 2011, 08:13 PM
Apparently it costs $4 per device for the current agreement, which doesn't yet support video. Seeing as Boxee makes no money from the device sales, they couldn't pay it. But D-Link could. And so could other hardware partners.

$4 is pretty high for what essentially comes down to permission to use a technology. But it's shaping up to be a pretty significant feature and rumors indicate that TV manufacturers are going to start implementing it, perhaps with a newly licensed video capability.

Sooner or later I suppose Boxee's hardware partners will ask for it and be willing to pay for it.

zorlan
March 23rd, 2011, 08:52 PM
you have a movie on your iPhone / iPad... or a bunch of pictures... family is over.. you want to show them on the big screen tv...

AirPlay will stream them to Boxee Box over wifi and play on TV... that's what AirPlay is...

Or you have some songs on your iPhone / iPad and want to play them on the big stereo that Boxee Box is connected to.. that's doable too.

Except it costs Boxee money to licence it from Apple and they are probably too poor/cheap to implement it :)

Thanks. I really see no benefit for me then. All my content is on my Nas anyway.

jasch
March 23rd, 2011, 09:25 PM
You can also play your Games on your TV, or watch content other than videos or music (email, surf, etc).

Apple's idea is that any App on your phone or iPad, could potentially transmit their video to your TV wirelessly... it's like a wireless video-out connection.

matejay
March 23rd, 2011, 11:05 PM
I would certainly like this to be implemented, maybe even as an optional "pay to access" feature. Something like Boxee Box / D-Link didn't originally pay for this but if you're willing to fork out the extra $6 (including video) this will become available as an option, basically letting people choose if they want this feature or not? Any ideas? Anyone listening from the Boxee Team / D-Link? ;)

twistybox
March 23rd, 2011, 11:13 PM
I think a lot of people would bite at $5 or $6. On a related note, I also think Boxee should sell their iPad app instead of giving it away for free. I'd buy it after getting an iPad.

stevo81989
March 24th, 2011, 11:46 AM
Just something to ponder...do you think it would be able to transfer licensing? I mean, would this licensing be on a user basis or a hardware basis? If anyone knows how this kind of thing works, I would be highly interested...

Also if we're talking about pay ing for licensing...I would also be willing to pay for DVD licensing.

stevo81989
March 24th, 2011, 11:47 AM
I think a lot of people would bite at $5 or $6. On a related note, I also think Boxee should sell their iPad app instead of giving it away for free. I'd buy it after getting an iPad.

I agree. It has so much functionality. $5-$6 for the app is probably the limit but they need to make money somehow...however, Avner said it was gonna be free so he may, unfortunately, be obligated to that.

twistybox
March 24th, 2011, 11:53 AM
I mean, would this licensing be on a user basis or a hardware basis?

Apple's licensing fees are on a per-device basis as far as I know.

An upgrade fee charged by a manufacturer is also not unprecedented, having been done by Denon/Marantz for older receivers a little while back.