auronsan14
New Member
currently we use canvas streaming
how to achieve 1080p video?
Code:
const constraints = {
audio: false,
video: false,
customStream: canvStream.current,
};
session
.createStream({
name: streamName,
display: localVideo.current,
constraints,
cacheLocalResources: true
})
.on(STREAM_STATUS.PUBLISHING, function (stream: any) {
setStatus('#publishStatus', STREAM_STATUS.PUBLISHING);
onPublishing(stream);
})
.on(STREAM_STATUS.UNPUBLISHED, function (e: any) {
setStatus('#publishStatus', e.getErrorInfo());
disconnect();
})
.on(STREAM_STATUS.FAILED, function (e: any) {
setStatus('#publishStatus', e.getErrorInfo());
disconnect();
})
.publish();
}
Last edited: