private void OnBuffering(object sender, _WMPOCXEvents_BufferingEvent e)
 {
     if (!e.start)
     {
         Log.Debug("WMPlayer: bandWidth: {0}", _AxWMP.network.bandWidth);
         Log.Debug("WMPlayer: bitRate: {0}", _AxWMP.network.bitRate);
         Log.Debug("WMPlayer: receivedPackets: {0}", _AxWMP.network.receivedPackets);
         Log.Debug("WMPlayer: receptionQuality: {0}", _AxWMP.network.receptionQuality);
     }
 }
Exemplo n.º 2
0
    private void OnBuffering(object sender, _WMPOCXEvents_BufferingEvent e)
    {
      Log.Debug("Audioplayer: bandWidth: {0}", _wmp10Player.network.bandWidth);
      Log.Debug("Audioplayer: bitRate: {0}", _wmp10Player.network.bitRate);
      Log.Debug("Audioplayer: receivedPackets: {0}", _wmp10Player.network.receivedPackets);
      Log.Debug("Audioplayer: receptionQuality: {0}", _wmp10Player.network.receptionQuality);

      _wmp10Player.network.bufferingTime = _bufferTime;

      if (e.start)
      {
        _bufferCompleted = false;
        Log.Debug("Audioplayer: bandWidth: {0}", _wmp10Player.network.bandWidth);
        Log.Debug("Audioplayer: receptionQuality: {0}", _wmp10Player.network.receptionQuality);
      }
      if (!e.start)
      {
        _bufferCompleted = true;
      }
    }
 private void WMP_OnBuffering(object sender, _WMPOCXEvents_BufferingEvent e)
 {
     Log.Instance.Debug("WMPVideoPlayer: bandWidth: {0}", wmpCtrl.network.bandWidth);
     Log.Instance.Debug("WMPVideoPlayer: bitRate: {0}", wmpCtrl.network.bitRate);
     Log.Instance.Debug("WMPVideoPlayer: receivedPackets: {0}", wmpCtrl.network.receivedPackets);
     Log.Instance.Debug("WMPVideoPlayer: receptionQuality: {0}", wmpCtrl.network.receptionQuality);
     Log.Instance.Debug("WMPVideoPlayer: onbuffer start:{0}", e.start.ToString());
     bufferCompleted = !e.start;
     if (bufferCompleted) wmpCtrl.Buffering -= WMP_OnBuffering;
 }