bugfix
This commit is contained in:
parent
80aa2aa25f
commit
8f540565b7
@ -11,6 +11,7 @@ class MyTrackBase(MediaStreamTrack):
|
|||||||
self.reloaded = False
|
self.reloaded = False
|
||||||
self.source = source
|
self.source = source
|
||||||
self.set_track()
|
self.set_track()
|
||||||
|
print(f'{self.kind=}, {self.__class__.__name__}')
|
||||||
|
|
||||||
def set_track(self):
|
def set_track(self):
|
||||||
if self.kind == 'audio':
|
if self.kind == 'audio':
|
||||||
@ -33,7 +34,7 @@ class MyTrackBase(MediaStreamTrack):
|
|||||||
return None
|
return None
|
||||||
if self.track.readyState != 'live':
|
if self.track.readyState != 'live':
|
||||||
self.reload()
|
self.reload()
|
||||||
f = await self.source.audio.recv()
|
f = await self.track.recv()
|
||||||
return f
|
return f
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user