mirror of https://github.com/Chocobozzz/PeerTube
Force videojs to not recreate <video>
Happens with HLS playlist on iOS breaking our event listener on the former <video> element in embed apipull/5441/head
parent
30b123257d
commit
32f44a017c
|
@ -66,6 +66,9 @@ class P2pMediaLoaderPlugin extends Plugin {
|
|||
player.ready(() => player.error(error))
|
||||
return
|
||||
}
|
||||
|
||||
// Workaround to force video.js to not re create a video element
|
||||
(this.player as any).playerElIngest_ = this.player.el().parentNode
|
||||
} else {
|
||||
// FIXME: typings https://github.com/Microsoft/TypeScript/issues/14080
|
||||
(videojs as any).Html5Hlsjs.addHook('beforeinitialize', (videojsPlayer: any, hlsjs: any) => {
|
||||
|
|
Loading…
Reference in New Issue