| | |
| | | width.value = rect.width |
| | | height.value = rect.height |
| | | console.log('rect', rect); |
| | | |
| | | |
| | | initPlugin() |
| | | window.addEventListener('resize', function () { // 执行 |
| | | if (oWebControl.value) { |
| | |
| | | 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() // 创建播放实例成功后初始化 |
| | |
| | | let layout = "1x4" //playMode指定模式的布局 |
| | | let enableHTTPS = 1 //是否启用HTTPS协议与综合安防管理平台交互,这里总是填1 |
| | | let encryptedFields = 'secret' //加密字段,默认加密领域为secret |
| | | let showToolbar = 1 //是否显示工具栏,0-不显示,非0-显示 |
| | | 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", |
| | |
| | | height: 100%; |
| | | |
| | | } |
| | | </style> |
| | | </style> |