added full screen button to mp4 player

pull/49/head
A1Gard 3 months ago
parent 738e8d7835
commit 4acb148b16

@ -27,6 +27,11 @@
<button type="button" class="sp p-btn" @click="timeOffset(10)"> <button type="button" class="sp p-btn" @click="timeOffset(10)">
<i class="ri-speed-line"></i> <i class="ri-speed-line"></i>
</button> </button>
<button type="button" class="sp p-btn" @click="fullScreen">
<i class="ri-fullscreen-line"></i>
</button>
<div> <div>
{{ fullTime }} {{ fullTime }}
</div> </div>
@ -36,7 +41,7 @@
<script> <script>
export default { export default {
name: "mp3-player", name: "video-player",
components: {}, components: {},
data: () => { data: () => {
return { return {
@ -87,6 +92,9 @@ export default {
} }
}, },
methods: { methods: {
fullScreen(){
this.$refs.p.requestFullscreen();
},
speedChange() { speedChange() {
this.speed++; this.speed++;
if (this.speed === this.speeds.length){ if (this.speed === this.speeds.length){

Loading…
Cancel
Save