Commit 982c365a by liyuhang19990520

小优化

parent c0db14ac
<!--
* @Author: your name
* @Date: 2021-09-11 10:30:42
* @LastEditTime: 2021-09-13 13:19:42
* @LastEditTime: 2021-09-13 17:45:47
* @LastEditors: Please set LastEditors
* @Description: In User Settings Edit
* @FilePath: \founder_vue\src\views\xsjsdb\detailRwbd.vue
......@@ -142,7 +142,7 @@
class="video-js video"
style="object-fit: fill; width: 100%; height: 95%"
>
<source :src="src" type="video/mp4" />
<source :src="src" :type="'video/' + videoType" />
您的浏览器不支持 video 标签。
</video>
</div>
......@@ -300,6 +300,7 @@ export default {
index: 1,
loadingIndex: 0,
screenLoading: true,
videoType: "mp4",
};
},
methods: {
......@@ -393,18 +394,21 @@ export default {
this.url = "data:image/" + fitem.type + ";base64," + fitem.value;
this.$refs.image.clickHandler();
} else {
this.src = "data:video/mp4;base64," + fitem.value;
// console.log(fitem)
this.videoType = fitem.type;
this.src = "data:video/" + this.videoType + ";base64," + fitem.value;
this.title = fitem.label;
this.dialogVisible = true;
}
},
reset() {
console.log(this.videoType);
let _this = this;
if (_this.myVideo) {
_this.myVideo.reset(); //重置 video
_this.myVideo.src([
{
type: "video/mp4",
type: "video/" + _this.videoType,
src: _this.src,
},
]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment