What is the best method of synchronizing audio across iOS devices with WiFi?

前端 未结 2 834
栀梦
栀梦 2021-02-06 19:42

Basically, for my team\'s app, we need to be able to synchronize music across multiple iOS devices. The first way we did this was by having the music on all the devices already

2条回答
  •  没有蜡笔的小新
    2021-02-06 20:03

    I think your first way would work if you expand it a little bit. Assuming all the clocks on the devices are in sync you could include a timestamp in your play command. Then each device would calculate the time between the timestamp and when it received the command. You would then play the music and offset it by the time difference.

提交回复
热议问题