Skip to content

Commit

Permalink
Fixed screen sharing when no video param is included in config (#1069)
Browse files Browse the repository at this point in the history
  • Loading branch information
Álvaro Alonso authored Nov 27, 2017
1 parent 7dc4db2 commit 57bba5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion erizo_controller/erizoClient/src/Connection.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ const GetUserMedia = (config, callback = () => {}, error = () => {}) => {
}
const theId = response.streamId;
if (config.video.mandatory !== undefined) {
screenConfig.video = config.video;
screenConfig.video = config.video || { mandatory: {} };
screenConfig.video.mandatory.chromeMediaSource = 'desktop';
screenConfig.video.mandatory.chromeMediaSourceId = theId;
} else {
Expand Down

0 comments on commit 57bba5e

Please sign in to comment.