Rewritten filesharing to move responsability of filesharing to RoomClient. Removed and rewrote some code to clean up.

This commit is contained in:
Håvar Aambø Fosstveit
2018-12-17 15:13:22 +01:00
parent 60fb9c735e
commit db9d423feb
21 changed files with 608 additions and 918 deletions
@@ -63,8 +63,8 @@ const ListPeer = (props) =>
{
e.stopPropagation();
screenVisible ?
roomClient.pausePeerScreen(peer.name) :
roomClient.resumePeerScreen(peer.name);
roomClient.modifyPeerConsumer(peer.name, 'screen', true) :
roomClient.modifyPeerConsumer(peer.name, 'screen', false);
}}
/>
</If>
@@ -78,8 +78,8 @@ const ListPeer = (props) =>
{
e.stopPropagation();
micEnabled ?
roomClient.mutePeerAudio(peer.name) :
roomClient.unmutePeerAudio(peer.name);
roomClient.modifyPeerConsumer(peer.name, 'mic', true) :
roomClient.modifyPeerConsumer(peer.name, 'mic', false);
}}
/>
</div>