mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-12 01:00:29 +08:00
key_required for h264
This commit is contained in:
parent
7177f83bc5
commit
ad95e820cc
2
PKGBUILD
2
PKGBUILD
@ -78,7 +78,7 @@ depends=(
|
|||||||
"janus-gateway-pikvm>=0.11.2-7"
|
"janus-gateway-pikvm>=0.11.2-7"
|
||||||
certbot
|
certbot
|
||||||
platform-io-access
|
platform-io-access
|
||||||
"ustreamer>=5.8"
|
"ustreamer>=5.26"
|
||||||
|
|
||||||
# Systemd UDEV bug
|
# Systemd UDEV bug
|
||||||
"systemd>=248.3-2"
|
"systemd>=248.3-2"
|
||||||
|
|||||||
@ -176,10 +176,13 @@ class MemsinkStreamerClient(BaseStreamerClient):
|
|||||||
raise StreamerPermError("Missing ustreamer library")
|
raise StreamerPermError("Missing ustreamer library")
|
||||||
try:
|
try:
|
||||||
with ustreamer.Memsink(**self.__kwargs) as sink:
|
with ustreamer.Memsink(**self.__kwargs) as sink:
|
||||||
|
key_required = (self.__fmt == StreamFormats.H264)
|
||||||
while True:
|
while True:
|
||||||
frame = await aiotools.run_async(sink.wait_frame)
|
frame = await aiotools.run_async(sink.wait_frame, key_required)
|
||||||
if frame is not None:
|
if frame is not None:
|
||||||
self.__check_format(frame["format"])
|
self.__check_format(frame["format"])
|
||||||
|
if frame["key"]:
|
||||||
|
key_required = False
|
||||||
yield frame
|
yield frame
|
||||||
except StreamerPermError:
|
except StreamerPermError:
|
||||||
raise
|
raise
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user