{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\dataScreen\\dataScreenCopy\\components\\videoPlayer.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\dataScreen\\dataScreenCopy\\components\\videoPlayer.vue","mtime":1667326394935},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nvar IS_MOVE_DEVICE = document.body.clientWidth < 992; // 是否移动设备\n\nvar MSE_IS_SUPPORT = !!window.MediaSource; // 是否支持mse\n\nexport default {\n data: function data() {\n return {\n isMoveDevice: IS_MOVE_DEVICE,\n player: null,\n splitNum: IS_MOVE_DEVICE ? 1 : 2,\n mseSupport: MSE_IS_SUPPORT,\n tabActive: MSE_IS_SUPPORT ? 'mse' : 'decoder',\n labelCol: {\n span: 5\n },\n wrapperCol: {\n span: 18\n },\n urls: {\n realplay: 'ws://183.64.175.153:559/openUrl/pxvGV5C',\n talk: 'ws://183.64.175.153:559/openUrl/pxvGV5C',\n playback: 'ws://183.64.175.153:559/openUrl/pxvGV5C'\n },\n playback: {\n startTime: '2021-07-26T00:00:00',\n endTime: '2021-07-26T23:59:59',\n // valueFormat: moment.HTML5_FMT.DATETIME_LOCAL_SECONDS,\n seekStart: '2021-07-26T12:00:00',\n rate: ''\n },\n muted: true,\n volume: 50,\n volumeOnSvg: {\n template: ''\n },\n volumeOffSvg: {\n template: ''\n },\n videoinfo: '视频加载中...'\n };\n },\n computed: {\n mode: function mode() {\n return this.tabActive === 'mse' ? 0 : 1;\n }\n },\n methods: {\n init: function init() {\n var _this = this;\n\n window.addEventListener('resize', function () {\n _this.player.JS_Resize();\n });\n },\n createPlayer: function createPlayer() {\n this.player = new window.JSPlugin({\n szId: 'player',\n szBasePath: '/',\n iMaxSplit: 1,\n iCurrentSplit: IS_MOVE_DEVICE ? 1 : 2,\n openDebug: true,\n oStyle: {\n borderSelect: IS_MOVE_DEVICE ? '#000' : '#FFCC00'\n }\n }); // 事件回调绑定\n\n this.player.JS_SetWindowControlCallback({\n windowEventSelect: function windowEventSelect(iWndIndex) {\n //插件选中窗口回调\n console.log('windowSelect callback: ', iWndIndex);\n },\n pluginErrorHandler: function pluginErrorHandler(iWndIndex, iErrorCode, oError) {\n //插件错误回调\n console.log('pluginError callback: ', iWndIndex, iErrorCode, oError);\n },\n windowEventOver: function windowEventOver(iWndIndex) {//鼠标移过回调\n //console.log(iWndIndex);\n },\n windowEventOut: function windowEventOut(iWndIndex) {//鼠标移出回调\n //console.log(iWndIndex);\n },\n windowEventUp: function windowEventUp(iWndIndex) {//鼠标mouseup事件回调\n //console.log(iWndIndex);\n },\n windowFullCcreenChange: function windowFullCcreenChange(bFull) {\n //全屏切换回调\n console.log('fullScreen callback: ', bFull);\n },\n firstFrameDisplay: function firstFrameDisplay(iWndIndex, iWidth, iHeight) {\n //首帧显示回调\n console.log('firstFrame loaded callback: ', iWndIndex, iWidth, iHeight);\n },\n performanceLack: function performanceLack() {\n //性能不足回调\n console.log('performanceLack callback: ');\n }\n });\n },\n\n /* 预览&对讲 */\n realplay: function realplay() {\n var _this2 = this;\n\n var player = this.player,\n mode = this.mode,\n urls = this.urls,\n index = player.currentWindowIndex,\n playURL = urls.realplay;\n player.JS_Play(playURL, {\n playURL: playURL,\n mode: mode\n }, index).then(function () {\n console.log('realplay success');\n _this2.videoinfo = '';\n }, function (e) {\n _this2.videoinfo = '播放失败,请重试';\n console.error(e);\n });\n },\n stopPlay: function stopPlay() {\n var _this3 = this;\n\n this.player.JS_Stop().then(function () {\n _this3.playback.rate = 0;\n console.log('stop realplay success');\n }, function (e) {\n console.error(e);\n });\n },\n closeVideo: function closeVideo() {\n this.stopPlay();\n this.videoinfo = '视频已关闭';\n this.$emit('close');\n },\n getVideoURL: function getVideoURL() {\n var _this4 = this;\n\n this.videoinfo = '视频加载中...';\n var query = {\n cameraIndexCode: '110090628241674360' // 监控点编码\n\n };\n var hasURL; // return new Promise((resolve,reject)=>{\n\n this.$http.post('${yhxt}/baseDataStatistics/v1/getPreviewURLs', query).then(function (res) {\n if (res.data.state && res.data.value) {\n var data = JSON.parse(res.data.value);\n _this4.urls.realplay = data.url;\n\n _this4.realplay();\n } else {\n _this4.videoinfo = '获取监控点资源失败!';\n\n _this4.$message.warning('获取监控点资源失败!');\n }\n }); // })\n }\n },\n mounted: function mounted() {\n this.init();\n this.createPlayer();\n this.getVideoURL();\n }\n};",null]}