Commit 858f600e authored by Adrian Georgescu's avatar Adrian Georgescu

Codec is now decoded by the middleware

parent 1223abd2
...@@ -161,7 +161,7 @@ class MSRPStreamInfo(object, metaclass=ABCMeta): ...@@ -161,7 +161,7 @@ class MSRPStreamInfo(object, metaclass=ABCMeta):
class AudioStreamInfo(RTPStreamInfo): class AudioStreamInfo(RTPStreamInfo):
@property @property
def codec(self): def codec(self):
return '{} {}kHz'.format(self.codec_name.decode().capitalize(), self.sample_rate//1000) if self.codec_name else None return '{} {}kHz'.format(self.codec_name.capitalize(), self.sample_rate//1000) if self.codec_name else None
class VideoStreamInfo(RTPStreamInfo): class VideoStreamInfo(RTPStreamInfo):
...@@ -171,7 +171,7 @@ class VideoStreamInfo(RTPStreamInfo): ...@@ -171,7 +171,7 @@ class VideoStreamInfo(RTPStreamInfo):
@property @property
def codec(self): def codec(self):
return '{} {}fps'.format(self.codec_name.decode(), int(self.framerate)) if self.codec_name else None return '{} {}fps'.format(self.codec_name, int(self.framerate)) if self.codec_name else None
def update(self, stream): def update(self, stream):
super(VideoStreamInfo, self).update(stream) super(VideoStreamInfo, self).update(stream)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment