Example #1
0
 public void Synchronize()
 {
     // Tell the codec to send iframes (typically when a new user joins).
     ThreadingHelper.SleepAsync(TimeSpan.FromMilliseconds(1000), () => _nextFrameIsIFrame = true);
     ThreadingHelper.SleepAsync(TimeSpan.FromMilliseconds(2000), () => _nextFrameIsIFrame = true);
     ThreadingHelper.SleepAsync(TimeSpan.FromMilliseconds(3000), () => _nextFrameIsIFrame = true);
     ThreadingHelper.SleepAsync(TimeSpan.FromMilliseconds(4000), () => _nextFrameIsIFrame = true);
 }