Questions tagged [mpmediaplayercontroller]

92 questions
1
vote
0 answers

Not Receiving Remote Command Center events while using Music Player Controller

I am trying to receive notifications from the remote command center for when the play/pause button is tapped so that I can appropriately update the image for my play/pause button. However, I am not receiving the notification of when the…
WY34
  • 261
  • 3
  • 10
1
vote
0 answers

Apple Music Api SkiptoNextItemnot working

Trying to skip to the next item in the queue, but when applicationMusicPlayer.skipToNextItem() is called, the place in the queue doesn't change, the current track just starts over. The queue is composed of an array of string item IDs. …
1
vote
0 answers

Certain operations cause MPMusicPlayerApplicationController to lock up with "Failed to get play queue identifers" errors

I have a music player application that makes use of MPMusicPlayerApplicationController to play songs from Apple Music, which I access using MPMediaQuery. During certain queue operations (skipping ahead, removing items from the queue), it will throw…
alinder
  • 186
  • 7
1
vote
1 answer

MPMediaPickerController shows white screen , no error

I get a white screen when I try to present MPMediaPickerController. After that, it automatically dismisses itself. I can't access music library in order to import songs in my app. What is really weird is that there is no error printed out in the…
bibscy
  • 2,598
  • 4
  • 34
  • 82
1
vote
0 answers

MPMusicPlayerControllerNowPlayingItemDidChange is unpredictable

Basically the MPMusicPlayerControllerNowPlayingItemDidChange is very unpredictable. Sometimes it gets called once, sometimes twice, sometimes it gets randomly called in the middle of a song while it's playing. I need to figure out a way to ignore…
CentrumGuy
  • 576
  • 1
  • 4
  • 16
1
vote
1 answer

Is it possible to pick a movie from Videos app in iPad, make a copy of it or directly play it in our iOS app?

Our requirement is to embed/copy all the videos that are transferred to iPad from Mac using iTunes in our iOS app so that they can play the videos from our app itself using AVPlayer instead of using default Videos app. Is this possible? If so how? I…
Vidhya Sri
  • 1,773
  • 1
  • 17
  • 46
1
vote
1 answer

IOS media player - Skip to a specific time

I am wondeing: Is there any method to skip to a specific time or skip a specific lapse with IOS Mediaplayer? I cannot find anything similar in the docs. There is a property myMediaPlyer.currentPlaybackTime and there is the method …
1
vote
1 answer

Lags in UI when using a Timer

I am using a timer repeating every second to update the now playing currentPlaybackTime, so I am updating my label every second with the current song's progress. I used to use an NSTimer or in Swift a Timer to repeat every second, however I ran into…
1
vote
1 answer

How to convert ReversedRandomAccessCollection to regular collection

I've been trying to find a way to sort my resulting MPMediaQuery so that the results are sorted by date. I've had a lot of difficulty, and then I found the "reversed()" method, but I cannot get the returned data into a format that I can use with the…
wayneh
  • 4,393
  • 9
  • 35
  • 70
1
vote
1 answer

Hide MPRemoteCommand seekforward and seekbackward

I'm developing a simple radio app for my school and because it's a stream, I figured we don't need seekforward and seekrewind. I saw that you can change what those buttons are, but I haven't been able to completely remove it from the command…
George Urick
  • 135
  • 10
1
vote
0 answers

MPMoviePlayer's attempt to dismiss modal view controller issue

i am developing an app with the implementation of MPMoviePlayerViewController. there is a uitableview with links of videos that will play in it but problem is my first video plays well i tap done from player it came back then i tap on second video…
1
vote
1 answer

AVFoundation play consecutive video fragments

I am working on an iOS app that involves fetching video fragments that are part of a stream from a web server and playing them consecutively inside the app. After some research, I decided to use an AVQueuePlayer. Every time I fetch an MP4 file from…
Joe
  • 2,386
  • 1
  • 22
  • 33
1
vote
1 answer

dismissMoviePlayerViewControllerAnimated not working in Swift

There don't seem to be any SO posts on dismissMoviePlayerViewControllerAnimated in Swift so I guess I'll kick things off. I have a table cell, when you do a long press on it, it displays a video. When the video ends, my goal is to take the user back…
Zack Shapiro
  • 6,648
  • 17
  • 83
  • 151
1
vote
1 answer

Playing a video with mediaplayercontroller

I'm trying to make a player, that gets a url from a tableview (not done yet). I started trying to make the player work, with MPMediaPlayerController. NSString *video = [NSString stringWithFormat:@"http://www.youtube.com/watch?v=GurkREc-q4I"]; …
Kio Coan
  • 561
  • 2
  • 7
  • 24
1
vote
0 answers

Play two consecutive videos in ios app (objective-c)

I have two video files with sound and I need to play them consecutive. I know I can use AVQueuePlayer to play them consecutive in a layer but I would rather use MPmediaPlayer because of its fetures - nice design, implemented stop, play, fullscreen…
martin
  • 37
  • 1
  • 4