Hi, I have been working with mediasoup for some time, and so far I have never had a problem with this particular thing.
I am creating a client video producer and when I try to access its id there is undefined.
When I do it with camera or when screen sharing it’s always there but I want to produce video from video html tag. It’s looks something like this:
const videoElement = document.getElementById("" + videoId);
const videoTrack = videoElement.captureStream().getVideoTracks()[0];
let producer = await this.sendTransport.produce({ track: videoTrack });
console.log("producer", producer);
console.log("producerId", producer.id);
And my producer object looks just fine, except id is undefined.
To give a little bit of background. I want to consume video from one mediasoup server and send it to another server.
So, I am displaying consumed video in html tag, and then using capture stream I produce this video to another server