当赋值给video标签的srcObject属性的mediaStream里面,只有音频轨道时,会自动变成audio标签
let mediaElement = document.getElementById("mediaElement_xxx") mediaElement.srcObject = mediaStream
posted on 2023-04-11 11:21 cag2050 阅读(442) 评论(0) 编辑 收藏 举报