使用产品:iserver 10i
操作系统:win10
数据类型:文件型
问题详述:在执行完分屏操作后,按照录入好的点位数据和距离进行视频投放,却只能投到其中一个视口中,另一个视口中无视频
代码:
①分屏代码:
scene.multiViewportMode = Cesium.MultiViewportMode["HORIZONTAL"];
②视频投放代码:
this.projectionImage.distance = 0.1;
this.projectionImage = new Cesium.ProjectionImage(viewer.scene);
// 引入视频模块
var videoElement = document.getElementById('trailer');
// 创建在三维场景中投放的视频流图片。
this.projectionImage.viewPosition = [this.pointData[id].stax, this.pointData[id].stay, this.pointData[id].staz];
this.projectionImage.horizontalFov = 20;
this.projectionImage.verticalFov = 10;
this.projectionImage.setImage({
video: videoElement
});
videoElement.play();
this.projectionImage.build();
this.projectionImage.setDistDirByPoint([this.pointData[id].setx, this.pointData[id].sety, this.pointData[id].setz]);
this.projectionImage.distance = this.pointData[id].vidDis;
问题截图: