| | |
| | | autoplay:true,//自动播放 |
| | | sources: [ |
| | | { |
| | | src: resourcePath.value ? "http://192.168.2.16:9000/trainexam/" + resourcePath.value : '', |
| | | src: resourcePath.value ? import.meta.env.VITE_APP_RESOURCE_API + resourcePath.value : '', |
| | | // src:'', |
| | | type: 'application/x-mpegURL', |
| | | } |
| | |
| | | const view = (file) => { |
| | | console.log('vlco',file) |
| | | // console.log("点击文件=>", file); |
| | | const url = 'http://192.168.2.16:9000/trainexam/' + file.path; |
| | | const url = import.meta.env.VITE_APP_RESOURCE_API + file.path; |
| | | const link = document.createElement("a"); |
| | | link.href = url; |
| | | link.download = file.name; |
| | |
| | | console.log("myPlayer.value",myPlayer.value) |
| | | myPlayer.value.src( |
| | | { |
| | | src:"http://192.168.2.16:9000/trainexam/"+data.data.path, |
| | | src: import.meta.env.VITE_APP_RESOURCE_API +data.data.path, |
| | | type: 'application/x-mpegURL', |
| | | }) |
| | | // myPlayer.value.load() |