steep-balloon-41261
11/27/2023, 12:53 AMacoustic-engineer-41666
11/27/2023, 12:54 AMbrainy-oxygen-72823
11/27/2023, 1:01 AMnarrow-night-54893
11/27/2023, 1:02 AMuseConnectionState and useTracks , the results differ from the livestream repo by livekit.narrow-night-54893
11/27/2023, 1:03 AMbrainy-oxygen-72823
11/27/2023, 1:05 AMmagnificent-art-43333
11/27/2023, 1:25 AMnarrow-night-54893
11/27/2023, 12:25 PMconst options: CreateIngressOptions = {
name: self.username, // "antonio"
roomName: self.username, // "antonio"
participantName: self.username, // "antonio"
participantIdentity: self.username, // "antonio"
};
And then, when i go about creating the viewer token I am using the identity of ingress creator, to create a viewer token using the same identity.
As in the screenshot. Basically I am the only user trying to watch my own stream. For some reason, when I keep the same viewerToken identity and ingress participant identity (I assume?) the stream gets disconnected.
But when I change my viewer token identity to anything else even like {self.username}-viewer it seems to work fine!
Should I be using streamerToken instead of viewerToken if the streamer itself is trying to watch their video?
On the livestream repo there is no issue like this because it uses faker to generate the identity.polite-kilobyte-67570
11/27/2023, 12:51 PMpolite-kilobyte-67570
11/27/2023, 12:53 PMname field in the token instead.
identity is unique within a single room (thus the older one gets disconnected)narrow-night-54893
11/27/2023, 2:25 PM