Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2808] iOS: expose allowsAirPlay property of MPMoviePlayerController

GitHub Issuen/a
TypeNew Feature
PriorityTrivial
StatusClosed
ResolutionFixed
Resolution Date2011-04-15T03:30:06.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-14
ComponentsiOS
Labelsfeature, ios, klist, release-1.7.0, rplist
ReporterDawson Toth
AssigneeRalf Pfeiffer
Created2011-04-15T03:30:05.000+0000
Updated2017-03-20T16:59:52.000+0000

Description

Feature

Expose the allowsAirPlay property of MPMoviePlayerController through Titanium.Media.createVideoPlayer so that we can stream video and audio to Apple TV.

Customer Notes

There have been changes made to the MPMoviePlayerController object within iOS adding the property allowsAirPlay. This property allows videos to be played over airplay.

I have tested 1.4.2 and can verify that a Titanium.Media.createVideoPlayer object will send audio to an Apple TV. [But it will not send video without the property being exposed.]

I was hoping that this new feature could be exposed since they note: "You must explicitly opt-in to AirPlay playback for any movie players you create. The allowsAirPlay property of MPMoviePlayerController is set to NO by default."

Associated Helpdesk Ticket

http://developer.appcelerator.com/helpdesk/view/65801">http://developer.appcelerator.com/helpdesk/view/65801

Comments

  1. Rick Blalock 2011-04-15

    Exposing allowsAirPlay for audio (not just Video ) would be nice too. i.e. Ti.Media.createAudioPlayer()

    Feature request: http://developer.appcelerator.com/helpdesk/view/69321">http://developer.appcelerator.com/helpdesk/view/69321

  2. Jeff Haynie 2011-04-15

    (from [9a8723b49c16a4bc5f294ffef95f74231190fdf9]) [#2808 state:fixed-in-qa] Expose 'allowsAirPlay' property on Ti.Media.VideoPlayer in iOS. https://github.com/appcelerator/titanium_mobile/commit/9a8723b49c16a4bc5f294ffef95f74231190fdf9"> https://github.com/appcelerator/titanium_mobile/commit/9a8723b49c16...

  3. Doney 2011-04-15

    Can AirPlay also be supported for AudioPlayers?

  4. David Fischetti 2011-05-03

    I was excited to find this. I gave it a shot and it looked like it was going to work. I received the video icon on my device (instead of just the audio icon) but when I clicked it appleTV tried to play it but then said "An Error occurred loading this content. Try again later" Not sure if I'm doing something wrong but I believe I followed all the necessary steps. Hope this helps.
  5. Sumit Kataria 2011-12-21

    Any updates here? Titanium still don't support airplay yet.
  6. Sumit Kataria 2011-12-21

    Sorry about false alarm - I just tested it again with 1.8.1RC1 Airplay support works great. Thank you
  7. Lee Morris 2017-03-20

    Closing ticket as fixed.

JSON Source