mirror of https://github.com/OpenVidu/openvidu.git
31 lines
798 B
TypeScript
31 lines
798 B
TypeScript
![]() |
import { Event } from './Event';
|
||
|
import { Session, Stream, Publisher } from '../..';
|
||
|
/**
|
||
|
* Defines the following events:
|
||
|
* - `streamCreated`: dispatched by [[Session]] and [[Publisher]]
|
||
|
* - `streamDestroyed`: dispatched by [[Session]] and [[Publisher]]
|
||
|
*/
|
||
|
export declare class StreamEvent extends Event {
|
||
|
/**
|
||
|
* Stream object that was created or destroyed
|
||
|
*/
|
||
|
stream: Stream;
|
||
|
/**
|
||
|
* For 'streamDestroyed' event:
|
||
|
* - "disconnect"
|
||
|
* - "networkDisconnect"
|
||
|
* - "unpublish"
|
||
|
*
|
||
|
* For 'streamCreated' empty string
|
||
|
*/
|
||
|
reason: string;
|
||
|
/**
|
||
|
* @hidden
|
||
|
*/
|
||
|
constructor(cancelable: boolean, target: Session | Publisher, type: string, stream: Stream, reason: string);
|
||
|
/**
|
||
|
* @hidden
|
||
|
*/
|
||
|
callDefaultBehaviour(): void;
|
||
|
}
|