public void OnPlayStarted() { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "onPlayStarted"); Toast.MakeText(this, "Play started", ToastLength.Long).Show(); webRTCClient.SwitchVideoScaling(RendererCommon.ScalingType.ScaleAspectFit); RefreshButtons(); }
public void OnDisconnected() { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "disconnected"); Toast.MakeText(this, "Disconnected", ToastLength.Long).Show(); audioButton.Text = "Disable Audio"; videoButton.Text = "Disable Video"; }
public void OnBitrateMeasurement(String streamId, int targetBitrate, int videoBitrate, int audioBitrate) { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "st:" + streamId + " tb:" + targetBitrate + " vb:" + videoBitrate + " ab:" + audioBitrate); if (targetBitrate < (videoBitrate + audioBitrate)) { Toast.MakeText(this, "low bandwidth", ToastLength.Short).Show(); } }
public void OnDisconnected() { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "disconnected"); Toast.MakeText(this, "Disconnected", ToastLength.Long).Show(); startStreamingButton.Text = "Start " + operationName; //finish(); }
public void JoinConference(View v) { if (!conferenceManager.IsJoined) { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "Joining Conference"); ((Button)v).Text = "Leave"; conferenceManager.JoinTheConference(); } else { ((Button)v).Text = "Join"; conferenceManager.LeaveFromConference(); } }
public void NoStreamExistsToPlay() { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "noStreamExistsToPlay"); Toast.MakeText(this, "No stream exist to play", ToastLength.Long).Show(); RefreshButtons(); }
public void OnPlayFinished() { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "onPlayFinished"); Toast.MakeText(this, "Play finished", ToastLength.Long).Show(); RefreshButtons(); }
public void OnPlayStarted() { Log.WriteLine(Andr.Util.LogPriority.Info, this.Class.SimpleName, "onPlayStarted"); Toast.MakeText(this, "Play started", ToastLength.Long).Show(); }
public override void WriteMessage(LogLevel logLevel, string message) { var priority = logLevel.ToLogPriority(); DroidLog.WriteLine(priority, tag, message); }