This commit is contained in:
yumoqing 2024-09-11 12:05:04 +08:00
parent a05a99c534
commit bcd0aed68d

View File

@ -5,7 +5,7 @@ from aiortc import VideoStreamTrack, AudioStreamTrack
class MyMediaPlayer(MediaPlayer):
pass
class MyTrackBasea:
class MyTrackBase:
def __init__(self, source=None):
self.reloaded = False
self.source = source
@ -38,12 +38,12 @@ class MyTrackBasea:
return f
class MyAudioStreamTrack(AudioStreamTrack, MyTrackBasea):
class MyAudioStreamTrack(AudioStreamTrack, MyTrackBase):
def __init__(self, source=None):
AudioStreamTrack.__init__(self)
MyTrackBase.__init__(self, source=source)
class MyVideoStreamTrack(VideoStreamTrack, MyTrackBasea):
class MyVideoStreamTrack(VideoStreamTrack, MyTrackBase):
def __init__(self, source=None):
VideoStreamTrack.__init__(self)
MyTrackBase.__init__(self, source=source)