Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions Samples~/SharedScene/App.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
using DolbyIO.Comms;
using DolbyIO.Comms.Unity;

public class App : MonoBehaviour
public class App : Credentials
{
private DolbyIOSDK _sdk = DolbyIOManager.Sdk;

Expand All @@ -14,10 +14,6 @@ public class App : MonoBehaviour
// Start is called before the first frame update
async void Start()
{
await _sdk.InitAsync(Token, () => {
return Token;
});

await _sdk.Session.OpenAsync(new UserInfo { Name = "Anonymous" });

_sdk.Conference.ParticipantUpdated += OnParticipantUpdated;
Expand All @@ -31,6 +27,11 @@ void Update()

}

public override string GetToken()
{
return Token;
}

private void OnParticipantUpdated(Participant p)
{
Debug.Log(p.Info.Name);
Expand Down