Skip to content

Commit

Permalink
fix: プレイヤーオプションの調整
Browse files Browse the repository at this point in the history
(cherry picked from commit 8aabb05)
  • Loading branch information
nacika-ins committed Sep 19, 2024
1 parent 5142ebd commit 4524991
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/components/MkMediaVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ const hide = ref(

<style lang="scss" scoped>
.kkjnbbplepmiyuadieoenjgutgcmtsvu {
height: min-content;
position: relative;
--plyr-color-main: var(--accent);
Expand Down
18 changes: 14 additions & 4 deletions packages/frontend/src/components/MkVideoPlayer.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<div>
<video ref="videoPlayer" class="video-js" vjs-default-skin data-setup='{"fluid": true}'></video>
<video ref="videoPlayer" class="video-js" vjs-default-skin></video>
</div>
</template>

Expand All @@ -24,9 +24,19 @@ export default {
};
},
mounted() {
this.player = videojs(this.$refs.videoPlayer, this.options, () => {
this.player.log('onPlayerReady', this);
});
this.player = videojs(
this.$refs.videoPlayer,
{
...this.options,
fill: true,
// responsive: true,
fluid: true,
// aspectRatio: '4:3',
},
() => {
this.player.log('onPlayerReady', this);
},
);
},
beforeUnmount() {
if (this.player) {
Expand Down

0 comments on commit 4524991

Please sign in to comment.