fix mobile device maxSpotlights bug for #120

https://github.com/havfo/multiparty-meeting/issues/120
This commit is contained in:
张云龙
2020-02-09 11:54:28 +08:00
committed by GitHub
parent 1613cf8703
commit aa3b36f306
+3 -3
View File
@@ -160,10 +160,10 @@ export default class RoomClient
this._webTorrent = null; this._webTorrent = null;
// Max spotlights // Max spotlights
if (device.bowser.ios || device.bowser.mobile || device.bowser.android) if (device.bowser.getPlatformType() === 'desktop')
this._maxSpotlights = mobileLastN;
else
this._maxSpotlights = lastN; this._maxSpotlights = lastN;
else
this._maxSpotlights = mobileLastN;
// Manager of spotlight // Manager of spotlight
this._spotlights = null; this._spotlights = null;