我在问你用opentok做视频出版的事。
我对视频解析度有问题。要发布,我可以设置2个属性:分辨率和frameRate
所以,在我的代码中,我
var publisherProperties = {
insertMode: "append"
,width:480
,height:360
,name:'test'
,resolution: "1280x720"
,frameRate:30
};var publisher = OT.initPublisher('myvideodiv',publisherProperties);
在我的第二台计算机上(捕捉流的那台),视频看上去模糊.
我查了一下stream.fps,它被设置为30。但是,stream.videoDimensions与我在发布服务器中设置的分辨率不匹配。
请指点。
发布于 2014-05-21 23:47:45
根据文档这里,模糊视频可能是由于您的第二台计算机的低带宽。另一个可能的原因是您的出版商的相机可能不支持高清流。例如,2011年macbook的相机分辨率为640×426。
The published video will only use the desired resolution if the client configuration supports it. https://stackoverflow.com/questions/23643859
复制相似问题