();
+
+ // Event handler methods
+ onCameraToggle(): void {
+ this.cameraToggled.emit();
+ }
+
+ onMicrophoneToggle(): void {
+ this.microphoneToggled.emit();
+ }
+
+ onScreenShareToggle(): void {
+ this.screenShareToggled.emit();
+ }
+
+ onScreenTrackReplace(): void {
+ this.screenTrackReplaced.emit();
+ }
+
+ onFullscreenToggle(): void {
+ this.fullscreenToggled.emit();
+ }
+
+ onRecordingToggle(): void {
+ this.recordingToggled.emit();
+ }
+
+ onViewRecordingsClick(): void {
+ this.viewRecordingsClicked.emit();
+ }
+
+ onBroadcastingToggle(): void {
+ this.broadcastingToggled.emit();
+ }
+
+ onBackgroundEffectsToggle(): void {
+ this.backgroundEffectsToggled.emit();
+ }
+
+ onCaptionsToggle(): void {
+ this.captionsToggled.emit();
+ }
+
+ onSettingsToggle(): void {
+ this.settingsToggled.emit();
+ }
+
+ onLeaveClick(): void {
+ this.leaveClicked.emit();
+ }
+
+
+}
diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.html b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.html
index 53b51885..8034f36a 100644
--- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.html
+++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.html
@@ -40,203 +40,48 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.scss b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.scss
index 7c9a7e37..65704079 100644
--- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.scss
+++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.scss
@@ -30,6 +30,13 @@
display: flex;
justify-content: center;
align-items: center;
+
+ // ov-toolbar-media-buttons {
+ // display: flex;
+ // justify-content: center;
+ // align-items: center;
+ // flex: 1;
+ // }
}
.menu-buttons-container {
flex: 20%;
@@ -47,40 +54,9 @@
max-height: 100% !important;
}
- #media-buttons-container mat-icon {
- font-size: 24px;
- }
-
- #media-buttons-container button,
#menu-buttons-container button {
border-radius: var(--ov-toolbar-buttons-radius);
color: var(--ov-secondary-action-color);
-
- &.disabled {
- background-color: var(--ov-error-color) !important;
- color: #fff !important;
- }
- }
-
- #media-buttons-container > button,
- ::ng-deep #media-buttons-container > button,
- #media-buttons-container:not(#media-buttons-container > button) button,
- /* Applying css for external additional buttons*/
- ::ng-deep #media-buttons-container:not(#media-buttons-container > button) button {
- // width: 40px;
- // height: 40px;
- background-color: var(--ov-primary-action-color);
- color: var(--ov-secondary-action-color);
- margin: 6px;
- }
-
- #disable-screen-button > mat-icon {
- color: var(--ov-error-color) !important;
- }
-
- .active-btn,
- ::ng-deep .active-btn {
- background-color: var(--ov-accent-action-color) !important;
}
#branding-logo {
@@ -146,34 +122,11 @@
animation: blinker 1.5s linear infinite;
}
- #leave-btn {
- background-color: var(--ov-error-color) !important;
- border-radius: var(--ov-leave-button-radius) !important;
- width: 65px !important;
- color: #ffffff !important;
- }
- .mat-mdc-icon-button[disabled] {
- color: #fff;
- }
+
::ng-deep .mat-badge-content {
background-color: var(--ov-warn-color);
}
- .divider {
- margin: 8px 0px;
- }
- ::ng-deep .mat-mdc-menu-item {
- /* margin-bottom: 10px; */
- height: 40px;
- line-height: 40px;
- }
-
- /* Animation for general blinking */
- @keyframes blinker {
- 50% {
- opacity: 0.3;
- }
- }
/* Styles for XS screens */
@media (max-width: 599px) {
diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.ts
index 52e15c5e..4eeb85aa 100644
--- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.ts
+++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/components/toolbar/toolbar.component.ts
@@ -651,16 +651,16 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
/**
* @ignore
*/
- // toggleCaptions() {
- // if (this.openviduService.isOpenViduPro()) {
- // this.layoutService.toggleCaptions();
- // } else {
- // this.actionService.openProFeatureDialog(
- // this.translateService.translate('PANEL.SETTINGS.CAPTIONS'),
- // this.translateService.translate('PANEL.PRO_FEATURE')
- // );
- // }
- // }
+ onCaptionsToggle() {
+ // if (this.openviduService.isOpenViduPro()) {
+ // this.layoutService.toggleCaptions();
+ // } else {
+ // this.actionService.openProFeatureDialog(
+ // this.translateService.translate('PANEL.SETTINGS.CAPTIONS'),
+ // this.translateService.translate('PANEL.PRO_FEATURE')
+ // );
+ // }
+ }
/**
* @ignore
diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/openvidu-components-angular-ui.module.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/openvidu-components-angular-ui.module.ts
index 97b4e01a..6a391d56 100644
--- a/openvidu-components-angular/projects/openvidu-components-angular/src/lib/openvidu-components-angular-ui.module.ts
+++ b/openvidu-components-angular/projects/openvidu-components-angular/src/lib/openvidu-components-angular-ui.module.ts
@@ -11,6 +11,7 @@ import { ChatPanelComponent } from './components/panel/chat-panel/chat-panel.com
import { SessionComponent } from './components/session/session.component';
import { StreamComponent } from './components/stream/stream.component';
import { ToolbarComponent } from './components/toolbar/toolbar.component';
+import { ToolbarMediaButtonsComponent } from './components/toolbar/toolbar-media-buttons/toolbar-media-buttons.component';
import { MediaElementComponent } from './components/media-element/media-element.component';
import { LinkifyPipe } from './pipes/linkify.pipe';
@@ -76,7 +77,8 @@ const privateComponents = [
VideoDevicesComponent,
AudioDevicesComponent,
ParticipantNameInputComponent,
- LangSelectorComponent
+ LangSelectorComponent,
+ ToolbarMediaButtonsComponent
];
@NgModule({
diff --git a/openvidu-components-angular/projects/openvidu-components-angular/src/public-api.ts b/openvidu-components-angular/projects/openvidu-components-angular/src/public-api.ts
index 217d849c..3a87cb87 100644
--- a/openvidu-components-angular/projects/openvidu-components-angular/src/public-api.ts
+++ b/openvidu-components-angular/projects/openvidu-components-angular/src/public-api.ts
@@ -15,6 +15,7 @@ export * from './lib/components/panel/participants-panel/participant-panel-item/
export * from './lib/components/panel/participants-panel/participants-panel/participants-panel.component';
export * from './lib/components/stream/stream.component';
export * from './lib/components/toolbar/toolbar.component';
+export * from './lib/components/toolbar/toolbar-media-buttons/toolbar-media-buttons.component';
export * from './lib/components/videoconference/videoconference.component';
export * from './lib/config/openvidu-components-angular.config';
// Directives