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): class MyAudioStreamTrack(MyTrackBase):
kind = 'audio' kind = 'audio'
def __init__(self, source=None): def __init__(self, source):
super().__init__() super().__init__(source=source)
self.dumb = AudioStreamTrack() self.dumb = AudioStreamTrack()
class MyVideoStreamTrack(MyTrackBase): class MyVideoStreamTrack(MyTrackBase):
kind = 'video' kind = 'video'
def __init__(self, source=None): def __init__(self, source):
super().__init__() super().__init__(source=source)
self.dumb = AudioStreamTrack() self.dumb = AudioStreamTrack()
""" """