mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Added stream notification projection
parent
76c51af4ef
commit
51c63fa4c5
|
@ -51,8 +51,10 @@
|
||||||
|
|
||||||
<div class="videoButtons">
|
<div class="videoButtons">
|
||||||
|
|
||||||
<!-- Custom hand notification -->
|
<!-- Custom stream notifications -->
|
||||||
<ng-content select="[hand-notification]"></ng-content>
|
<ng-container *ngIf="notificationTemplate">
|
||||||
|
<ng-container *ngTemplateOutlet="notificationTemplate; context: { stream: _participant }"></ng-container>
|
||||||
|
</ng-container>
|
||||||
|
|
||||||
<button mat-icon-button (click)="toggleVideoMenu($event)" matTooltip="Settings" aria-label="Video settings menu">
|
<button mat-icon-button (click)="toggleVideoMenu($event)" matTooltip="Settings" aria-label="Video settings menu">
|
||||||
<mat-icon>more_vert</mat-icon>
|
<mat-icon>more_vert</mat-icon>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { Component, ElementRef, HostListener, Input, OnInit, ViewChild, ViewContainerRef } from '@angular/core';
|
import { Component, ContentChild, ElementRef, HostListener, Input, OnInit, TemplateRef, ViewChild, ViewContainerRef } from '@angular/core';
|
||||||
import { FormControl, Validators } from '@angular/forms';
|
import { FormControl, Validators } from '@angular/forms';
|
||||||
import { MatMenuPanel, MatMenuTrigger } from '@angular/material/menu';
|
import { MatMenuPanel, MatMenuTrigger } from '@angular/material/menu';
|
||||||
import { NicknameMatcher } from '../../matchers/nickname.matcher';
|
import { NicknameMatcher } from '../../matchers/nickname.matcher';
|
||||||
|
@ -22,6 +22,8 @@ import { ParticipantService } from '../../services/participant/participant.servi
|
||||||
styleUrls: ['./stream.component.css']
|
styleUrls: ['./stream.component.css']
|
||||||
})
|
})
|
||||||
export class StreamComponent implements OnInit {
|
export class StreamComponent implements OnInit {
|
||||||
|
@ContentChild('notification', { read: TemplateRef }) notificationTemplate: TemplateRef<any>;
|
||||||
|
|
||||||
videoSizeIconEnum = VideoSizeIcon;
|
videoSizeIconEnum = VideoSizeIcon;
|
||||||
videoTypeEnum = VideoType;
|
videoTypeEnum = VideoType;
|
||||||
videoSizeIcon: VideoSizeIcon = VideoSizeIcon.BIG;
|
videoSizeIcon: VideoSizeIcon = VideoSizeIcon.BIG;
|
||||||
|
|
Loading…
Reference in New Issue