Questions tagged [avplayerlooper]

AVPlayerLooper is a helper class used to simplify playing looping media content using AVQueuePlayer

Since iOS 10, an AVPlayerLooper object can be used to play back video content in a looping manner. This is done by passing it a reference to an AVQueuePlayer and a template AVPlayerItem. The looper will automatically manage the looping playback of the content.

11 questions
8
votes
0 answers

'Terminated due to memory issue' when using AVPlayerLooper

My app crashes with 'Terminated due to memory issue' when using AVPlayerLooper to loop videos indefinitely. The issue only happens on older devices (it doesn't happen on iPhone 6S and newer) and with very short loops (shorter than 1 second). I've…
Tomer Ciucran
  • 199
  • 1
  • 10
5
votes
0 answers

Expo av-player seamless gapless loop crossfade

Based on my experience and research, the out-of-the-box AV players for both Android and iOS do not fully support gapless/seamless looping. There is always a noticable gap when setting the isLooping=true on any of them. I have only been able to get…
3
votes
4 answers

AVPlayerLoop not seamlessly looping - Swift 4

My problem is: I am trying to do seamless looping (I intend to make my AVPlayer or AVPlayerQueue, loop without any delay between playbacks). So for example, if I do a video and go to the playback, it should be looping endlessly without any blips in…
user10270183
2
votes
1 answer

How to use AVPlayerLooper with AVPlayerItemVideoOutput?

AVPlayerLooper accepts a template AVPlayerItem and a AVQueuePlayer as setup parameters, then it internally manipulates items of the queue and player is constantly changing its currentItem. This works perfect with AVPlayerLayer, which accepts this…
nt4f04und
  • 182
  • 1
  • 2
  • 21
2
votes
2 answers

"advanceToNextItem()" doesn't allow to loop through ALL videos

I've got auto-playing sequence of video clips with looping behaviour built on KVO. But, in addition to auto-playback, I'd like to advance all the clips using NSButton. So, if I press the Next Video button when my sequence is auto-playing, this…
Andy Jazz
  • 49,178
  • 17
  • 136
  • 220
2
votes
1 answer

Loop audio for certain duration on iOS

I am wondering what the best solution to looping audio for a defined duration on iOS is. I am currently playing around with AVAudioPlayer (where I can define a repeat count but can't define an end-time) AVPlayer (where I can define a…
Georg
  • 3,664
  • 3
  • 34
  • 75
1
vote
1 answer

AVPlayerLooper, AVComposition with AVMutableAudioMixInputParameters : volume is instable between loops

I use a AVPlayerLooper to loop a video inside an AVPlayer. The video is actually an AVComposition merging two audio tracks and one video track. I apply two audiomix input parameters on the composition, one for each audio track to manage their…
ddp
  • 185
  • 1
  • 10
0
votes
1 answer

AVQueuePlayer play/pause methods not updating UI

I have a looping video player that should play or pause based on a given isPlaying property. I initially created a looping video player (similar implementation to this example) -- now I want the ability to pause it. The UI initializes the video in…
0
votes
0 answers

iOS : AVPlayer doesn't play after going to unknown status despite reassigning AVPlayerItem to it

I have couple of playlist in app, once I change playlist1 to playlist2, adding multiple AVPlayer in for loop, each audio have each AVPlayer, audio loading from Document Directory only DOESN'T LOADING FROM URL. I do like, if user in playlist1, then…
0
votes
1 answer

AVFoundation How to loop an audio for a specific duration?

I want to loop a specific audio for a given duration. For example; 10 sec. audio file. intended loop duration: 7 min. During this loop, I have to observe the remaining time of total of the loop iterations. I tried the AVQueuePlayer and…
0
votes
1 answer

How can I set offset of a video in Swift 4 ? Seek(to:) doesn't seem to work

I am having an issue setting offset of AVQueuePlayer video. I have tried seek(to function to set offset of the video but it doesn't seem to work. The video always starts from 0 Seconds. Other requirements are playing it with control and looping back…
Arsalan Haider
  • 559
  • 3
  • 9
  • 23