Skip to content

Commit

Permalink
Copy changes from imported sample project to the package sample project
Browse files Browse the repository at this point in the history
  • Loading branch information
sierpinskid committed Dec 5, 2024
1 parent 7d64466 commit e79a1c0
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using StreamVideo.Core;
Expand Down Expand Up @@ -210,6 +211,19 @@ private void OnCallStarted(IStreamCall call)

private void OnCallEnded(IStreamCall call)
{
#if STREAM_DEBUG_ENABLED
try
{
var callId = _activeCall.Id;
var localParticipant = _activeCall.Participants.First(p => p.IsLocalParticipant);
Client.SendDebugLogs(call.Id, localParticipant.SessionId);
}
catch (Exception e)
{
Debug.LogException(e);
}
#endif

_activeCall = null;
Screen.sleepTimeout = SleepTimeout.SystemSetting;

Expand Down

0 comments on commit e79a1c0

Please sign in to comment.