Questions tagged [avplayeritem]

277 questions
0
votes
2 answers

AVMutableComposition insertTimeRange: uses wrong range

I need trim many videos, and then show preview of their compilation. User can edit start time and end time for every video, and I show preview of current video (while user trim) with code: AVPlayer *player = [AVPlayer playerWithURL:[NSURL…
Virasio
  • 470
  • 5
  • 11
0
votes
0 answers

Enable the background music back after the app plays a video

I have an app that at the beginning plays a video with AVPlayer. The video is muted. The problem is it stops the music that let say iPhone was playing on iTunes and after the video playback is finished the music does not come back automatically. Is…
Dogahe
  • 1,380
  • 2
  • 20
  • 50
0
votes
1 answer

How to use AVQueuePlayer nad AVPlayerItem

Im trying to use AVQueuePlayer class to play some AVPlayerItems and have problems with it. I have class with property @property AVPlayerItem *palnik; In init of this class i have: NSURL *audioFileLocationURL = [[NSBundle mainBundle]…
wiwo
  • 721
  • 1
  • 13
  • 18
0
votes
1 answer

Why would AVPlayerItem not honor AVAudioTimePitchAlgorithmVarispeed setting?

I am trying to change the audio pitch of an AVPlayerItem depending on the rate I send to an AVPlayer. To do this, I am initializing an AVPlayerItem with an AVAsset specifying the 'AVAudioTimePitchAlgorithmVarispeed', like such: AVPlayerItem…
blackirishman
  • 903
  • 1
  • 10
  • 23
0
votes
1 answer

how to play video from URL on iwatch

I made a simple video player on an iPhone app by using AVPlayer. For the video view layer I use AVPlayerLayer and UIImageView. ... [self.previewImage.layer addSublayer:self.mPlayerLayer]; ... But I can't find the solution for an iWatch app,…
bluemobi
  • 31
  • 3
0
votes
4 answers

AVPlayerItemDidPlayToEndTimeNotification only works if forced

I been searching everywhere and I still can't find a solution to this problem. I have a AVQueuePlayer for a radio app that I am making. It has about 20 AVPlayerItems queued at a time. I added the AVPlayerItemDidPlayToEndTimeNotification observer to…
Dhananjay Suresh
  • 1,030
  • 1
  • 14
  • 28
0
votes
4 answers

forwardPlaybackEndTime does not work

AVPlayerItem has this property forwardPlaybackEndTime The value indicated the time at which playback should end when the playback rate is positive (see AVPlayer’s rate property). The default value is kCMTimeInvalid, which indicates that no end…
onmyway133
  • 45,645
  • 31
  • 257
  • 263
1 2 3
18
19