Problem Description: Recently doing video playback on a frame synchronization android4.0, requiring multiple devices simultaneously play the same video, and try each frame requires aired at the same time. Currently points at both ends: which side windows for the control terminal for real-time monitoring; android end of the current position of playing video (getCurrantPosition function to get). Such as monitoring to both android client sent in the first 10 seconds of instantaneous playback position data were 10000ms, 10100ms.
Assuming the video is 24 frames / sec (about 41ms play one frame) can be seen ,10100-10000 = 100ms theory is a difference of more than two point calibration command is sent through the windows at this time so that the two end-side call mediaplayer android player in seekto (10000) function to jump to unify the current position of the video first 10000ms milliseconds, but a great position error seekto jump again to get the current position of the two sides seekto errors were always there,
Sometimes two android get current location after seekto were 10000,10100, then it should be a jump failed
Sometimes two android current position acquired in the seekto 10000, 10000, respectively, at this time should be successful.
I do not know you have never encountered such a problem in programming? ? Or what better synchronization scheme.
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
No comments:
Post a Comment