PDA

View Full Version : Airplay can be enabled with one line of code!




Evgenyy
Nov 24, 2010, 12:48 PM
See here http://www.tuaw.com/2010/11/24/apple-tv-hacking-spelunking-into-the-airplay-video-service/

Looks like one line of code will enable Airplay for an app that uses standard video player. The downside - it has to be enabled in each app or possibly with some JB mobilesubstrate addon. Hopefully it won't take long for JB community to come up with something :rolleyes:



powerman
Nov 24, 2010, 01:34 PM
I don't understand all of the information in this artical, I am not a programmer or hard core user, but from what I am seeing is it should not take much to get internet video, and other video to airplay on to our big screens. If this is the case I am very excited about the future of :apple:tv.

newagemac
Nov 24, 2010, 01:59 PM
Wow. Just one line of code. That's great news. Apple is probably going to make this private API public. I still think they limited the video part of it to just 3 apps in this initial rollout just to make it easier to iron out any bugs that might pop up and plan to open it up further when it's up to their standards. They've been working out bugs in the audio part for years with Airtunes and it shows which is probably why all apps already support audio Airplay.

mdwsta4
Nov 24, 2010, 02:00 PM
oh man, that'd be awesome! All I want to do is stream files using VLC player. It would take forever to convert all my avi and mkv files to an apple specific format!!

newagemac
Nov 24, 2010, 02:03 PM
I don't understand all of the information in this artical, I am not a programmer or hard core user, but from what I am seeing is it should not take much to get internet video, and other video to airplay on to our big screens. If this is the case I am very excited about the future of :apple:tv.

The top part of the article was a bit confusing because that was before she figured out that it only required one line of code. She was going through a bunch of hacky methods to get it to work and it did work somewhat. But then near the bottom of the article there's an update explaining how she found out that instead of going the hacky method, all she had to do was just add one line of code to any application. She never needed to do any of that stuff she did at the top of the article. Apple seems to have made it nice and easy for developers. :)

Evgenyy
Nov 24, 2010, 02:05 PM
Wow, they also compiled Air Video with Airplay enabled! http://www.youtube.com/watch?v=7qzmRFu1pRw

This is truly awesome!

haganaga
Nov 24, 2010, 02:11 PM
Right on! Can't wait for this to come to those of us who have no clue how to program and such. :D

GeekLawyer
Nov 24, 2010, 03:05 PM
The follow-up article at TUAW, with quotes from the developer of Air Video, gives some hope.

C'mon, Apple, do the right thing with the (now) private API.

http://www.tuaw.com/2010/11/24/airplay-and-ios-4-2-combine-for-air-video-tv-playback-demonstrat/

powerman
Nov 24, 2010, 06:55 PM
How hard is it to do this for the not so smart mac user? Also will this work off of a MBP?

Evgenyy
Nov 25, 2010, 04:08 AM
How hard is it to do this for the not so smart mac user? Also will this work off of a MBP?

I don't think it's possible to have this easily enabled by users. The code has to be inserted into each app before it is compiled. Not sure if you can decompile individual apps and then recompile them with extra code. This also won't work on Mac, only on iOS devices that support Airplay.

Evgenyy
Nov 26, 2010, 04:53 AM
THat didn't take long! AirVideoEnabler should soon be available in Cydia which will allow video to be Airplayed from any video app including Safari!
http://www.youtube.com/watch?v=TvMkLH2QH5E

ptaylor9
Nov 26, 2010, 07:00 AM
well I've never really been interested in JB'ing my phone before, but that makes it very tempting...can't believe it doesnt do this out of the box, so to speak...

fabian9
Nov 26, 2010, 09:54 AM
THat didn't take long! AirVideoEnabler should soon be available in Cydia which will allow video to be Airplayed from any video app including Safari!
http://www.youtube.com/watch?v=TvMkLH2QH5E

I just saw this as well and posted a thread about it over in the iPhone Hacks forum.

http://forums.macrumors.com/showthread.php?p=11486823#post11486823

Hopefully somebody will be able to verify if it's available already or not!

dhy8386
Nov 26, 2010, 01:45 PM
I just saw this as well and posted a thread about it over in the iPhone Hacks forum.

http://forums.macrumors.com/showthread.php?p=11486823#post11486823

Hopefully somebody will be able to verify if it's available already or not!

It's available. Not home to test on my atv. Love to hear if it works w hulu. U can grab it at Cydia.zone-mr.net

dault2
Nov 27, 2010, 06:18 PM
Is there any way to push web videos from a computer to the apple tv? anything in development?

jas1973
Nov 27, 2010, 07:55 PM
Is there any way to push web videos from a computer to the apple tv? anything in development?

yes if you read the post above you can see it is being done and is unofficially under development

DeusInvictus7
Nov 30, 2010, 03:25 PM
Airplay is working just like it does on iOS for videos for me on the computer side...Play them in iTunes and then select the Airplay device. I noticed that on Mac the icon changed from the speaker to the TV screen like it did on iOS, so I made sure that video works, and it definitely does.

See attached photo:

EDIT: Nevermind, I realized he asked about web videos, not stuff in iTunes. My bad.