public override void OnWOWZError(WOWZStatus status) { Player.Stop(); Player.ResetPlaybackErrorCount(); var errorArgs = new WOWZErrorEventHandlerEventArgs(); errorArgs.Message = status.Description; _OnError?.Invoke(this, errorArgs); }
public override void OnWOWZStatus(WOWZStatus status) { string statusMessage = ("Player status: "); var statusArgs = new WOWZPlayerStatusChangedEventHandlerEventArgs(); switch (status.State) { case WOWZState.Starting: statusArgs.State = WowzaClientStatus.Starting; statusMessage += ("Player initializing"); break; case WOWZState.Ready: statusArgs.State = WowzaClientStatus.Ready; statusMessage += ("Ready to begin listening"); break; case WOWZState.Running: statusArgs.State = WowzaClientStatus.Running; statusMessage += ("Player is active"); break; case WOWZState.Stopping: statusArgs.State = WowzaClientStatus.Stopping; statusMessage += ("Player shutting down"); break; case WOWZState.Idle: statusArgs.State = WowzaClientStatus.Idle; statusMessage += ("The Player is stopped"); break; } statusArgs.Message = statusMessage; _OnPlayerStatusChanged?.Invoke(this, statusArgs); }
public void OnWZStatus(WOWZStatus p0) { Console.WriteLine("Wowza status changed: " + p0.State.ToString()); }
public void OnWZError(WOWZStatus p0) { Console.WriteLine("Wowza error: " + p0.LastError.ErrorCode); }