mirror of
https://github.com/LBRYFoundation/lbry-desktop.git
synced 2025-09-13 22:09:47 +00:00
turn it back on but ✨head✨
This commit is contained in:
parent
d92f6d3e18
commit
eb398c419a
1 changed files with 25 additions and 25 deletions
|
@ -311,10 +311,10 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
// $FlowFixMe
|
// $FlowFixMe
|
||||||
containerRef.current.appendChild(wrapper);
|
containerRef.current.appendChild(wrapper);
|
||||||
|
|
||||||
// fetch(source).then(response => {
|
fetch(source, { method: 'HEAD' }).then(response => {
|
||||||
// if (response && response.redirected && response.url && response.url.endsWith('m3u8')) {
|
if (response && response.redirected && response.url && response.url.endsWith('m3u8')) {
|
||||||
// videoJsOptions.sources[0].type = 'application/x-mpegURL';
|
videoJsOptions.sources[0].type = 'application/x-mpegURL';
|
||||||
// }
|
}
|
||||||
|
|
||||||
player = videojs(el, videoJsOptions, () => {
|
player = videojs(el, videoJsOptions, () => {
|
||||||
if (player) {
|
if (player) {
|
||||||
|
@ -337,7 +337,7 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
player.on('fullscreenchange', () => document.activeElement && document.activeElement.blur());
|
player.on('fullscreenchange', () => document.activeElement && document.activeElement.blur());
|
||||||
|
|
||||||
window.addEventListener('keydown', handleKeyDown);
|
window.addEventListener('keydown', handleKeyDown);
|
||||||
// });
|
});
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
window.removeEventListener('keydown', handleKeyDown);
|
window.removeEventListener('keydown', handleKeyDown);
|
||||||
|
|
Loading…
Add table
Reference in a new issue