public IAsyncAction StartTraceAsync()
 {
     RtcManager.Instance.EnsureRtcIsInitialized();
     WebRTC.StartTracing();
     AppPerformanceCheck();
     return(Task.CompletedTask.AsAsyncAction());
 }
예제 #2
0
        public void SaveWebRTCTrace()
        {
            if (!WebRTC.IsTracing())
            {
                return;
            }

            Task.Run(async() =>
            {
                WebRTC.StopTracing(); //stop tracing so that trace file can be properly saved.
                ToastNotificationService.ShowToastNotification("Saving Webrtc trace");
                var webrtcTraceInternalFile = ApplicationData.Current.LocalFolder.Path + "\\" + "_webrtc_trace.txt";

                WebRTC.SaveTrace(webrtcTraceInternalFile);

                await SaveToUserPickedFolder(webrtcTraceInternalFile);

                WebRTC.StartTracing();

                ToastNotificationService.ShowToastNotification("Saving Webrtc trace finished!");
            });
        }
 public void StartTrace()
 {
     WebRTC.StartTracing();
     AppPerformanceCheck();
 }