{"remainingRequest":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\player.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\damDance-fvue\\src\\views\\player.vue","mtime":1698044803563},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\damDance-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\damDance-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\r\nimport EasyPlayer from '@easydarwin/easyplayer'\r\nconst headersUrlencoded = {\r\n 'Content-type': 'application/x-www-form-urlencoded',\r\n}\r\nexport default {\r\n name: 'easyPlayer',\r\n components: {\r\n EasyPlayer,\r\n },\r\n props: {},\r\n data() {\r\n return {\r\n player: {\r\n name: 'easyPlayer',\r\n url: '',\r\n videoTitle: '',\r\n },\r\n muted: true,\r\n url: '',\r\n }\r\n },\r\n methods: {\r\n getUrlAndPlay(url, code, title) {\r\n this.player.url = url\r\n // this.play()\r\n return\r\n let data = this.qs.stringify({\r\n code,\r\n scheme: 'HLS',\r\n })\r\n let param = {\r\n url: '${portal}/biz/catalog/base/point/previewURLs',\r\n data,\r\n method: 'post',\r\n headers: headersUrlencoded,\r\n }\r\n this.$http.request(param).then(\r\n (resp) => {\r\n if (resp.data && resp.data.value) {\r\n let value = JSON.parse(resp.data.value)\r\n this.url = value.url\r\n this.player.videoTitle = title\r\n this.player.url = this.url\r\n // this.play(this.player)\r\n }\r\n },\r\n (error) => {\r\n console.log('获取播放地址', error)\r\n this.$message({\r\n message: '获取播放地址失败,请重试!',\r\n type: 'error',\r\n })\r\n }\r\n )\r\n },\r\n play(player) {\r\n this.$nextTick(() => {\r\n console.log(this.$refs)\r\n this.$refs.easyPlayer.play()\r\n })\r\n },\r\n },\r\n}\r\n",null]}