Example #1
0
 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";
 }
Example #3
0
 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();
     }
 }
Example #4
0
        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();
     }
 }
Example #6
0
 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();
 }
Example #7
0
 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();
 }
Example #9
0
        public override void WriteMessage(LogLevel logLevel, string message)
        {
            var priority = logLevel.ToLogPriority();

            DroidLog.WriteLine(priority, tag, message);
        }