This commit is contained in:
yumoqing 2024-09-13 11:21:26 +08:00
parent 0b0ab09d1f
commit 4719d050b4

View File

@ -46,14 +46,14 @@ class MyTrackBase(MediaStreamTrack):
class MyAudioStreamTrack(MyTrackBase):
kind = 'audio'
def __init__(self, source=None):
super().__init__()
def __init__(self, source):
super().__init__(source=source)
self.dumb = AudioStreamTrack()
class MyVideoStreamTrack(MyTrackBase):
kind = 'video'
def __init__(self, source=None):
super().__init__()
def __init__(self, source):
super().__init__(source=source)
self.dumb = AudioStreamTrack()
"""