canvas.captureStream() can not transport.produce({track})

i want transport canvas stream to other people
const stream = canvas.captureStream();
track = stream.getVideoTracks()[0].clone();
console.log(‘canvas’, stream, track)
try {
this._coursewareProducer = await this._sendTransport.produce({
track
});
} catch {
// do
console.error(‘error’)
}
this track is CanvasCaptureMediaStreamTrack can not work in produce
what can i do

This is not related to mediasoup or mediasoup-client (who does not care about the nature of the video track you pass to transport.produce()). BTW for sure video tracks obtained from a canvas do work in mediasoup-client (super tested).

No idea what is wrong in your code, but it’s not related to mediasoup(-client).