{"remainingRequest":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\common\\HtVideoPlayer.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\src\\components\\common\\HtVideoPlayer.vue","mtime":1667327529075},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\babel.config.js","mtime":1667327525434},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\xq-web-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\n/* eslint-disable */\nimport { Message } from \"element-ui\";\nimport req from \"@/request.js\";\nexport default {\n  name: \"TestTwo\",\n  props: [\"fileRow\"],\n  data: function data() {\n    return {\n      videoDialogVisible: false,\n      videoSrc: ''\n    };\n  },\n  // computed: {\n  //    downloadUrl: function() {\n  //     return window.context.portal+'/system/file/v1/downloadFile?fileId=' +  this.fileRow.id;\n  //   }\n  // },\n  watch: {\n    'fileRow.id': function fileRowId(newVal, oldVal) {\n      if (newVal) {\n        var _this = this;\n\n        req.get(window.context.portal + '/file/onlinePreviewController/v1/getFileById_' + newVal, 'arraybuffer').then(function (response) {\n          _this.videoSrc = window.URL.createObjectURL(new Blob([response.data], {\n            type: 'video/mp4'\n          }));\n        });\n      }\n    }\n  },\n  methods: {\n    initVideo: function initVideo() {\n      //初始化视频方法\n      var myPlayer = this.$video(myVideo, {\n        //确定播放器是否具有用户可以与之交互的控件。没有控件，启动视频播放的唯一方法是使用autoplay属性或通过Player API。\n        controls: true,\n        //自动播放属性,muted:静音播放\n        autoplay: \"muted\",\n        //建议浏览器是否应在<video>加载元素后立即开始下载视频数据。\n        preload: \"auto\",\n        //设置视频播放器的显示宽度（以像素为单位）\n        width: \"800px\",\n        //设置视频播放器的显示高度（以像素为单位）\n        height: \"573x\",\n        playbackRates: [0.5, 1, 1.5, 2],\n        language: \"zh-CN\"\n      });\n    },\n    show: function show() {\n      this.videoDialogVisible = true;\n      var this_ = this;\n      setTimeout(function () {\n        this_.initVideo();\n      }, 50);\n    },\n    //附件下载\n    download: function download() {\n      req.download(this.downloadUrl);\n    }\n  }\n};",null]}