mirror of https://github.com/OpenVidu/openvidu.git
32 lines
1.2 KiB
TypeScript
32 lines
1.2 KiB
TypeScript
![]() |
import { Event } from './Event';
|
||
|
import { Session, Connection } from '../..';
|
||
|
/**
|
||
|
* Defines the following events:
|
||
|
* - `publisherStartSpeaking`: dispatched by [[Session]]
|
||
|
* - `publisherStopSpeaking`: dispatched by [[Session]]
|
||
|
*
|
||
|
* More information:
|
||
|
* - This events will only be triggered for **remote streams that have audio tracks**
|
||
|
* - Both events share the same lifecycle. That means that you can subscribe to only one of them if you want, but if you call `Session.off('publisherStopSpeaking')`,
|
||
|
* keep in mind that this will also internally remove any 'publisherStartSpeaking' event
|
||
|
* - You can further configure how the events are dispatched by setting property `publisherSpeakingEventsOptions` in the call of [[OpenVidu.setAdvancedConfiguration]]
|
||
|
*/
|
||
|
export declare class PublisherSpeakingEvent extends Event {
|
||
|
/**
|
||
|
* The client that started or stopped speaking
|
||
|
*/
|
||
|
connection: Connection;
|
||
|
/**
|
||
|
* The streamId of the Stream affected by the speaking event
|
||
|
*/
|
||
|
streamId: string;
|
||
|
/**
|
||
|
* @hidden
|
||
|
*/
|
||
|
constructor(target: Session, type: string, connection: Connection, streamId: string);
|
||
|
/**
|
||
|
* @hidden
|
||
|
*/
|
||
|
callDefaultBehaviour(): void;
|
||
|
}
|