minor fixes to video player

This commit is contained in:
arabcoders 2025-11-02 19:50:22 +03:00
parent 4b996a5675
commit be3d57ff95
2 changed files with 4 additions and 12 deletions

View file

@ -180,10 +180,8 @@ class QsvBuilder(_BaseBuilder):
new_args += [
"-vf",
"scale=trunc(iw/2)*2:trunc(ih/2)*2,format=nv12,hwupload=extra_hw_frames=64",
# Favor widely-supported constant quality path and disable LA
"-b:v",
"0",
"-global_quality",
# Use ICQ (Intelligent Constant Quality) ratecontrol mode with quality level
"-q:v",
"23",
"-look_ahead",
"0",

View file

@ -721,22 +721,16 @@ const src_error = async () => {
return
}
// If we already successfully captured a frame, that means the streamed video codec is working.
if (havePoster.value) {
return
}
await nextTick()
if (destroyed.value) {
return
}
// Check if video is actually paused.
if (video.value && video.value.paused) {
if (video.value && (notFirefox && video.value.paused)) {
return
}
console.warn('Source failed to load, attempting HLS fallback...')
console.warn('Source failed to load, attempting HLS fallback via hls.js...')
attach_hls(makeDownload(config, props.item, 'm3u8'))
}