mirror of https://github.com/OpenVidu/openvidu.git
29 lines
1.3 KiB
TypeScript
29 lines
1.3 KiB
TypeScript
import { Event } from './Event';
|
|
import { StreamManager } from '../../OpenVidu/StreamManager';
|
|
/**
|
|
* Defines the following events:
|
|
* - `streamPlaying`: dispatched by [[StreamManager]] ([[Publisher]] and [[Subscriber]]) whenever its media stream starts playing (one of its videos has media
|
|
* and has begun to play)
|
|
* - `streamAudioVolumeChange`: dispatched by [[StreamManager]] ([[Publisher]] and [[Subscriber]]) when the volume of its Stream's audio track
|
|
* changes. Only applies if [[Stream.hasAudio]] is `true`. The frequency this event is fired with is defined by property `interval` of
|
|
* [[OpenViduAdvancedConfiguration.publisherSpeakingEventsOptions]] (default 50ms)
|
|
*/
|
|
export declare class StreamManagerEvent extends Event {
|
|
/**
|
|
* For `streamAudioVolumeChange` event:
|
|
* - `{newValue: number, oldValue: number}`: new and old audio volume values. These values are between -100 (silence) and 0 (loudest possible volume).
|
|
* They are not exact and depend on how the browser is managing the audio track, but -100 and 0 can be taken as limit values.
|
|
*
|
|
* For `streamPlaying` event undefined
|
|
*/
|
|
value: Object | undefined;
|
|
/**
|
|
* @hidden
|
|
*/
|
|
constructor(target: StreamManager, type: string, value: Object | undefined);
|
|
/**
|
|
* @hidden
|
|
*/
|
|
callDefaultBehavior(): void;
|
|
}
|