Titanium JIRA Archive
Appcelerator Community (AC)

[AC-3216] Provide API to iOS MPNowPlayingInfoCenter

GitHub Issuen/a
TypeNew Feature
Priorityn/a
StatusClosed
ResolutionDuplicate
Resolution Date2012-12-09T11:49:06.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsStudio, Titanium SDK & CLI
Labelsn/a
ReporterIvan Brykov
AssigneeMauro Parra-Miranda
Created2012-10-12T21:26:18.000+0000
Updated2016-03-08T07:57:37.000+0000

Description

There is an iOS API class MPNowPlayingInfoCenter allowing to control some aspects of media playback. It would be nice to get it in Titanium

Comments

  1. Anthony Decena 2012-10-12

    Class Ref: http://developer.apple.com/library/ios/#documentation/mediaplayer/reference/MPNowPlayingInfoCenter_Class/Reference/Reference.html Basic implentation:
       NSArray *keys = [NSArray arrayWithObjects:MPMediaItemPropertyAlbumTitle, MPMediaItemPropertyArtist, ..., nil];
       NSArray *values = [NSArray arrayWithObjects:@"Album", @"Artist", ..., nil];
       NSDictionary *mediaInfo = [NSDictionary dictionaryWithObjects:values forKeys:keys];
       [[MPNowPlayingInfoCenter defaultCenter] setNowPlayingInfo:mediaInfo];
       
  2. Mauro Parra-Miranda 2013-11-26

    DUP of TIMOB-6947

JSON Source