owt-server icon indicating copy to clipboard operation
owt-server copied to clipboard

Unable to publish with customeized attributes

Open ivanchy opened this issue 3 years ago • 9 comments

I have set an attributes in LocalStream,but after publication the RemoteStream attributes become undefined.Can i do this with any methods?

ivanchy avatar Sep 14 '22 11:09 ivanchy

which version of code did you use?

starwarfan avatar Sep 15 '22 01:09 starwarfan

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' }

ivanchy avatar Sep 15 '22 02:09 ivanchy

In latest 5.0.x branch, you should be able to get it through RemoteStream.attributes.

starwarfan avatar Sep 15 '22 02:09 starwarfan

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?

ivanchy avatar Sep 15 '22 07:09 ivanchy

Yes. You need try 5.0.1 version.

starwarfan avatar Sep 15 '22 07:09 starwarfan

Is it possible to change these attributes later?

Phillipip avatar Aug 14 '23 22:08 Phillipip

Is it possible to change these attributes later?

No. The attributes are decided when published.

starwarfan avatar Aug 16 '23 06:08 starwarfan

Is it also not possible to change it via the API?

Phillipip avatar Aug 16 '23 14:08 Phillipip

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.

starwarfan avatar Aug 18 '23 05:08 starwarfan