-
-
+
+
-
+
-
+
sensors
LIVE
- | {{ streamingTime | date : 'H:mm:ss' }}
+ | {{ broadcastingTime | date : 'H:mm:ss' }}
@@ -122,25 +122,25 @@
-
+
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.ts
index 9ad282c3..ea59f4d5 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/toolbar/toolbar.component.ts
@@ -24,13 +24,14 @@ import {
ToolbarAdditionalButtonsDirective,
ToolbarAdditionalPanelButtonsDirective
} from '../../directives/template/openvidu-angular.directive';
+import { BroadcastingStatus } from '../../models/broadcasting.model';
import { ChatMessage } from '../../models/chat.model';
import { ILogger } from '../../models/logger.model';
import { PanelEvent, PanelType } from '../../models/panel.model';
import { OpenViduRole, ParticipantAbstractModel } from '../../models/participant.model';
import { RecordingInfo, RecordingStatus } from '../../models/recording.model';
-import { StreamingStatus } from '../../models/streaming.model';
import { ActionService } from '../../services/action/action.service';
+import { BroadcastingService } from '../../services/broadcasting/broadcasting.service';
import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
import { DeviceService } from '../../services/device/device.service';
import { LayoutService } from '../../services/layout/layout.service';
@@ -40,7 +41,6 @@ import { ParticipantService } from '../../services/participant/participant.servi
import { PlatformService } from '../../services/platform/platform.service';
import { RecordingService } from '../../services/recording/recording.service';
import { StorageService } from '../../services/storage/storage.service';
-import { StreamingService } from '../../services/streaming/streaming.service';
import { TranslateService } from '../../services/translate/translate.service';
/**
@@ -185,9 +185,9 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
@Output() onStartRecordingClicked: EventEmitter
= new EventEmitter();
/**
- * Provides event notifications that fire when start streaming button has been clicked.
+ * Provides event notifications that fire when start broadcasting button has been clicked.
*/
- @Output() onStopStreamingClicked: EventEmitter = new EventEmitter();
+ @Output() onStopBroadcastingClicked: EventEmitter = new EventEmitter();
/**
* Provides event notifications that fire when stop recording button has been clicked.
@@ -283,7 +283,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
/**
* @ignore
*/
- showStreamingButton: boolean = true;
+ showBroadcastingButton: boolean = true;
/**
* @ignore
@@ -340,7 +340,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
/**
* @ignore
*/
- streamingStatus: StreamingStatus = StreamingStatus.STOPPED;
+ broadcastingStatus: BroadcastingStatus = BroadcastingStatus.STOPPED;
/**
* @ignore
*/
@@ -348,7 +348,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
/**
* @ignore
*/
- _streamingStatus = StreamingStatus;
+ _broadcastingStatus = BroadcastingStatus;
/**
* @ignore
@@ -357,7 +357,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
/**
* @ignore
*/
- streamingTime: Date;
+ broadcastingTime: Date;
/**
* @ignore
@@ -379,9 +379,9 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
private backgroundEffectsButtonSub: Subscription;
private leaveButtonSub: Subscription;
private recordingButtonSub: Subscription;
- private streamingButtonSub: Subscription;
+ private broadcastingButtonSub: Subscription;
private recordingSubscription: Subscription;
- private streamingSubscription: Subscription;
+ private broadcastingSubscription: Subscription;
private activitiesPanelButtonSub: Subscription;
private participantsPanelButtonSub: Subscription;
private chatPanelButtonSub: Subscription;
@@ -409,7 +409,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
private libService: OpenViduAngularConfigService,
private platformService: PlatformService,
private recordingService: RecordingService,
- private streamingService: StreamingService,
+ private broadcastingService: BroadcastingService,
private translateService: TranslateService,
private storageSrv: StorageService
) {
@@ -452,7 +452,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
this.subscribeToMenuToggling();
this.subscribeToChatMessages();
this.subscribeToRecordingStatus();
- this.subscribeToStreamingStatus();
+ this.subscribeToBroadcastingStatus();
this.subscribeToScreenSize();
this.subscribeToCaptionsToggling();
}
@@ -473,7 +473,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
if (this.backgroundEffectsButtonSub) this.backgroundEffectsButtonSub.unsubscribe();
if (this.leaveButtonSub) this.leaveButtonSub.unsubscribe();
if (this.recordingButtonSub) this.recordingButtonSub.unsubscribe();
- if (this.streamingButtonSub) this.streamingButtonSub.unsubscribe();
+ if (this.broadcastingButtonSub) this.broadcastingButtonSub.unsubscribe();
if (this.participantsPanelButtonSub) this.participantsPanelButtonSub.unsubscribe();
if (this.chatPanelButtonSub) this.chatPanelButtonSub.unsubscribe();
if (this.displayLogoSub) this.displayLogoSub.unsubscribe();
@@ -481,7 +481,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
if (this.minimalSub) this.minimalSub.unsubscribe();
if (this.activitiesPanelButtonSub) this.activitiesPanelButtonSub.unsubscribe();
if (this.recordingSubscription) this.recordingSubscription.unsubscribe();
- if (this.streamingSubscription) this.streamingSubscription.unsubscribe();
+ if (this.broadcastingSubscription) this.broadcastingSubscription.unsubscribe();
if (this.screenSizeSub) this.screenSizeSub.unsubscribe();
if (this.settingsButtonSub) this.settingsButtonSub.unsubscribe();
if (this.captionsSubs) this.captionsSubs.unsubscribe();
@@ -571,14 +571,14 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
/**
* @ignore
*/
- toggleStreaming() {
- if (this.streamingStatus === StreamingStatus.STARTED) {
- this.log.d('Stopping streaming');
- this.onStopStreamingClicked.emit();
- this.streamingService.updateStatus(StreamingStatus.STOPPING);
- } else if (this.streamingStatus === StreamingStatus.STOPPED) {
+ toggleBroadcasting() {
+ if (this.broadcastingStatus === BroadcastingStatus.STARTED) {
+ this.log.d('Stopping broadcasting');
+ this.onStopBroadcastingClicked.emit();
+ this.broadcastingService.updateStatus(BroadcastingStatus.STOPPING);
+ } else if (this.broadcastingStatus === BroadcastingStatus.STOPPED) {
if (this.showActivitiesPanelButton && !this.isActivitiesOpened) {
- this.toggleActivitiesPanel('streaming');
+ this.toggleActivitiesPanel('broadcasting');
}
}
}
@@ -706,14 +706,14 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
});
}
- private subscribeToStreamingStatus() {
- this.streamingSubscription = this.streamingService.streamingStatusObs
+ private subscribeToBroadcastingStatus() {
+ this.broadcastingSubscription = this.broadcastingService.broadcastingStatusObs
.pipe(skip(1))
- .subscribe((ev: { status: StreamingStatus, time?: Date } | undefined) => {
+ .subscribe((ev: { status: BroadcastingStatus, time?: Date } | undefined) => {
if (!!ev) {
- this.streamingStatus = ev.status;
+ this.broadcastingStatus = ev.status;
if (ev.time) {
- this.streamingTime = ev.time;
+ this.broadcastingTime = ev.time;
}
this.cd.markForCheck();
}
@@ -745,8 +745,8 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
this.cd.markForCheck();
});
- this.streamingButtonSub = this.libService.streamingButtonObs.subscribe((value: boolean) => {
- this.showStreamingButton = value;
+ this.broadcastingButtonSub = this.libService.broadcastingButtonObs.subscribe((value: boolean) => {
+ this.showBroadcastingButton = value;
this.checkDisplayMoreOptions();
this.cd.markForCheck();
});
@@ -806,7 +806,7 @@ export class ToolbarComponent implements OnInit, OnDestroy, AfterViewInit {
this.showFullscreenButton ||
this.showBackgroundEffectsButton ||
this.showRecordingButton ||
- this.showStreamingButton ||
+ this.showBroadcastingButton ||
this.showSettingsButton;
}
}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html
index b2ca9917..ecfb68c6 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.html
@@ -50,7 +50,7 @@
(onActivitiesPanelButtonClicked)="onActivitiesPanelButtonClicked()"
(onStartRecordingClicked)="onStartRecordingClicked('toolbar')"
(onStopRecordingClicked)="onStopRecordingClicked('toolbar')"
- (onStopStreamingClicked)="onStopStreamingClicked('toolbar')"
+ (onStopBroadcastingClicked)="onStopBroadcastingClicked('toolbar')"
>
@@ -100,8 +100,8 @@
(onStartRecordingClicked)="onStartRecordingClicked('panel')"
(onStopRecordingClicked)="onStopRecordingClicked('panel')"
(onDeleteRecordingClicked)="onDeleteRecordingClicked($event)"
- (onStartStreamingClicked)="onStartStreamingClicked($event)"
- (onStopStreamingClicked)="onStopStreamingClicked('panel')"
+ (onStartBroadcastingClicked)="onStartBroadcastingClicked($event)"
+ (onStopBroadcastingClicked)="onStopBroadcastingClicked('panel')"
>
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts
index e5d1ab6d..4c49cea1 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/videoconference/videoconference.component.ts
@@ -384,19 +384,19 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
@Output() onActivitiesPanelPlayRecordingClicked: EventEmitter = new EventEmitter();
/**
- * Provides event notifications that fire when start streaming button is clicked from {@link ActivitiesPanelComponent}.
+ * Provides event notifications that fire when start broadcasting button is clicked from {@link ActivitiesPanelComponent}.
*/
- @Output() onActivitiesPanelStartStreamingClicked: EventEmitter = new EventEmitter();
+ @Output() onActivitiesPanelStartBroadcastingClicked: EventEmitter = new EventEmitter();
/**
- * Provides event notifications that fire when start streaming button is clicked from {@link ActivitiesPanelComponent}.
+ * Provides event notifications that fire when start broadcasting button is clicked from {@link ActivitiesPanelComponent}.
*/
- @Output() onActivitiesPanelStopStreamingClicked: EventEmitter = new EventEmitter();
+ @Output() onActivitiesPanelStopBroadcastingClicked: EventEmitter = new EventEmitter();
/**
- * Provides event notifications that fire when start streaming button is clicked from {@link ToolbarComponent}.
+ * Provides event notifications that fire when start broadcasting button is clicked from {@link ToolbarComponent}.
*/
- @Output() onToolbarStopStreamingClicked: EventEmitter = new EventEmitter();
+ @Output() onToolbarStopBroadcastingClicked: EventEmitter = new EventEmitter();
/**
* Provides event notifications that fire when OpenVidu Session is created.
@@ -695,22 +695,22 @@ export class VideoconferenceComponent implements OnInit, OnDestroy, AfterViewIni
/**
* @internal
*/
- onStartStreamingClicked(rtmpUrl: string) {
+ onStartBroadcastingClicked(broadcastUrl: string) {
// if (from === 'toolbar') {
// this.onToolbarStartRecordingClicked.emit();
// } else if (from === 'panel') {
- this.onActivitiesPanelStartStreamingClicked.emit(rtmpUrl);
+ this.onActivitiesPanelStartBroadcastingClicked.emit(broadcastUrl);
// }
}
/**
* @internal
*/
- onStopStreamingClicked(from: string) {
+ onStopBroadcastingClicked(from: string) {
if (from === 'toolbar') {
- this.onToolbarStopStreamingClicked.emit();
+ this.onToolbarStopBroadcastingClicked.emit();
} else if (from === 'panel') {
- this.onActivitiesPanelStopStreamingClicked.emit();
+ this.onActivitiesPanelStopBroadcastingClicked.emit();
}
}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/activities-panel.directive.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/activities-panel.directive.ts
index 8adfba84..052ef0c7 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/activities-panel.directive.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/activities-panel.directive.ts
@@ -52,51 +52,51 @@ export class ActivitiesPanelRecordingActivityDirective implements AfterViewInit,
}
/**
- * The **streamingActivity** directive allows show/hide the streaming activity in {@link ActivitiesPanelComponent}.
+ * The **broadcastingActivity** directive allows show/hide the broadcasting activity in {@link ActivitiesPanelComponent}.
*
* Default: `true`
*
* It can be used in the parent element {@link VideoconferenceComponent} specifying the name of the `activitiesPanel` component:
*
* @example
- *
+ *
*
* \
* And it also can be used in the {@link ActivitiesPanelComponent}.
* @example
- *
+ *
*/
@Directive({
- selector: 'ov-videoconference[activitiesPanelStreamingActivity], ov-activities-panel[streamingActivity]'
+ selector: 'ov-videoconference[activitiesPanelBroadcastingActivity], ov-activities-panel[broadcastingActivity]'
})
-export class ActivitiesPanelStreamingActivityDirective implements AfterViewInit, OnDestroy {
- @Input() set activitiesPanelStreamingActivity(value: boolean) {
- this.streamingActivityValue = value;
- this.update(this.streamingActivityValue);
+export class ActivitiesPanelBroadcastingActivityDirective implements AfterViewInit, OnDestroy {
+ @Input() set activitiesPanelBroadcastingActivity(value: boolean) {
+ this.broadcastingActivityValue = value;
+ this.update(this.broadcastingActivityValue);
}
- @Input() set streamingActivity(value: boolean) {
- this.streamingActivityValue = value;
- this.update(this.streamingActivityValue);
+ @Input() set broadcastingActivity(value: boolean) {
+ this.broadcastingActivityValue = value;
+ this.update(this.broadcastingActivityValue);
}
- streamingActivityValue: boolean = true;
+ broadcastingActivityValue: boolean = true;
constructor(public elementRef: ElementRef, private libService: OpenViduAngularConfigService) {}
ngAfterViewInit() {
- this.update(this.streamingActivityValue);
+ this.update(this.broadcastingActivityValue);
}
ngOnDestroy(): void {
this.clear();
}
clear() {
- this.streamingActivityValue = true;
+ this.broadcastingActivityValue = true;
this.update(true);
}
update(value: boolean) {
- if (this.libService.streamingActivity.getValue() !== value) {
- this.libService.streamingActivity.next(value);
+ if (this.libService.broadcastingActivity.getValue() !== value) {
+ this.libService.broadcastingActivity.next(value);
}
}
}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/api.directive.module.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/api.directive.module.ts
index 4a609c45..8464e385 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/api.directive.module.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/api.directive.module.ts
@@ -1,6 +1,7 @@
import { NgModule } from '@angular/core';
-import { ActivitiesPanelRecordingActivityDirective, ActivitiesPanelStreamingActivityDirective } from './activities-panel.directive';
+import { ActivitiesPanelBroadcastingActivityDirective, ActivitiesPanelRecordingActivityDirective } from './activities-panel.directive';
import { AdminLoginDirective, AdminRecordingsListDirective } from './admin.directive';
+import { BroadcastingActivityBroadcastingErrorDirective } from './broadcasting-activity.directive';
import { LogoDirective } from './internals.directive';
import { ParticipantPanelItemMuteButtonDirective } from './participant-panel-item.directive';
import { RecordingActivityRecordingErrorDirective, RecordingActivityRecordingsListDirective } from './recording-activity.directive';
@@ -9,11 +10,9 @@ import {
StreamDisplayParticipantNameDirective,
StreamSettingsButtonDirective
} from './stream.directive';
-import { StreamingActivityStreamingErrorDirective } from './streaming-activity.directive';
import {
ToolbarActivitiesPanelButtonDirective,
- ToolbarBackgroundEffectsButtonDirective,
- ToolbarCaptionsButtonDirective,
+ ToolbarBackgroundEffectsButtonDirective, ToolbarBroadcastingButtonDirective, ToolbarCaptionsButtonDirective,
ToolbarChatPanelButtonDirective,
ToolbarDisplayLogoDirective,
ToolbarDisplaySessionNameDirective,
@@ -22,8 +21,7 @@ import {
ToolbarParticipantsPanelButtonDirective,
ToolbarRecordingButtonDirective,
ToolbarScreenshareButtonDirective,
- ToolbarSettingsButtonDirective,
- ToolbarStreamingButtonDirective
+ ToolbarSettingsButtonDirective
} from './toolbar.directive';
import {
AudioMutedDirective,
@@ -51,7 +49,7 @@ import {
ToolbarCaptionsButtonDirective,
ToolbarLeaveButtonDirective,
ToolbarRecordingButtonDirective,
- ToolbarStreamingButtonDirective,
+ ToolbarBroadcastingButtonDirective,
ToolbarParticipantsPanelButtonDirective,
ToolbarChatPanelButtonDirective,
ToolbarActivitiesPanelButtonDirective,
@@ -65,10 +63,10 @@ import {
ParticipantPanelItemMuteButtonDirective,
ParticipantNameDirective,
ActivitiesPanelRecordingActivityDirective,
- ActivitiesPanelStreamingActivityDirective,
+ ActivitiesPanelBroadcastingActivityDirective,
RecordingActivityRecordingsListDirective,
RecordingActivityRecordingErrorDirective,
- StreamingActivityStreamingErrorDirective,
+ BroadcastingActivityBroadcastingErrorDirective,
AdminRecordingsListDirective,
AdminLoginDirective
],
@@ -86,7 +84,7 @@ import {
ToolbarCaptionsButtonDirective,
ToolbarLeaveButtonDirective,
ToolbarRecordingButtonDirective,
- ToolbarStreamingButtonDirective,
+ ToolbarBroadcastingButtonDirective,
ToolbarParticipantsPanelButtonDirective,
ToolbarChatPanelButtonDirective,
ToolbarActivitiesPanelButtonDirective,
@@ -100,10 +98,10 @@ import {
ParticipantPanelItemMuteButtonDirective,
ParticipantNameDirective,
ActivitiesPanelRecordingActivityDirective,
- ActivitiesPanelStreamingActivityDirective,
+ ActivitiesPanelBroadcastingActivityDirective,
RecordingActivityRecordingsListDirective,
RecordingActivityRecordingErrorDirective,
- StreamingActivityStreamingErrorDirective,
+ BroadcastingActivityBroadcastingErrorDirective,
AdminRecordingsListDirective,
AdminLoginDirective
]
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/broadcasting-activity.directive.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/broadcasting-activity.directive.ts
new file mode 100644
index 00000000..3c23f844
--- /dev/null
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/broadcasting-activity.directive.ts
@@ -0,0 +1,55 @@
+import { AfterViewInit, Directive, ElementRef, Input, OnDestroy } from '@angular/core';
+import { BroadcastingError } from '../../models/broadcasting.model';
+import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
+
+/**
+ * The **broadcastingError** directive allows to show any possible error with the broadcasting in the {@link BroadcastingActivityComponent}.
+ *
+ * Default: `undefined`
+ *
+ * Type: {@link BroadcastingError}
+ *
+ * It can be used in the parent element {@link VideoconferenceComponent} specifying the name of the `broadcastingActivity` component:
+ *
+ * @example
+ *
+ *
+ * \
+ * And it also can be used in the {@link BroadcastingActivityComponent}.
+ * @example
+ *
+ */
+@Directive({
+ selector: 'ov-videoconference[broadcastingActivityBroadcastingError], ov-broadcasting-activity[broadcastingError]'
+})
+export class BroadcastingActivityBroadcastingErrorDirective implements AfterViewInit, OnDestroy {
+ @Input() set broadcastingActivityBroadcastingError(value: BroadcastingError) {
+ this.broadcastingErrorValue = value;
+ this.update(this.broadcastingErrorValue);
+ }
+ @Input() set broadcastingError(value: BroadcastingError) {
+ this.broadcastingErrorValue = value;
+ this.update(this.broadcastingErrorValue);
+ }
+
+ broadcastingErrorValue: BroadcastingError | undefined = undefined;
+
+ constructor(public elementRef: ElementRef, private libService: OpenViduAngularConfigService) {}
+
+ ngAfterViewInit() {
+ this.update(this.broadcastingErrorValue);
+ }
+ ngOnDestroy(): void {
+ this.clear();
+ }
+ clear() {
+ this.broadcastingErrorValue = undefined;
+ this.update(undefined);
+ }
+
+ update(value: BroadcastingError | undefined) {
+ if (this.libService.broadcastingError.getValue() !== value) {
+ this.libService.broadcastingError.next(value);
+ }
+ }
+}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/streaming-activity.directive.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/streaming-activity.directive.ts
deleted file mode 100644
index de16d2bf..00000000
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/streaming-activity.directive.ts
+++ /dev/null
@@ -1,55 +0,0 @@
-import { AfterViewInit, Directive, ElementRef, Input, OnDestroy } from '@angular/core';
-import { StreamingError } from '../../models/streaming.model';
-import { OpenViduAngularConfigService } from '../../services/config/openvidu-angular.config.service';
-
-/**
- * The **streamingError** directive allows to show any possible error with the streaming in the {@link StreamingActivityComponent}.
- *
- * Default: `undefined`
- *
- * Type: {@link StreamingError}
- *
- * It can be used in the parent element {@link VideoconferenceComponent} specifying the name of the `streamingActivity` component:
- *
- * @example
- *
- *
- * \
- * And it also can be used in the {@link StreamingActivityComponent}.
- * @example
- *
- */
-@Directive({
- selector: 'ov-videoconference[streamingActivityStreamingError], ov-streaming-activity[streamingError]'
-})
-export class StreamingActivityStreamingErrorDirective implements AfterViewInit, OnDestroy {
- @Input() set streamingActivityStreamingError(value: StreamingError) {
- this.streamingErrorValue = value;
- this.update(this.streamingErrorValue);
- }
- @Input() set streamingError(value: StreamingError) {
- this.streamingErrorValue = value;
- this.update(this.streamingErrorValue);
- }
-
- streamingErrorValue: StreamingError | undefined = undefined;
-
- constructor(public elementRef: ElementRef, private libService: OpenViduAngularConfigService) {}
-
- ngAfterViewInit() {
- this.update(this.streamingErrorValue);
- }
- ngOnDestroy(): void {
- this.clear();
- }
- clear() {
- this.streamingErrorValue = undefined;
- this.update(undefined);
- }
-
- update(value: StreamingError | undefined) {
- if (this.libService.streamingError.getValue() !== value) {
- this.libService.streamingError.next(value);
- }
- }
-}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/toolbar.directive.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/toolbar.directive.ts
index 83a7e312..845ae6a5 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/toolbar.directive.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/directives/api/toolbar.directive.ts
@@ -125,40 +125,40 @@ export class ToolbarRecordingButtonDirective implements AfterViewInit, OnDestroy
}
/**
- * The **streamingButton** directive allows show/hide the start/stop streaming toolbar button.
+ * The **broadcastingButton** directive allows show/hide the start/stop broadcasting toolbar button.
*
* Default: `true`
*
* It can be used in the parent element {@link VideoconferenceComponent} specifying the name of the `toolbar` component:
*
* @example
- *
+ *
*
* \
* And it also can be used in the {@link ToolbarComponent}.
* @example
- *
+ *
*
*/
@Directive({
- selector: 'ov-videoconference[toolbarStreamingButton], ov-toolbar[streamingButton]'
+ selector: 'ov-videoconference[toolbarBroadcastingButton], ov-toolbar[broadcastingButton]'
})
-export class ToolbarStreamingButtonDirective implements AfterViewInit, OnDestroy {
+export class ToolbarBroadcastingButtonDirective implements AfterViewInit, OnDestroy {
/**
* @ignore
*/
- @Input() set toolbarStreamingButton(value: boolean) {
- this.streamingValue = value;
- this.update(this.streamingValue);
+ @Input() set toolbarBroadcastingButton(value: boolean) {
+ this.broadcastingValue = value;
+ this.update(this.broadcastingValue);
}
/**
* @ignore
*/
- @Input() set streamingButton(value: boolean) {
- this.streamingValue = value;
- this.update(this.streamingValue);
+ @Input() set broadcastingButton(value: boolean) {
+ this.broadcastingValue = value;
+ this.update(this.broadcastingValue);
}
- private streamingValue: boolean = true;
+ private broadcastingValue: boolean = true;
/**
* @ignore
@@ -166,20 +166,20 @@ export class ToolbarStreamingButtonDirective implements AfterViewInit, OnDestroy
constructor(public elementRef: ElementRef, private libService: OpenViduAngularConfigService) {}
ngAfterViewInit() {
- this.update(this.streamingValue);
+ this.update(this.broadcastingValue);
}
ngOnDestroy(): void {
this.clear();
}
private clear() {
- this.streamingValue = true;
+ this.broadcastingValue = true;
this.update(true);
}
private update(value: boolean) {
- if (this.libService.streamingButton.getValue() !== value) {
- this.libService.streamingButton.next(value);
+ if (this.libService.broadcastingButton.getValue() !== value) {
+ this.libService.broadcastingButton.next(value);
}
}
}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/models/broadcasting.model.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/models/broadcasting.model.ts
new file mode 100644
index 00000000..cbc438f2
--- /dev/null
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/models/broadcasting.model.ts
@@ -0,0 +1,13 @@
+export enum BroadcastingStatus {
+ STARTING = 'starting',
+ STARTED = 'started',
+ STOPPING = 'stopping',
+ STOPPED = 'stopped',
+ FAILED = 'failed'
+}
+
+export interface BroadcastingError {
+ message: string;
+ // If broadcasting feature is available or not
+ broadcastAvailable: boolean;
+}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/models/streaming.model.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/models/streaming.model.ts
deleted file mode 100644
index d961418b..00000000
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/models/streaming.model.ts
+++ /dev/null
@@ -1,13 +0,0 @@
-export enum StreamingStatus {
- STARTING = 'starting',
- STARTED = 'started',
- STOPPING = 'stopping',
- STOPPED = 'stopped',
- FAILED = 'failed'
-}
-
-export interface StreamingError {
- message: string;
- // If streaming service is available or not
- rtmpAvailable: boolean;
-}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts
index 53abfb1c..c05c77cf 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts
@@ -49,8 +49,8 @@ import { AvatarProfileComponent } from './components/avatar-profile/avatar-profi
import { CaptionsComponent } from './components/captions/captions.component';
import { ProFeatureDialogTemplateComponent } from './components/dialogs/pro-feature-dialog.component';
import { ActivitiesPanelComponent } from './components/panel/activities-panel/activities-panel.component';
+import { BroadcastingActivityComponent } from './components/panel/activities-panel/broadcasting-activity/broadcasting-activity.component';
import { RecordingActivityComponent } from './components/panel/activities-panel/recording-activity/recording-activity.component';
-import { StreamingActivityComponent } from './components/panel/activities-panel/streaming-activity/streaming-activity.component';
import { BackgroundEffectsPanelComponent } from './components/panel/background-effects-panel/background-effects-panel.component';
import { SettingsPanelComponent } from './components/panel/settings-panel/settings-panel.component';
import { AudioDevicesComponent } from './components/settings/audio-devices/audio-devices.component';
@@ -71,7 +71,7 @@ const publicComponents = [
PanelComponent,
ActivitiesPanelComponent,
RecordingActivityComponent,
- StreamingActivityComponent,
+ BroadcastingActivityComponent,
ParticipantsPanelComponent,
ParticipantPanelItemComponent,
ChatPanelComponent,
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/streaming/streaming.service.spec.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/broadcasting/broadcasting.service.spec.ts
similarity index 51%
rename from openvidu-components-angular/projects/openvidu-angular/src/lib/services/streaming/streaming.service.spec.ts
rename to openvidu-components-angular/projects/openvidu-angular/src/lib/services/broadcasting/broadcasting.service.spec.ts
index f8349f8e..f0261e7c 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/streaming/streaming.service.spec.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/broadcasting/broadcasting.service.spec.ts
@@ -1,13 +1,13 @@
import { TestBed } from '@angular/core/testing';
-import { StreamingService } from './streaming.service';
+import { BroadcastingService } from './broadcasting.service';
-describe('StreamingService', () => {
- let service: StreamingService;
+describe('BroadcastingService', () => {
+ let service: BroadcastingService;
beforeEach(() => {
TestBed.configureTestingModule({});
- service = TestBed.inject(StreamingService);
+ service = TestBed.inject(BroadcastingService);
});
it('should be created', () => {
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/broadcasting/broadcasting.service.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/broadcasting/broadcasting.service.ts
new file mode 100644
index 00000000..419df1d0
--- /dev/null
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/broadcasting/broadcasting.service.ts
@@ -0,0 +1,49 @@
+import { Injectable } from '@angular/core';
+import { BehaviorSubject, Observable } from 'rxjs';
+import { BroadcastingStatus } from '../../models/broadcasting.model';
+
+@Injectable({
+ providedIn: 'root'
+})
+export class BroadcastingService {
+ /**
+ * Broadcasting status Observable which pushes the broadcasting state in every update.
+ */
+ broadcastingStatusObs: Observable<{ status: BroadcastingStatus; time?: Date } | undefined>;
+
+ private broadcastingTime: Date | undefined;
+ private broadcastingTimeInterval: NodeJS.Timer;
+ private broadcastingStatus = >new BehaviorSubject(undefined);
+
+ constructor() {
+ this.broadcastingStatusObs = this.broadcastingStatus.asObservable();
+ }
+
+ /**
+ * @internal
+ * @param status
+ */
+ updateStatus(status: BroadcastingStatus) {
+ if (status === BroadcastingStatus.STARTED) {
+ this.startBroadcastingTime();
+ } else {
+ this.stopBroadcastingTime();
+ }
+ this.broadcastingStatus.next({ status, time: this.broadcastingTime });
+ }
+
+ private startBroadcastingTime() {
+ this.broadcastingTime = new Date();
+ this.broadcastingTime.setHours(0, 0, 0, 0);
+ this.broadcastingTimeInterval = setInterval(() => {
+ this.broadcastingTime?.setSeconds(this.broadcastingTime.getSeconds() + 1);
+ this.broadcastingTime = new Date(this.broadcastingTime.getTime());
+ this.broadcastingStatus.next({ status: this.broadcastingStatus.getValue()?.status, time: this.broadcastingTime });
+ }, 1000);
+ }
+
+ private stopBroadcastingTime() {
+ clearInterval(this.broadcastingTimeInterval);
+ this.broadcastingTime = undefined;
+ }
+}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/config/openvidu-angular.config.service.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/config/openvidu-angular.config.service.ts
index 41ea5729..bbeadc5a 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/config/openvidu-angular.config.service.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/config/openvidu-angular.config.service.ts
@@ -1,8 +1,8 @@
import { Inject, Injectable } from '@angular/core';
import { BehaviorSubject, Observable } from 'rxjs';
import { OpenViduAngularConfig, ParticipantFactoryFunction } from '../../config/openvidu-angular.config';
+import { BroadcastingError } from '../../models/broadcasting.model';
import { RecordingInfo } from '../../models/recording.model';
-import { StreamingError } from '../../models/streaming.model';
// import { version } from '../../../../package.json';
@@ -66,16 +66,16 @@ export class OpenViduAngularConfigService {
recordingsListObs: Observable;
recordingButton = >new BehaviorSubject(true);
recordingButtonObs: Observable;
- streamingButton = >new BehaviorSubject(true);
- streamingButtonObs: Observable;
+ broadcastingButton = >new BehaviorSubject(true);
+ broadcastingButtonObs: Observable;
recordingActivity = >new BehaviorSubject(true);
recordingActivityObs: Observable;
- streamingActivity = >new BehaviorSubject(true);
- streamingActivityObs: Observable;
+ broadcastingActivity = >new BehaviorSubject(true);
+ broadcastingActivityObs: Observable;
recordingError = >new BehaviorSubject(null);
recordingErrorObs: Observable;
- streamingErrorObs: Observable;
- streamingError = >new BehaviorSubject(undefined);
+ broadcastingErrorObs: Observable;
+ broadcastingError = >new BehaviorSubject(undefined);
// Admin
adminRecordingsList: BehaviorSubject = new BehaviorSubject([]);
adminRecordingsListObs: Observable;
@@ -102,7 +102,7 @@ export class OpenViduAngularConfigService {
this.displaySessionNameObs = this.displaySessionName.asObservable();
this.displayLogoObs = this.displayLogo.asObservable();
this.recordingButtonObs = this.recordingButton.asObservable();
- this.streamingButtonObs = this.streamingButton.asObservable();
+ this.broadcastingButtonObs = this.broadcastingButton.asObservable();
this.toolbarSettingsButtonObs = this.toolbarSettingsButton.asObservable();
this.captionsButtonObs = this.captionsButton.asObservable();
//Stream observables
@@ -115,9 +115,9 @@ export class OpenViduAngularConfigService {
this.recordingActivityObs = this.recordingActivity.asObservable();
this.recordingsListObs = this.recordingsList.asObservable();
this.recordingErrorObs = this.recordingError.asObservable();
- // Streaming activity
- this.streamingActivityObs = this.streamingActivity.asObservable();
- this.streamingErrorObs = this.streamingError.asObservable();
+ // Broadcasting activity
+ this.broadcastingActivityObs = this.broadcastingActivity.asObservable();
+ this.broadcastingErrorObs = this.broadcastingError.asObservable();
// Admin dashboard
this.adminRecordingsListObs = this.adminRecordingsList.asObservable();
this.adminLoginErrorObs = this.adminLoginError.asObservable();
@@ -142,7 +142,7 @@ export class OpenViduAngularConfigService {
return this.recordingButton.getValue() && this.recordingActivity.getValue();
}
- isStreamingEnabled(): boolean {
- return this.streamingButton.getValue() && this.streamingActivity.getValue();
+ isBroadcastingEnabled(): boolean {
+ return this.broadcastingButton.getValue() && this.broadcastingActivity.getValue();
}
}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/streaming/streaming.service.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/services/streaming/streaming.service.ts
deleted file mode 100644
index 3a126945..00000000
--- a/openvidu-components-angular/projects/openvidu-angular/src/lib/services/streaming/streaming.service.ts
+++ /dev/null
@@ -1,49 +0,0 @@
-import { Injectable } from '@angular/core';
-import { BehaviorSubject, Observable } from 'rxjs';
-import { StreamingStatus } from '../../models/streaming.model';
-
-@Injectable({
- providedIn: 'root'
-})
-export class StreamingService {
- /**
- * Streaming status Observable which pushes the streaming state in every update.
- */
- streamingStatusObs: Observable<{ status: StreamingStatus; time?: Date } | undefined>;
-
- private streamingTime: Date | undefined;
- private streamingTimeInterval: NodeJS.Timer;
- private streamingStatus = >new BehaviorSubject(undefined);
-
- constructor() {
- this.streamingStatusObs = this.streamingStatus.asObservable();
- }
-
- /**
- * @internal
- * @param status
- */
- updateStatus(status: StreamingStatus) {
- if (status === StreamingStatus.STARTED) {
- this.startStreamingTime();
- } else {
- this.stopStreamingTime();
- }
- this.streamingStatus.next({ status, time: this.streamingTime });
- }
-
- private startStreamingTime() {
- this.streamingTime = new Date();
- this.streamingTime.setHours(0, 0, 0, 0);
- this.streamingTimeInterval = setInterval(() => {
- this.streamingTime?.setSeconds(this.streamingTime.getSeconds() + 1);
- this.streamingTime = new Date(this.streamingTime.getTime());
- this.streamingStatus.next({ status: this.streamingStatus.getValue()?.status, time: this.streamingTime });
- }, 1000);
- }
-
- private stopStreamingTime() {
- clearInterval(this.streamingTimeInterval);
- this.streamingTime = undefined;
- }
-}
diff --git a/openvidu-components-angular/projects/openvidu-angular/src/public-api.ts b/openvidu-components-angular/projects/openvidu-angular/src/public-api.ts
index 93971506..07da6928 100644
--- a/openvidu-components-angular/projects/openvidu-angular/src/public-api.ts
+++ b/openvidu-components-angular/projects/openvidu-angular/src/public-api.ts
@@ -7,8 +7,8 @@ export * from './lib/admin/dashboard/dashboard.component';
export * from './lib/admin/login/login.component';
export * from './lib/components/layout/layout.component';
export * from './lib/components/panel/activities-panel/activities-panel.component';
+export * from './lib/components/panel/activities-panel/broadcasting-activity/broadcasting-activity.component';
export * from './lib/components/panel/activities-panel/recording-activity/recording-activity.component';
-export * from './lib/components/panel/activities-panel/streaming-activity/streaming-activity.component';
export * from './lib/components/panel/chat-panel/chat-panel.component';
export * from './lib/components/panel/panel.component';
export * from './lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component';
@@ -21,21 +21,21 @@ export * from './lib/config/openvidu-angular.config';
export * from './lib/directives/api/activities-panel.directive';
export * from './lib/directives/api/admin.directive';
export * from './lib/directives/api/api.directive.module';
+export * from './lib/directives/api/broadcasting-activity.directive';
export * from './lib/directives/api/internals.directive';
export * from './lib/directives/api/participant-panel-item.directive';
export * from './lib/directives/api/recording-activity.directive';
export * from './lib/directives/api/stream.directive';
-export * from './lib/directives/api/streaming-activity.directive';
export * from './lib/directives/api/toolbar.directive';
export * from './lib/directives/api/videoconference.directive';
export * from './lib/directives/template/openvidu-angular.directive';
export * from './lib/directives/template/openvidu-angular.directive.module';
+export * from './lib/models/broadcasting.model';
// Models
export * from './lib/models/panel.model';
export * from './lib/models/participant.model';
export * from './lib/models/recording.model';
export * from './lib/models/signal.model';
-export * from './lib/models/streaming.model';
export * from './lib/models/token.model';
export * from './lib/models/video-type.model';
export * from './lib/openvidu-angular.module';
@@ -44,11 +44,11 @@ export * from './lib/pipes/participant.pipe';
export * from './lib/pipes/recording.pipe';
// Services
export * from './lib/services/action/action.service';
+export * from './lib/services/broadcasting/broadcasting.service';
export * from './lib/services/chat/chat.service';
export * from './lib/services/layout/layout.service';
export * from './lib/services/openvidu/openvidu.service';
export * from './lib/services/panel/panel.service';
export * from './lib/services/participant/participant.service';
export * from './lib/services/recording/recording.service';
-export * from './lib/services/streaming/streaming.service';
diff --git a/openvidu-components-angular/src/app/openvidu-call/call.component.html b/openvidu-components-angular/src/app/openvidu-call/call.component.html
index cc9f31b7..a6008065 100644
--- a/openvidu-components-angular/src/app/openvidu-call/call.component.html
+++ b/openvidu-components-angular/src/app/openvidu-call/call.component.html
@@ -12,7 +12,7 @@
[toolbarFullscreenButton]="true"
[toolbarCaptionsButton]="true"
[toolbarRecordingButton]="true"
- [toolbarStreamingButton]="true"
+ [toolbarBroadcastingButton]="true"
[toolbarBackgroundEffectsButton]="true"
[toolbarLeaveButton]="true"
[toolbarChatPanelButton]="true"
@@ -26,7 +26,7 @@
[activitiesPanelRecordingActivity]="true"
[recordingActivityRecordingsList]="recordingList"
[recordingActivityRecordingError]="recordingError"
- [streamingActivityStreamingError]="streamingError"
+ [broadcastingActivityBroadcastingError]="broadcastingError"
[toolbarSettingsButton]="true"
(onJoinButtonClicked)="onJoinClicked()"
(onToolbarLeaveButtonClicked)="onToolbarLeaveButtonClicked()"
@@ -41,9 +41,9 @@
(onActivitiesPanelStartRecordingClicked)="onStartRecordingClicked()"
(onActivitiesPanelStopRecordingClicked)="onStopRecordingClicked()"
(onActivitiesPanelDeleteRecordingClicked)="onDeleteRecordingClicked($event)"
- (onActivitiesPanelStartStreamingClicked)="onStartStreamingClicked($event)"
- (onActivitiesPanelStopStreamingClicked)="onStopStreamingClicked()"
- (onToolbarStopStreamingClicked)="onStopStreamingClicked()"
+ (onActivitiesPanelStartBroadcastingClicked)="onStartBroadcastingClicked($event)"
+ (onActivitiesPanelStopBroadcastingClicked)="onStopBroadcastingClicked()"
+ (onToolbarStopBroadcastingClicked)="onStopBroadcastingClicked()"
(onNodeCrashed)="onNodeCrashed()"
>
diff --git a/openvidu-components-angular/src/app/openvidu-call/call.component.ts b/openvidu-components-angular/src/app/openvidu-call/call.component.ts
index 611af7c9..534ea4b1 100644
--- a/openvidu-components-angular/src/app/openvidu-call/call.component.ts
+++ b/openvidu-components-angular/src/app/openvidu-call/call.component.ts
@@ -16,7 +16,7 @@ export class CallComponent implements OnInit {
isSessionAlive: boolean = false;
recordingList: RecordingInfo[] = [];
recordingError: any;
- streamingError: any;
+ broadcastingError: any;
constructor(private restService: RestService) {}
@@ -81,27 +81,27 @@ export class CallComponent implements OnInit {
console.log('TOOLBAR LEAVE CLICKED');
}
- async onStartStreamingClicked(rtmpUrl: string) {
- console.log('START STREAMING', rtmpUrl);
+ async onStartBroadcastingClicked(broadcastUrl: string) {
+ console.log('START STREAMING', broadcastUrl);
try {
- this.streamingError = null;
- const resp = await this.restService.startStreaming(rtmpUrl);
- console.log('Streaming response ', resp);
+ this.broadcastingError = null;
+ const resp = await this.restService.startBroadcasting(broadcastUrl);
+ console.log('Broadcasting response ', resp);
} catch (error) {
console.error(error);
- this.streamingError = error.error;
+ this.broadcastingError = error.error;
}
}
- async onStopStreamingClicked() {
+ async onStopBroadcastingClicked() {
console.log('STOP STREAMING');
try {
- this.streamingError = null;
- const resp = await this.restService.stopStreaming();
- console.log('Streaming response ', resp);
+ this.broadcastingError = null;
+ const resp = await this.restService.stopBroadcasting();
+ console.log('Broadcasting response ', resp);
} catch (error) {
console.error(error);
- this.streamingError = error.message || error;
+ this.broadcastingError = error.message || error;
}
}
diff --git a/openvidu-components-angular/src/app/services/rest.service.ts b/openvidu-components-angular/src/app/services/rest.service.ts
index 447bf189..0f0b7a72 100644
--- a/openvidu-components-angular/src/app/services/rest.service.ts
+++ b/openvidu-components-angular/src/app/services/rest.service.ts
@@ -41,7 +41,7 @@ export class RestService {
}
}
- async startStreaming(broadcastUrl: string) {
+ async startBroadcasting(broadcastUrl: string) {
try {
const options = {
headers: new HttpHeaders({
@@ -68,7 +68,7 @@ export class RestService {
}
}
- async stopStreaming() {
+ async stopBroadcasting() {
try {
return lastValueFrom(this.http.delete(`${this.baseHref}broadcasts/stop`));
} catch (error) {
diff --git a/openvidu-components-angular/src/app/testing-app/testing.component.html b/openvidu-components-angular/src/app/testing-app/testing.component.html
index cc8f77d3..8ba13c3d 100644
--- a/openvidu-components-angular/src/app/testing-app/testing.component.html
+++ b/openvidu-components-angular/src/app/testing-app/testing.component.html
@@ -84,7 +84,7 @@
[chatPanelButton]="chatPanelBtn"
[displaySessionName]="displaySessionId"
[displayLogo]="displayLogo"
- [streamingButton]="streamingBtn"
+ [broadcastingButton]="broadcastingBtn"
(onLeaveButtonClicked)="appendElement('onLeaveButtonClicked')"
(onCameraButtonClicked)="appendElement('onCameraButtonClicked')"
(onMicrophoneButtonClicked)="appendElement('onMicrophoneButtonClicked')"
@@ -205,11 +205,11 @@
-
+
diff --git a/openvidu-components-angular/src/app/testing-app/testing.component.ts b/openvidu-components-angular/src/app/testing-app/testing.component.ts
index b08c93f9..9c4a7b41 100644
--- a/openvidu-components-angular/src/app/testing-app/testing.component.ts
+++ b/openvidu-components-angular/src/app/testing-app/testing.component.ts
@@ -2,7 +2,7 @@ import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
-import { PanelService, StreamingError } from 'openvidu-angular';
+import { BroadcastingError, PanelService } from 'openvidu-angular';
import { Subscription, throwError as observableThrowError } from 'rxjs';
import { catchError } from 'rxjs/operators';
@@ -39,7 +39,7 @@ export enum AttributeDirective {
// AUDIO_MUTED = 'audioMuted',
TOOLBAR_SCREENSHARE = 'screenshareButton',
TOOLBAR_FULLSCREEN = 'fullscreenButton',
- TOOLBAR_STREAMING = 'streamingButton',
+ TOOLBAR_BROADCASTING = 'broadcastingButton',
TOOLBAR_LEAVE = 'leaveButton',
TOOLBAR_PARTICIPANTS_PANEL = 'participantsPanelButton',
TOOLBAR_ACTIVITIES_PANEL = 'activitiesPanelButton',
@@ -51,8 +51,8 @@ export enum AttributeDirective {
STREAM_SETTINGS = 'settingsButton',
PARTICIPANT_ITEM_MUTE = 'muteButton',
ACTIVITIES_PANEL_RECORDING_ACTIVITY = 'recordingActivity',
- ACTIVITIES_PANEL_STREAMING_ACTIVITY = 'streamingActivity',
- ACTIVITIES_PANEL_STREAMING_ERROR = 'streamingError'
+ ACTIVITIES_PANEL_BROADCASTING_ACTIVITY = 'broadcastingActivity',
+ ACTIVITIES_PANEL_BROADCASTING_ERROR = 'broadcastingError'
}
@Component({
@@ -100,7 +100,7 @@ export class TestingComponent implements OnInit {
{ name: AttributeDirective.TOOLBAR_DISPLAY_LOGO, checked: true },
{ name: AttributeDirective.TOOLBAR_DISPLAY_SESSION, checked: true },
{ name: AttributeDirective.TOOLBAR_FULLSCREEN, checked: true },
- { name: AttributeDirective.TOOLBAR_STREAMING, checked: true },
+ { name: AttributeDirective.TOOLBAR_BROADCASTING, checked: true },
{ name: AttributeDirective.TOOLBAR_LEAVE, checked: true },
{ name: AttributeDirective.TOOLBAR_PARTICIPANTS_PANEL, checked: true },
{ name: AttributeDirective.TOOLBAR_ACTIVITIES_PANEL, checked: true },
@@ -123,8 +123,8 @@ export class TestingComponent implements OnInit {
component: StructuralDirectives.ACTIVITIES_PANEL,
directives: [
{ name: AttributeDirective.ACTIVITIES_PANEL_RECORDING_ACTIVITY, checked: true },
- { name: AttributeDirective.ACTIVITIES_PANEL_STREAMING_ACTIVITY, checked: true },
- { name: AttributeDirective.ACTIVITIES_PANEL_STREAMING_ERROR, checked: false }
+ { name: AttributeDirective.ACTIVITIES_PANEL_BROADCASTING_ACTIVITY, checked: true },
+ { name: AttributeDirective.ACTIVITIES_PANEL_BROADCASTING_ERROR, checked: false }
]
}
];
@@ -155,13 +155,13 @@ export class TestingComponent implements OnInit {
participantName = true;
settingsBtn = true;
participantItemMuteBtn = true;
- streamingActivity = true;
- streamingBtn = true;
+ broadcastingActivity = true;
+ broadcastingBtn = true;
tokens: { webcam: any; screen: any };
subscription: Subscription;
- streamingError: StreamingError | undefined;
+ broadcastingError: BroadcastingError | undefined;
recordingActivity = true;
@@ -264,8 +264,8 @@ export class TestingComponent implements OnInit {
this.fullscreenBtn = value;
break;
- case AttributeDirective.TOOLBAR_STREAMING:
- this.streamingBtn = value;
+ case AttributeDirective.TOOLBAR_BROADCASTING:
+ this.broadcastingBtn = value;
break;
case AttributeDirective.TOOLBAR_LEAVE:
@@ -296,12 +296,12 @@ export class TestingComponent implements OnInit {
case AttributeDirective.ACTIVITIES_PANEL_RECORDING_ACTIVITY:
this.recordingActivity = value;
break;
- case AttributeDirective.ACTIVITIES_PANEL_STREAMING_ACTIVITY:
- this.streamingActivity = value;
+ case AttributeDirective.ACTIVITIES_PANEL_BROADCASTING_ACTIVITY:
+ this.broadcastingActivity = value;
break;
- case AttributeDirective.ACTIVITIES_PANEL_STREAMING_ERROR:
- this.streamingError = { message: 'TEST_ERROR', rtmpAvailable: true };
+ case AttributeDirective.ACTIVITIES_PANEL_BROADCASTING_ERROR:
+ this.broadcastingError = { message: 'TEST_ERROR', broadcastAvailable: true };
break;
default:
break;