Skip to content
Snippets Groups Projects
Commit ff07ab13 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

imprv: Contacts: Add methods for checking AV support

parent ce7ed267
No related branches found
No related tags found
No related merge requests found
......@@ -257,6 +257,18 @@ def supports(self, requested_feature: str) -> bool:
return True
return False
def supports_audio(self) -> bool:
if (self.supports(Namespace.JINGLE_ICE_UDP) and
app.is_installed('FARSTREAM')):
return self.supports(Namespace.JINGLE_RTP_AUDIO)
return False
def supports_video(self) -> bool:
if (self.supports(Namespace.JINGLE_ICE_UDP) and
app.is_installed('FARSTREAM')):
return self.supports(Namespace.JINGLE_RTP_VIDEO)
return False
def add_resource(self, resource: str) -> ResourceContact:
jid = self._jid.new_with(resource=resource)
assert isinstance(self._log, LogAdapter)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment