Updated handling of video/audio devices. Save devices to cookie.

This commit is contained in:
Håvar Aambø Fosstveit committed 2019-04-05 13:32:45 +02:00
1 parent 5c9ee3a495
commit 0b9e1ca7b9
5 files changed
+175 -115

No files matched your search

+16 -8
View File
@@ -81,14 +81,6 @@ export const setScreenCapabilities = ({ canShareScreen, needExtension }) =>
};
};
export const setCanChangeAudioDevice = (flag) =>
{
return {
type : 'SET_CAN_CHANGE_AUDIO_DEVICE',
payload : flag
};
};
export const setAudioDevices = (devices) =>
{
return {
@@ -105,6 +97,22 @@ export const setWebcamDevices = (devices) =>
};
};
export const setSelectedAudioDevice = (deviceId) =>
{
return {
type : 'CHANGE_AUDIO_DEVICE',
payload : { deviceId }
};
};
export const setSelectedWebcamDevice = (deviceId) =>
{
return {
type : 'CHANGE_WEBCAM',
payload : { deviceId }
};
};
export const setFileSharingSupported = (supported) =>
{
return {