Skip to content
Snippets Groups Projects
Commit 29f010a1 authored by Boris Grozev's avatar Boris Grozev
Browse files

Makes the "toggle video" button in the call window active only if we're ready...

Makes the "toggle video" button in the call window active only if we're ready to send video, and shows an appropriate tooltip otherwise. Same for the desktop sharing button.
parent 90c68970
No related branches found
No related tags found
No related merge requests found
......@@ -501,4 +501,17 @@ public void loadEncodingConfiguration(
encodingConfiguration.storeProperties(properties);
loadProperties(properties);
}
/**
* Returns <tt>true</tt> if there is at least one enabled format for media
* type <tt>type</tt>.
*
* @param mediaType The media type, MediaType.AUDIO or MediaType.VIDEO
* @return <tt>true</tt> if there is at least one enabled format for media
* type <tt>type</tt>.
*/
public boolean hasEnabledFormat(MediaType mediaType)
{
return (getEnabledEncodings(mediaType).length > 0);
}
}
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