There is no producer id when creating client producer

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

mediasoup-client simply assigns to producer’s id whatever it receives as an argument of the callback function, called from the handler of the ‘produce’ message. Check what you receive from signaling and pass to that callback. There must be an error.