mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-12-22 04:53:17 +00:00
Update VideoPlayer.vue component
This commit is contained in:
parent
bf497ef31b
commit
297b7f3859
1 changed files with 2 additions and 4 deletions
|
@ -45,8 +45,6 @@
|
||||||
import Hls from 'hls.js';
|
import Hls from 'hls.js';
|
||||||
import "plyr/dist/plyr.css";
|
import "plyr/dist/plyr.css";
|
||||||
import Plyr from 'plyr';
|
import Plyr from 'plyr';
|
||||||
import { p2pml } from '@peertube/p2p-media-loader-core'
|
|
||||||
import { Engine, initHlsJsPlayer } from '@peertube/p2p-media-loader-hlsjs'
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
props: ['status', 'fixedHeight'],
|
props: ['status', 'fixedHeight'],
|
||||||
|
@ -72,8 +70,8 @@
|
||||||
methods: {
|
methods: {
|
||||||
handleShouldPlay(){
|
handleShouldPlay(){
|
||||||
this.shouldPlay = true;
|
this.shouldPlay = true;
|
||||||
this.isHlsSupported = this.hlsConfig.enabled && Hls.isSupported();
|
this.isHlsSupported = false;
|
||||||
this.isP2PSupported = this.hlsConfig.enabled && this.hlsConfig.p2p && Engine.isSupported();
|
this.isP2PSupported = false;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.init();
|
this.init();
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue