Questions tagged [mpmediaplayercontroller]

92 questions
0
votes
2 answers

MPMediaPlayer indexOfNowPlayingItem giving current index of 9223372036854775807

I am trying to make a music player, this is where I've put the NSLog to show the current index: - (void) handle_NowPlayingItemChanged: (id) notification { MPMediaItem *currentItem = [musicPlayer nowPlayingItem]; NSUInteger currentIndex =…
Manesh
  • 528
  • 6
  • 20
0
votes
1 answer

How to get the size of a song in ipod library?

I have been working on a media player app.I am able to get the media items by using the media query,group them based on different groupings and add various filters to narrow down my search. Now my requirement is to find out the size of a particular…
0
votes
1 answer

How to add text over video like on Snapchat

I am building a messaging app that has similar functionality as Snapchat. How would I be able to add a text over video that can be positioned anywhere in the screen and also be able to export the video with the text.
Subash
  • 1,002
  • 13
  • 26
0
votes
2 answers

is it possible to play back from a specific point or time in a MPMediaItem?

Is it possible to play change the playback position from a MPMediaItem? I would like to be able to move between different points in a audio file (say a song) held on the devices iTunes library. Which framework should I be using?
drw
  • 943
  • 1
  • 10
  • 25
0
votes
1 answer

Simplest way to play a video before game starts on OSX / iOS

I would like to play an intro video before my game starts on OSX. What is the easiest way to setup an AVPlayer and play the video? I would like the video to play completely before the game can proceed any further. I have gone through the AVPlayer…
0
votes
1 answer

MPMediaPlayer playing local file issue

I have a Video Recording feature of my app which successfully records and save in Documents directory in device ( Which i can access from iTunes when i plug device ). My problem is , I made View UI for playback video with APP which does not access…
Onder OZCAN
  • 1,556
  • 1
  • 16
  • 36
0
votes
0 answers

How to add visual effects like B&W, Vintage to normal video in ios

The movie plays just fine in MPMoviePlayerController. But when i press the button, then video have to change in Black & White or Vintage effects. - (IBAction)videoCameraRoll:(id)sender { UIImagePickerController *imagePicker =…
Muthu Sabarinathan
  • 1,198
  • 2
  • 21
  • 49
0
votes
1 answer

Observing currentPlaybackTime and showing an overlay at intervals

I’m making a video that shows overlays at certain intervals of a video. I’ve managed to get the video to play. Now my objective is to watch/observe the currentPlaybackTime value and pause the video when it hits 2 seconds. After some research found…
Dol
  • 944
  • 3
  • 10
  • 25
0
votes
1 answer

MPMediaPlayerController turn hide user interface elements permanently

I using MPMediaPlayerController and i need hide elements of UI permanently. But i can see it when player start play video, 2 seconds later it hide. I using: setControlStyle:MPMovieControlModeHidden. player = [[MPMoviePlayerController alloc]…
0
votes
3 answers

how to get the time duration video watched in iOS app

I am making an iphone app in which playing video from url server it works fine but i want lets say video is for 3 minutes or 4 minutes how much time user viewed video like it played video for 1 minuted and stoped likewise. NSURL *url = [NSURL…
user3110080
  • 57
  • 1
  • 8
0
votes
2 answers

count the number of loops and stop playing the audio

I have a small 4 second video file which will be played again and again.For that I have used [player setRepeatMode:MPMovieRepeatModeOne]; but after the 1st loop I want the audio to be stopped and only video should be played.I tried setting …
Chandu
  • 695
  • 2
  • 12
  • 25
0
votes
2 answers

iPhone song library query with known persistentIdentifier returning nil

I'm trying to play back a song referenced from a stored persistentIdentifier, but the MPMediaQuery returns 0 results if I apply a filter to it using the stored value. My code for the not-working filtered version: NSNumber *persistentId = [NSNumber…
0
votes
1 answer

MediaPlayer change DataSource Error when MediaPlayer complets Playing First Audio

Any one Help for MediaPlayer Error. when aim is to Change DataSource and Play second Audio when First Audio is Compliting its Playing. My Code is below :- mMediaPlayer.setOnCompletionListener(new OnCompletionListener() { @Override …
patel
  • 830
  • 1
  • 11
  • 26
0
votes
0 answers

Is it possible to get the current playing song NOT in iPod.app?

In iPhone/iPod touch current media player controls are available in the bottom of the screen, where also the title of the current playing song is displayed. It can be an any app, not only the iPod.app. As far as I know, MPMediaPlayerController has…
efpies
  • 3,625
  • 6
  • 34
  • 45
0
votes
3 answers

Why won't my movie play using MPMoviePlayerController?

I'm trying to get a basic movie to play in an iPhone app; however, I can't seem to get it to work. Here's my entire code: #import #import "ViewController.h" @implementation ViewController -…
Nosrettap
  • 10,940
  • 23
  • 85
  • 140