Questions tagged [avplayer]

An AVPlayer object is used to implement controllers and user interfaces for single- or multiple-item playback.

An AVPlayer object is used to implement controllers and user interfaces for single- or multiple-item playback.

3602 questions
2
votes
0 answers

AVAudioSessionInterruptionTypeEnded not getting called

I create an avaudiosession in my app delegate and add an observer. AVAudioSession *sessionInstance = [AVAudioSession sharedInstance]; [sessionInstance setCategory:AVAudioSessionCategoryPlayback error:&error]; [[NSNotificationCenter defaultCenter]…
2
votes
0 answers

AVPlayer or AVQueuePlayer during iPhone Call

I have an app that uses AVPlayer (or AVQueuePLayer) to play local files that were recorded by the App. All works great. But I also want this to work on iPhone when a call is in progress (the videos are event recordings). What I found is that…
2
votes
0 answers

Custom video player with custom controls - iOS

Is it possible to customize the AVPlayer or anything else for iOS view to eliminate the center play button and include your own graphics for play buttons and their location? I am working on application that uses the Vimeo API to feed videos in the…
2
votes
1 answer

AVPlayer seekToTime spinning pizza

I have a simple AVPlayer-based OS X app that plays local media. It has a skip forward and backward feature, based on -seekToTime:. On some media, there is an annoying 3-7 second delay in getting the media to continue playing (especially going…
MDF
  • 109
  • 7
2
votes
0 answers

iOS: AVPlayer live stream preventing playback skips when returning from background

So I am working on an app that plays a live video and audio stream using AVPlayer and AVPlayerLayer. I want to allow the audio to play in the background when the user leaves the app or locks the device, and so far it is working pretty well. My code…
spacesloth
  • 33
  • 3
2
votes
1 answer

ios playing 3 videos one after another

I am trying to start a new video with no delay as soon as the first video ends. I tried using the AVQueuePlayer but there is some delay when the first video ends and the second starts. I need this to be sample synchronous. ie if video 1 is 10.25…
Goz
  • 61,365
  • 24
  • 124
  • 204
2
votes
0 answers

Multiple AVPlayer simultaneous playback on one view

I have four AVPlayer layers on a single view. All 4 plays streams from remote server. streamView1 = [AVPlayer playerWithURL:VideoStreamURL1]; layer1 = [AVPlayerLayer playerLayerWithPlayer:self.streamView1] [self.layer addSublayer: layer1]; I am…
sansid1983
  • 239
  • 1
  • 4
  • 14
2
votes
1 answer

AVPlayer + MPNowPlayingInfoCenter works on simulator but not on device

I am using AVPlayer to reproduce music. All is working just fine on simulator with iOS 6+. But when I run it on device (iPhone 5s, iOS 7.1), MPNowPlayingInfoCenter shows info from any other music apps: spotify / sound cloud / music player, instead…
Borzh
  • 5,069
  • 2
  • 48
  • 64
2
votes
1 answer

Playing Audio From Parse.com

I am trying to play an audio file i saved on parse. I am getting the url from the PFFile from the object i saved to parse. When i run the app the avplayer produces no audio. I tested to see if the avplayer was playing by the first code snippet…
user3368956
  • 101
  • 9
2
votes
1 answer

AVPlayer Go To Live?

I am using an AVPlayer object to play a live stream of an MP3, just using an HTTP link. As with normal live video playing in iOS, there is a button that you can press to skip to live. Is it possible to do this with AVPlayer? E.g I am listening live,…
Josh Kahane
  • 16,765
  • 45
  • 140
  • 253
2
votes
1 answer

Using multiple AVPlayer in a tableview like instagram

I'm trying to implement an AVPlayer into each row of a tableview cell but I don't find any good documentation. I would like to have a timeline like Instagram but I have no idea how to handle multiple players and tapgestures inside.. Any idea where…
Mastermyx
  • 23
  • 7
2
votes
2 answers

Playback speed during Audio Streaming in iOS using AVPlayer

I'm developing an iOS app using Swift and my problem is, trying to adjust the playback speed during audio streaming. I am using AVPlayer for this project: streamingPlayer = AVPlayer(playerItem: audioItem) To adjust playback…
TestUser
  • 21
  • 4
2
votes
3 answers

AVPlayer exit fullscreen on finish playing

I am using a AVPlayer to show some video streams (with a fixed length). The problem is when the content is finished the player (if it has been set to fullscreen by the user) still remains in fullscreen. Any way to make the player go to it's…
user1028028
  • 6,323
  • 9
  • 34
  • 59
2
votes
1 answer

ios AVPlayer failed to stream remote video

I have a AVPlayer that plays video from remote url. Here is my code: AVPlayerItem* playerItem = [AVPlayerItem playerItemWithURL:videoUrl]; self.player = [AVPlayer playerWithPlayerItem:playerItem]; self.player.actionAtItemEnd =…
Anton
  • 113
  • 7
2
votes
1 answer

Save AVPlayerItem to documents directory

How do i go about saving an AVPlayerItem? I looked online and really couldn't find anything. The AVPlayerItem contains two audio files in an asset. How do i save this to the users documents folder? My code is in swift but answers in objective c…
1 2 3
99
100