Mercredi 20 Novembre 2024
taille du texte
   
Jeudi, 25 Novembre 2010 03:19

AirPlay Feature To Open Doors To Third Party Apps

Rate this item
(0 Votes)

After apple released the first beta version of iOS 4.2, many people were excited about the AirPlay feature as it allowed users to stream content from apps like YouTube, Netflix, and Mobile Safari that implemented the video playback controller to stream audio and video content to their new Apple TV. However, when iOS 4.2.1 was released on Monday, we were disappointed to find out that the AirPlay feature was only available on the iPod and YouTube app and it was possibly to only stream audio from third party apps.

The iPhone developer and hacking expert who writes for TUAW, Erica Sadun, was not pleased with the limitation and was able to figure out a way to enable video streaming from third party iPhone apps using the AirPlay feature using unpublished APIs. She explained the following:

AirPlay Video is part of a public framework called MediaPlayer. This is the same MediaPlayer framework that developers use to show video in their applications. The current movie players ship with an AirVideo selection option built right in. The problem is that when you select AirVideo in a non-Apple application, the video continues to play on-device; only the audio is re-routed through the server to Apple TV. [..]

Having gotten this proof of concept working, there’s still a lot left to get done to transform this into a stable solution that works with general applications. Keep in mind that you’ll be working with unpublished APIs, so the above classes and code are not App Store Safe. That’s why we have a jailbreak world, after all.

Steven Troughton-Smith, another iPhone developer and hacker has optimized Erica’s work to a single line of code that can be implemented by developers and has also eliminated the need for the YouTube workaround. Erica added the following:

Yes, it still won’t be App Store safe, but it’s jailbreak friendly, works flawlessly, and suggests only a single item that Apple could move to a public API to open up this functionality to developers. What’s more, with a little screen scraping or off-screen layer manipulation and a clever use of AVFoundation, you can probably have games working out to Apple TV almost immediately.

You can checkout a video of the custom AirPlay video app that Erica has developed using unpublished APIs below:

The good news is the fact that we can probably expect some jailbreak apps that will allow users to stream audio and video content to the new Apple TV. As for the App Store apps, we’ll probably have to wait for Apple to make the APIs public so that developers can add the feature to their apps if they choose to. What do you think of the whole idea? Let us know int he comments below!

As usual, stay tuned for more news and info by following us on Twitter, and/or by subscribing to our RSS Feed.

[Source: TUAW]

Share

image
image

image

Authors: _GadgetNews

to know more click here

French (Fr)English (United Kingdom)

Parmi nos clients

mobileporn