mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-05 06:19:46 +00:00
reenable native hls playback
This commit is contained in:
parent
ee74957a28
commit
e8417a5144
1 changed files with 2 additions and 1 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { detect } from "detect-browser";
|
||||
import fscreen from "fscreen";
|
||||
import Hls from "hls.js";
|
||||
|
||||
export const isSafari = /^((?!chrome|android).)*safari/i.test(
|
||||
navigator.userAgent,
|
||||
|
|
@ -49,7 +50,7 @@ export function canWebkitPictureInPicture(): boolean {
|
|||
}
|
||||
|
||||
export function canPlayHlsNatively(video: HTMLVideoElement): boolean {
|
||||
// if (Hls.isSupported()) return false; // no need to play natively
|
||||
if (Hls.isSupported()) return false; // no need to play natively
|
||||
return !!video.canPlayType("application/vnd.apple.mpegurl");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue