liukangdong
2024-12-23 b8e554b2db1933319eedc2a1b9e6a013dce6e299
screen/src/views/videoUrl/Videos.vue
@@ -29,7 +29,7 @@
  width.value = rect.width
  height.value = rect.height
  console.log('rect', rect);
  initPlugin()
  window.addEventListener('resize', function () { // 执行
    if (oWebControl.value) {
@@ -72,7 +72,7 @@
          cbIntegrationCallBack: cbIntegrationCallBack
        })// 启动插件服务成功
        console.log('----',width.value, height.value);
        oWebControl.value.JS_CreateWnd("playWnd", width.value, height.value).then(function () { //JS_CreateWnd创建视频播放窗口,宽高可设定,boxWidth, boxHeight容器
          // oWebControl.value.JS_CreateWnd("playWnd").then(function () { //JS_CreateWnd创建视频播放窗口,宽高可设定,boxWidth, boxHeight容器
          init()  // 创建播放实例成功后初始化
@@ -129,6 +129,7 @@
    let encryptedFields = 'secret'                    //加密字段,默认加密领域为secret
    let showToolbar = 0                               //是否显示工具栏,0-不显示,非0-显示
    let showSmart = 0                                 //是否显示智能信息(如配置移动侦测后画面上的线框),0-不显示,非0-显示
    let buttonIDs =""
    // let buttonIDs = "0,16,256,257,258,259,260,513,514,515,516,517,768"  //自定义工具条按钮
    oWebControl.value.JS_RequestInterface({
      funcName: "init",
@@ -233,4 +234,4 @@
  height: 100%;
}
</style>
</style>