Questions tagged [mpmediaplayercontroller]

92 questions
3
votes
2 answers

Music info showing in Command Center but not Lock Screen

Using Swift 4+, iOS 11+, Xcode 10+ I've built a music player using MPMediaPlayer and I can interact with it from the Command Center, however I would like to be able to also see it on the Lock Screen. To be honest, I'm a bit confused as to why it's…
3
votes
1 answer

MPMusicPlayerControllerNowPlayingItemDidChange in background

Is there a way to get the MPMusicPlayerControllerNowPlayingItemDidChange notification while the app is in the background? I have an app that needs to be able to pause the music once a song has ended while in the background or when the screen is…
Wyetro
  • 8,439
  • 9
  • 46
  • 64
3
votes
2 answers

Playing Video From UITableView

My main goal is to be able to click on a table view item and load a video. The table view is populated with the contents of the documents directory and I have been able to do this successfully and add the filename to the cell's label, I have done…
jjdoherty
  • 474
  • 1
  • 3
  • 14
3
votes
1 answer

Is it possible to use NSNotificationCenter in the background for a Music Player app?

I was wondering if it's possible to run an observer from NSNotificationCenter while the app is in a suspended state, if the selector is required to play music. Basically, it runs at the end of the song to reset the queue. Is it possible to have the…
Giz
  • 199
  • 1
  • 15
2
votes
0 answers

MPMusicPlayerController.applicationQueuePlayer not updating start and end times using MPMusicPlayerMediaItemQueueDescriptor

I'm experiencing an issue with the MPMusicPlayerController.applicationQueuePlayer when setting the queue using an MPMusicPlayerMediaItemQueueDescriptor with specific start and end times. Instead of updating to the new start and end times, the…
2
votes
1 answer

MPMediaPickerController didPickMediaItems returns MPModelObjectMediaItem

I am having a super strange issue. I am using iOS13 MPMediaPickerController to get some songs from the users apple music library in order to play it via the [MPMusicPlayerController applicationMusicPlayer]. Now with some non-downloaded songs from…
2
votes
1 answer

How to play video from where i stopped previously. from remote server url

I am playing video from remote url. Suppose stopped playing the video and later again I am trying to play the same video. Now, I have to play from where i stopped previously. Like VLC Player
2
votes
2 answers

How to get the playlist of currently playing item using systemMusicPlayer?

I'm currently building a music app and I want to get the playlist of the currently playing item (in Apple Music). I don't mean I want to use a MPMediaPickerController, because I only want to get the media items of the current playlist. Thank you…
desperado
  • 213
  • 1
  • 11
2
votes
2 answers

Disable seekforward and seekbackward of mediacontroller android?

I am playing a video from url and I want to disable the seekbar tracking of the video. How can it be done. This my code: videoUrl = "http://download.itcuties.com/teaser/itcuties-teaser-480.mp4"; videoview.setVideoPath(videoUrl); …
WISHY
  • 11,067
  • 25
  • 105
  • 197
2
votes
1 answer

How to set specific quality of video depending on the internet speed

I am having three URL for the videos, one with Low-Quality, Medium-Quality and High-Quality. Now, I want to determine the internet speed and depending on that I would like to show the video from appropriate URL and if in between, the internet speed…
Bhavin Kansagara
  • 2,866
  • 1
  • 16
  • 20
2
votes
3 answers

MediaPlayer -requestThumbnailImagesAtTimes not firing a notification

I’m having trouble extracting thumbnail images out of movies with MPMoviePlayerController -requestThumbnailImagesAtTimes: timeOption: I'm 99% sure I've set everything up correctly; I'm just not getting those notifications at all. I was originally…
Jon Gold
  • 1,173
  • 12
  • 17
2
votes
0 answers

How to know if iPodMusicPlayer queue has been changed by another application

I am making a app that it is a player that plays the songs of the ipod. I also have a screen that shows the current playing list. I know that it is impossible get the current playing queue of the ipod. So I have a screen that tell the user that I…
flopes
  • 1,345
  • 1
  • 14
  • 21
2
votes
2 answers

Control buttons in AVPlayer and frame

I have to play a series of videos in my app. I am using AVQueuePlayer to play the videos using the code: AVQueuePlayer *queuePlayer = [[AVQueuePlayer alloc] initWithItems:items]; AVPlayerLayer *myPlayerLayer = [AVPlayerLayer…
1
vote
2 answers

iPhone-MPMediaPlayer disable seek forward button

I would like to remove or disable the seek forward button from the MPMediaPlayer. I have tried to enumerate all the views but apparently I could not find this button. Does anyone have any idea? Thanks.
Andrei Neacsu
  • 1,453
  • 3
  • 20
  • 33
1
vote
1 answer

How to add Next/Previous button/Controll in MPMediaPlayerController in xcode?

I have added MPMediaPlayerController in my View but it only shows Play and Pause Button. The control does not show Next/Previous button. How to add Next/Previous control in MPmediaPlayerController ?