Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
738 stars 186 forks source link

[REQUEST]: Manually set VideoStreamTrack label #1016

Open RashKash103 opened 5 months ago

RashKash103 commented 5 months ago

Is your feature request related to a problem?

There should be the ability to manually set the VideoStreamTrack label. This was previously allowed but the ability was removed in #439 because of invalid label values. This doesn't let me send multiple video tracks over a connection without having to first provide the opposing peer with metadata telling it which GUID corresponds to which video track.

Describe the solution you'd like

The label should default to using a randomly generated GUID but should not force the user to utilize it. The ability to manually set a label should be provided to the user in the event that it is needed.

Describe alternatives you've considered

I've tried manually setting the label but that doesn't seem to be available to do.

Additional context

No response

karasusan commented 5 months ago

This is a related issue. https://github.com/Unity-Technologies/UnityRenderStreaming/issues/641

karasusan commented 3 months ago

I think RTCRtpTransceiver.mid is a correct property which you identify the track on each peers.