Video SDK Type and Version
“@zoom1234/videosdk”: “^1.5.5”,
Description
I successfully implemented the logic of sending and receiving 720p video from the desktop. But when I try to play the same thing on a tablet (on iPad, Chrome) , the video will not be rendered at all. I do not see the participant, and the participant does not see me. SharedArrayBuffer is enabled on tablet.
The code:
// for own video
client
.join(topic, token, userName, password)
.then(() => {
stream = client.getMediaStream()
const operator = client.getCurrentUserInfo()
setOperatorId(operator.userId)
stream
.startVideo({ hd: true })
.then(() => {
stream
.renderVideo(
document.querySelector('#self-view-canvas'),
client.getCurrentUserInfo().userId,
960,
540,
0,
0,
3
)
.then(() => {
console.log(
'Operators video rendered successfully'
)
})
.catch((error) => {
console.log('Error in render video ', error)})
})
.catch((error) => {
console.log('Error in start video ', error)})
})
.catch((error) => {
console.log('Error in Client Join ', error)})
//for participant video
const onVideoStateChange = async (payload) => {
try {
if (payload.action === ‘Start’) {
await stream.renderVideo(
document.querySelector(‘#participants-canvas’),
payload.userId,
960,
540,
0,
0,
3
)
await stream.startAudio()
} else if (payload.action === ‘Stop’) {
await stream.stopRenderVideo(
document.querySelector(‘#participants-canvas’),
payload.userId
)
}
} catch (error) {
console.log('Error in onVideoStateChange ', error)
}
}
client.on('peer-video-state-change', onVideoStateChange)
Error
I don’t see Errors. It just doesn’t render video. I don’t see participant
and he doesn’t see me. Once I saw this warning: «cannot capture HD video due to either restriction and/or hardware limitation»
How To Reproduce
- I do zoom call
- I joined and participant joined
- I don’t see participant and he doesn’t see me.
- If I do the same on desktop I don’t have problems with rendering video.
- Device: iPad
- OS: iPadOS 16.2
- Browser: Chrome 108.0.5359.112
- SharedArrayBuffer is enabled