Hi, I was experimenting with this project. Really amazing work.
How does one detect the publisher of an added stream? When creating a new token in Nuve, one must provide a
userName. Is this
userName available somewhere in the added stream somewhere?
If not I suppose the publisher can send it along the stream attributes, but being client side it can pass anything really(userName/id of others).
EDIT: I have added an example to better explain my query.
example: say a room consists of 3 participants and solely sending ‘data’ (say chat message ) in the streams to one another. How can a user determine which stream belongs to which person ? I could not find this info in the streamEvent that fires when a new stream is added for a client, nor in the accompanying stream object. If I send this info(username) in the stream attributes of the publisher they could pretend to be another user in the room by simply changing this attribute information.
Is there any way to detect the publisher name/id in the Erizo added stream on the client side ? Or perhaps I am thinking about this in a wrong way. Would appreciate some thoughts.