项目需求需要使用live-player播放直播,但是推流端是合并之后的图像(两个摄像头),需要在显示的时候只显示其中一半,官方的文档中没有看到可以设置的参数,设定width也是针对live-player的,有没有什么办法可以实现直播视频的切割呢?
< live-player style = "width:100%;height:80%;position:absolute;" id = "video-livePlayer" mode = "RTC" orientation = "{{orientation}}" muted = "{{muted}}" background-mute = "{{backgroundMute}}" object-fit = "{{objectFit}}" src = "rtmp://22157.liveplay.myqcloud.com/live/22157_c6cef79fb7cd4debe51b7cfff1e025e2?txSecret=9d3bd34f79f8bfec119490fee7cefb4d&txTime=6d4d6934" debug = "{{debug}}" bindstatechange = "onPlayEvent" bindfullscreenchange = "onFullScreenChange" > < cover-image hidden = "{{playing}}" style = "width:100%; height: 100%; position:absolute;" src = "../Resources/bg.png" ></ cover-image > </ live-player > |
有人遇到过这种问题吗?官方有什么建议吗?