minor fixes to video player
This commit is contained in:
parent
4b996a5675
commit
be3d57ff95
2 changed files with 4 additions and 12 deletions
|
|
@ -180,10 +180,8 @@ class QsvBuilder(_BaseBuilder):
|
||||||
new_args += [
|
new_args += [
|
||||||
"-vf",
|
"-vf",
|
||||||
"scale=trunc(iw/2)*2:trunc(ih/2)*2,format=nv12,hwupload=extra_hw_frames=64",
|
"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
|
# Use ICQ (Intelligent Constant Quality) ratecontrol mode with quality level
|
||||||
"-b:v",
|
"-q:v",
|
||||||
"0",
|
|
||||||
"-global_quality",
|
|
||||||
"23",
|
"23",
|
||||||
"-look_ahead",
|
"-look_ahead",
|
||||||
"0",
|
"0",
|
||||||
|
|
|
||||||
|
|
@ -721,22 +721,16 @@ const src_error = async () => {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// If we already successfully captured a frame, that means the streamed video codec is working.
|
|
||||||
if (havePoster.value) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
|
|
||||||
await nextTick()
|
await nextTick()
|
||||||
if (destroyed.value) {
|
if (destroyed.value) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check if video is actually paused.
|
if (video.value && (notFirefox && video.value.paused)) {
|
||||||
if (video.value && video.value.paused) {
|
|
||||||
return
|
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'))
|
attach_hls(makeDownload(config, props.item, 'm3u8'))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue