change another way to skip stream record
This commit is contained in:
parent
fb337b4b83
commit
781d5d74f6
@ -35,8 +35,6 @@ class StreamFetcher(AsyncCooperationMixin):
|
||||
scheduler: Optional[abc.SchedulerBase] = None,
|
||||
) -> abc.DisposableBase:
|
||||
def on_next(url: str) -> None:
|
||||
observer.on_next(io.BytesIO(b""))
|
||||
return
|
||||
try:
|
||||
logger.info(f'Requesting live stream... {url}')
|
||||
response = self._session.get(
|
||||
|
@ -28,11 +28,10 @@ def parse(
|
||||
observer: abc.ObserverBase[FLVStreamItem],
|
||||
scheduler: Optional[abc.SchedulerBase] = None,
|
||||
) -> abc.DisposableBase:
|
||||
disposed = False
|
||||
disposed = True
|
||||
subscription = SerialDisposable()
|
||||
|
||||
def on_next(stream: io.RawIOBase) -> None:
|
||||
return
|
||||
tag: Optional[FlvTag] = None
|
||||
try:
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user