【发布时间】:2021-05-13 16:01:51
【问题描述】:
我将 Video.js 与 Vue.js 和 Electron.js 一起使用,我正在尝试将视频播放器的轮廓更改为比标准黄色轮廓更好看的东西,但轮廓保持不变是。
我的视频组件:
<template>
<div id="video-container">
<video class="video-js" id="video-player" ref="video"></video>
</div>
</template>
<script>
import videojs from "video.js";
export default {
name: "Preferences",
props: ["item"],
methods: {
getPath: function () {
return this.item.dir + "/" + this.item.name + "." + this.item.fileType;
},
},
mounted: function () {
let options = {
autoplay: false,
controls: true,
fluid: true,
playbackRates: [0.5, 1, 1.25, 1.5, 1.75, 2],
controlBar: {
pictureInPictureToggle: false,
},
};
this.player = videojs(this.$refs.video, options).src(this.getPath());
},
};
</script>
<style scoped>
#video-player {
outline: none;
}
</style>
我也尝试过!important、#video-player:hover 并使用视频容器 div 来更改大纲,但到目前为止没有任何效果。
大纲如下所示:
Video Box outline
button outline
【问题讨论】:
标签: css vue.js electron video.js