mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Hidden screensharing button in mobile devices
parent
9f34c01d6e
commit
b7efcf86c0
|
@ -28,6 +28,7 @@ import { PanelType } from '../../models/panel.model';
|
||||||
import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
|
import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
|
||||||
import { ToolbarAdditionalButtonsDirective, ToolbarAdditionalPanelButtonsDirective } from '../../directives/template/openvidu-angular.directive';
|
import { ToolbarAdditionalButtonsDirective, ToolbarAdditionalPanelButtonsDirective } from '../../directives/template/openvidu-angular.directive';
|
||||||
import { ParticipantAbstractModel } from '../../models/participant.model';
|
import { ParticipantAbstractModel } from '../../models/participant.model';
|
||||||
|
import { PlatformService } from '../../services/platform/platform.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
|
@ -243,7 +244,8 @@ export class ToolbarComponent implements OnInit, OnDestroy {
|
||||||
protected actionService: ActionService,
|
protected actionService: ActionService,
|
||||||
protected loggerSrv: LoggerService,
|
protected loggerSrv: LoggerService,
|
||||||
private cd: ChangeDetectorRef,
|
private cd: ChangeDetectorRef,
|
||||||
private libService: OpenViduAngularConfigService
|
private libService: OpenViduAngularConfigService,
|
||||||
|
private platformService: PlatformService
|
||||||
) {
|
) {
|
||||||
this.log = this.loggerSrv.get('ToolbarComponent');
|
this.log = this.loggerSrv.get('ToolbarComponent');
|
||||||
}
|
}
|
||||||
|
@ -425,7 +427,7 @@ export class ToolbarComponent implements OnInit, OnDestroy {
|
||||||
this.cd.markForCheck();
|
this.cd.markForCheck();
|
||||||
});
|
});
|
||||||
this.screenshareButtonSub = this.libService.screenshareButtonObs.subscribe((value: boolean) => {
|
this.screenshareButtonSub = this.libService.screenshareButtonObs.subscribe((value: boolean) => {
|
||||||
this.showScreenshareButton = value;
|
this.showScreenshareButton = value && !this.platformService.isMobile();
|
||||||
this.cd.markForCheck();
|
this.cd.markForCheck();
|
||||||
});
|
});
|
||||||
this.fullscreenButtonSub = this.libService.fullscreenButtonObs.subscribe((value: boolean) => {
|
this.fullscreenButtonSub = this.libService.fullscreenButtonObs.subscribe((value: boolean) => {
|
||||||
|
|
Loading…
Reference in New Issue