mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: remove lossy data message burst test button
parent
7907fc40e5
commit
43267700fb
|
|
@ -64,9 +64,6 @@
|
||||||
<button class="message-lossy-btn" (click)="sendDataLossy()" title="Broadcast lossy message to room">
|
<button class="message-lossy-btn" (click)="sendDataLossy()" title="Broadcast lossy message to room">
|
||||||
<mat-icon aria-label="Send lossy message button">chat_dashed</mat-icon>
|
<mat-icon aria-label="Send lossy message button">chat_dashed</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<button class="message-lossy-burst-btn" (click)="sendDataLossyBurst()" title="Broadcast 500 lossy messages in burst">
|
|
||||||
<mat-icon aria-label="Send lossy burst button">fast_forward</mat-icon>
|
|
||||||
</button>
|
|
||||||
<button class="disconnect-btn" (click)="disconnectRoom()" title="Disconnect room">
|
<button class="disconnect-btn" (click)="disconnectRoom()" title="Disconnect room">
|
||||||
<mat-icon aria-label="Disconnect button">clear</mat-icon>
|
<mat-icon aria-label="Disconnect button">clear</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
|
|
|
||||||
|
|
@ -1219,14 +1219,6 @@ export class OpenviduInstanceComponent {
|
||||||
this.sendData(destinationIdentity, false);
|
this.sendData(destinationIdentity, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
sendDataLossyBurst(count: number = 500) {
|
|
||||||
for (let i = 0; i < count; i++) {
|
|
||||||
const strData = `Lossy burst ${i + 1}/${count} from ${this.room?.localParticipant.identity}`;
|
|
||||||
const data = new TextEncoder().encode(strData);
|
|
||||||
this.room?.localParticipant.publishData(data, { reliable: false });
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
openInfoDialog() {
|
openInfoDialog() {
|
||||||
const updateFunction = async (): Promise<string> => {
|
const updateFunction = async (): Promise<string> => {
|
||||||
const pub: PCTransport = this.getPublisherPC()!;
|
const pub: PCTransport = this.getPublisherPC()!;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue