How to sync media playback across two devices?

I am using the following method of AVPlayer.h class in my project.

- (void)setRate:(float)rate time:(CMTime)itemTime atHostTime:(CMTime)hostClockTime

      

According to AVPlayer.h documentation, this method can be used to synchronize playback on two devices, assuming the host time is one device.

I gave all the "time" options I could give as parameters to itemTime and hostClockTime, but the playback was never synchronized. In fact, AVPlayer does not play media elements.

Any help would be much appreciated by individuals who have used this method for syncing, as well as any other mechanism for syncing media playback on iOS devices.

Thanks in advance.

+3
ios iphone ios6 avfoundation avplayer


source to share


No one has answered this question yet

Check out similar questions:

1141
How can I develop for iPhone using Windows development machine?
909
How do I change restrictions changes?
551
What are Unwind segues and how do you use them?
107
How to reduce the startup delay of IOS AVPlayer
6
AVPlayer Synchronization using setRate: time: atHostTime:
five
UIEvents sent from Apple TV when using external AVPlayer playback mode
2
AVPlayer does not load media in the background
1
AVPlayer's speed property is imprecise
0
AVPlayer lock screen updates stop working only after another instance of AVPlayer has played video content
0
AVPlayer does not reach the end of playback



All Articles
Loading...
X
Show
Funny
Dev
Pics