Closed irshadhub closed 4 years ago
Hi @irshadhub ,
You have to specify the name in the options for the LocalVideoTrack constructor and not in getDisplayMedia:
return navigator.mediaDevices.getDisplayMedia({
video: {
height: height,
width: width
}
}).then(function(stream) {
return new Video.LocalVideoTrack(stream.getVideoTracks()[0], { name: 'screen' });
});
Thanks Manjesh, it is working perfectly now.
I want to set a track name for screen sharing video track.
In the below code, I mentioned track name as "screen" but it is not assigning to track.
Please help me with this, it very urgent for me to set a track name to identify screen share video track with an ongoing video conference.
Image sample for more understanding:
1) Screenshare track name which needs to set.
2) Camera View track name for reference.