private void OnBufferStatusChanged(object sender, ESPlayer.BufferStatusEventArgs buffArgs)
 {
     if (buffArgs.BufferStatus == ESPlayer.BufferStatus.Underrun)
     {
         esStreams[(int)buffArgs.StreamType.JuvoStreamType()].Wakeup();
     }
 }
Example #2
0
        private void OnBufferStatusChanged(object sender, ESPlayer.BufferStatusEventArgs buffArgs)
        {
            var juvoStream = buffArgs.StreamType.JuvoStreamType();
            var state      = buffArgs.BufferStatus == ESPlayer.BufferStatus.Overrun
                ? BufferState.BufferOverrun
                : BufferState.BufferUnderrun;

            if (state == BufferState.BufferUnderrun)
            {
                dataStreams[(int)juvoStream].Stream.Wakeup();
            }
        }
Example #3
0
 private void OnBufferStatusChanged(object sender, ESPlayer.BufferStatusEventArgs buffArgs)
 {
     logger.Info($"{buffArgs.StreamType.JuvoStreamType()} {buffArgs.BufferStatus}");
 }