mirror of https://github.com/OpenVidu/openvidu.git
fix for \#103 - share full screen on Firefox
parent
b55faf831b
commit
d4807c272e
|
@ -38,8 +38,8 @@ window.getScreenId = function (callback, custom_parameter) {
|
||||||
if (!!navigator.mozGetUserMedia) {
|
if (!!navigator.mozGetUserMedia) {
|
||||||
callback(null, 'firefox', {
|
callback(null, 'firefox', {
|
||||||
video: {
|
video: {
|
||||||
mozMediaSource: 'window',
|
mozMediaSource: 'screen',
|
||||||
mediaSource: 'window'
|
mediaSource: 'screen'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
|
|
|
@ -110,8 +110,8 @@ function getScreenConstraintsWithAudio(callback) {
|
||||||
function getScreenConstraints(callback, captureSourceIdWithAudio) {
|
function getScreenConstraints(callback, captureSourceIdWithAudio) {
|
||||||
sourceId = '';
|
sourceId = '';
|
||||||
var firefoxScreenConstraints = {
|
var firefoxScreenConstraints = {
|
||||||
mozMediaSource: 'window',
|
mozMediaSource: 'screen',
|
||||||
mediaSource: 'window'
|
mediaSource: 'screen'
|
||||||
};
|
};
|
||||||
if (isFirefox)
|
if (isFirefox)
|
||||||
return callback(null, firefoxScreenConstraints);
|
return callback(null, firefoxScreenConstraints);
|
||||||
|
|
Loading…
Reference in New Issue