Separate settings for lastN for desktop and mobile
parent
abb5b2b231
commit
72c25b212c
|
|
@ -18,6 +18,7 @@ var config =
|
|||
tcp : true
|
||||
},
|
||||
lastN : 4,
|
||||
mobileLastN : 1,
|
||||
background : 'images/background.jpg',
|
||||
// Add file and uncomment for adding logo to appbar
|
||||
// logo : 'images/logo.svg',
|
||||
|
|
|
|||
|
|
@ -15,7 +15,8 @@ const {
|
|||
turnServers,
|
||||
requestTimeout,
|
||||
transportOptions,
|
||||
lastN
|
||||
lastN,
|
||||
mobileLastN
|
||||
} = window.config;
|
||||
|
||||
const logger = new Logger('RoomClient');
|
||||
|
|
@ -24,8 +25,7 @@ let ROOM_OPTIONS =
|
|||
{
|
||||
requestTimeout : requestTimeout,
|
||||
transportOptions : transportOptions,
|
||||
turnServers : turnServers,
|
||||
maxSpotlights : lastN
|
||||
turnServers : turnServers
|
||||
};
|
||||
|
||||
const VIDEO_CONSTRAINS =
|
||||
|
|
@ -107,7 +107,10 @@ export default class RoomClient
|
|||
});
|
||||
|
||||
// Max spotlights
|
||||
this._maxSpotlights = ROOM_OPTIONS.maxSpotlights;
|
||||
if (device.bowser.ios || device.bowser.mobile || device.bowser.android)
|
||||
this._maxSpotlights = mobileLastN;
|
||||
else
|
||||
this._maxSpotlights = lastN;
|
||||
|
||||
// Manager of spotlight
|
||||
this._spotlights = null;
|
||||
|
|
|
|||
Loading…
Reference in New Issue