Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 5b7d667

Browse files
authored
Merge pull request #51 from DolbyIO/45-dolbyio-manager-logs-error-if-no-credentials-component-added
Fixed Credentials for 1.2
2 parents 5fa5125 + 65e72fb commit 5b7d667

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Samples~/SharedScene/App.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using DolbyIO.Comms;
55
using DolbyIO.Comms.Unity;
66

7-
public class App : MonoBehaviour
7+
public class App : Credentials
88
{
99
private DolbyIOSDK _sdk = DolbyIOManager.Sdk;
1010

@@ -14,10 +14,6 @@ public class App : MonoBehaviour
1414
// Start is called before the first frame update
1515
async void Start()
1616
{
17-
await _sdk.InitAsync(Token, () => {
18-
return Token;
19-
});
20-
2117
await _sdk.Session.OpenAsync(new UserInfo { Name = "Anonymous" });
2218

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

3228
}
3329

30+
public override string GetToken()
31+
{
32+
return Token;
33+
}
34+
3435
private void OnParticipantUpdated(Participant p)
3536
{
3637
Debug.Log(p.Info.Name);

0 commit comments

Comments
 (0)