Pretty good audio sync if I do say so myself :)
This commit is contained in:
@ -33,13 +33,12 @@ namespace Aurora.RemoteImpl
|
||||
|
||||
while (continueSync)
|
||||
{
|
||||
Utils.Time networkTime = Utils.TimeUtils.GetNetworkTime();
|
||||
float length = PlayerService.Instance.CurrentMediaLength;
|
||||
|
||||
Sync sync = new Sync()
|
||||
{
|
||||
TrackTime = length * PlayerService.Instance.CurrentMediaPosition,
|
||||
ServerTime = networkTime.DateTime.Ticks + networkTime.Elapsed.Ticks
|
||||
TrackPosition = PlayerService.Instance.CurrentMediaPosition,
|
||||
ServerTimeTicks = Utils.TimeUtils.GetNetworkTime().DateTime.Ticks
|
||||
};
|
||||
await responseStream.WriteAsync(sync);
|
||||
Console.WriteLine("Sent Sync");
|
||||
|
Reference in New Issue
Block a user