AVPlayer Sync using setRate: time: atHostTime:

My goal: play MP3 / AAC files from a web server (streaming, not downloaded in advance) in PERFECT synchronization between multiple iOS devices.

Two questions:

1 - Can AVPlayer transfer existing MP3 / AAC files while continuing to skip to the next tracks in the background? The point is, assuming the phone is locked, or another application is in the foreground, if I play a list of several MP3 / AAC files, and one finishes playing, will the next track start playing without problems?

2 - Can the new setRate:time:atHostTime: method in iOS6 AVPlayer allow synchronized playback between iOS MULTIPLE devices? Meaning, I want to play audio in perfect synchronization between multiple iOS devices. I read the documentation here , but this is a bit confusing and I cannot find any sample code to see how it works:

+6
source share
1 answer

Matt AudioStreamer is the best option for you, Avplayer and AVaudioplayer download the remote mp3 address synchronously before playing, which takes time.

click here

0
source

Source: https://habr.com/ru/post/926266/


All Articles