Saving buffer data of AVPlayer

后端 未结 4 1329
耶瑟儿~
耶瑟儿~ 2020-12-08 05:33

I am playing audio from my server using AVPlayer in my application. Now I want that when it completely buffer the audio then I can save that data in the application to play

4条回答
  •  借酒劲吻你
    2020-12-08 06:19

    You can't access the buffer of the AVPlayer. Some hints: You can put previews (short versions of audios) of your audio files on your server, so that Your users could listen the previews before they download the full audio files, or you may search for custom open source audio stream players, maybe those will allow you to access the stream buffer. Good Luck!

提交回复
热议问题