owt-server
owt-server copied to clipboard
Unable to publish with customeized attributes
I have set an attributes in LocalStream,but after publication the RemoteStream attributes become undefined.Can i do this with any methods?
which version of code did you use?
which version of code did you use?
The latest version 5.0,at the below:
https://github.com/open-webrtc-toolkit/owt-server/blob/master/test/testingpage/script2.js
Line 1822 , { testAttributes: 'test' }
In latest 5.0.x branch, you should be able to get it through RemoteStream.attributes.
In latest 5.0.x branch, you should be able to get it through
RemoteStream.attributes.
I have tried in the 5.0 version.
In the console logging, LocalStream can display the attributes

However, after publication RemoteStream.attributes become undefined

Is it a bug? or I should try the 5.0.1 version?
Yes. You need try 5.0.1 version.
Is it possible to change these attributes later?
Is it possible to change these attributes later?
No. The attributes are decided when published.
Is it also not possible to change it via the API?
Is it also not possible to change it via the API?
No. You may manually save it in one place and notify others about its changes.