提交 b286abd3 作者: 翁进城

fix: 修正清流视频尺寸

上级 26d96713
...@@ -15,7 +15,7 @@ export default { ...@@ -15,7 +15,7 @@ export default {
props: { props: {
url: { url: {
type: String, type: String,
default: '' default: "",
}, },
}, },
data() { data() {
...@@ -23,8 +23,7 @@ export default { ...@@ -23,8 +23,7 @@ export default {
name: "QingLiuPlayer" + Date.now(), name: "QingLiuPlayer" + Date.now(),
}; };
}, },
created() { created() {},
},
mounted() { mounted() {
this.init(); this.init();
}, },
...@@ -38,13 +37,7 @@ export default { ...@@ -38,13 +37,7 @@ export default {
init() { init() {
window.kbt_sdk_load().then(() => { window.kbt_sdk_load().then(() => {
let parentObj = this.$refs.player_area; let parentObj = this.$refs.player_area;
window.kbt_player_create( window.kbt_player_create(this.name, this.url, 970, 545, parentObj);
this.name,
this.url,
970,
545,
parentObj
);
}); });
}, },
screenShot() { screenShot() {
...@@ -63,9 +56,13 @@ export default { ...@@ -63,9 +56,13 @@ export default {
</script> </script>
<style scoped lang='scss'> <style scoped lang='scss'>
.qingliu { .qingliu::v-deep {
width: 100%; width: 100%;
height: 100%; height: 100%;
> div {
width: 100%;
height: 100%;
}
.player_area { .player_area {
width: 100%; width: 100%;
height: 100%; height: 100%;
...@@ -78,8 +75,9 @@ export default { ...@@ -78,8 +75,9 @@ export default {
color: #fff; color: #fff;
background: rgba($color: #000000, $alpha: 0.6); background: rgba($color: #000000, $alpha: 0.6);
} }
canvas::v-deep { canvas {
width: 100% !important; width: 100%;
height: 100%;
} }
} }
</style> </style>
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论