51world 如何修改渲染视频/窗口的大小 ?

/ /初始云渲染时 设置player, video样式;
cloudRender.SuperAPI('SetStylePlayer', 'position:absolute;width:80%;height:100%;top:50%;left:10%;transform:translate(0,-50%);')
cloudRender.SuperAPI('SetStyleVideo', 'position:absolute;width:100%;height:100%;top:50%;left:50%;transform:translate(-50%,-50%);')
// 启动云渲染
cloudRender.SuperAPI("StartRenderCloud", json.url);
cloudRender.SuperAPI("ResetVideo"); //resizePlayerStyle 否则鼠标右键/中键 场景会乱动

论坛链接https://bbs.51aes.com/faq/1514240202056605697.html

你可能感兴趣的:(51World,javascript,前端,html)