ios - AVPlayer takes long time to start playing -


after update swift 3 i´ve realised app takes long time start playing audio file remote server. in swift 2.3 didn't´t happen. i´ve been trying debug day long couldn't´t find anything. i´ve been printing states of avplayer @ each moment , found changes loading playing within seconds takes around 20 seconds start playing song.

i using jukebox teodorpatras

i fixed myself next line of code:

player?.playimmediately(atrate: 1.0) 

what line is, starts playing without ensuring buffer it´s enough not suffer interruptions. in case prefer on having wait several seconds.


Comments

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -