On Feb 22, 2013, at 2:47 PM, Chris Adamson wrote:
> Have not done anything like this before, but thinking offhand, could you GameKit or Bonjour them, and then have A send its current time to B? There'll still be latency, but it should be shorter than 1 sec.
I don't know where the GPS timestamp comes from on iOS. Often the Location Manager isn't really using GPS at all but cellular and WiFi triangulation, so I don't think it's surprising that it's not accurate. If the time is off, I think you should have each device synchronize its current time with the server when it uploads the data. That is, keep a time offset on the server per-upload and then subtract off the time as needed to synchronize the video.
NTP is the overly complicated standard way to synchronize time: <
http://en.wikipedia.org/wiki/Network_Time_Protocol>. Depending on your accuracy needs, you might be able to get away with just sending the time from the client to the server, having the server respond, and the client can determine if the latency is too high and try again if needed.
-Eric
-----------------------------------------------
Eric Shapiro
sha...@relium.com
-----------------------------------------------