openvidu/openvidu-browser/lib/OpenViduInternal/Events/StreamEvent.d.ts

31 lines
798 B
TypeScript
Raw Normal View History

2018-04-26 15:33:47 +02:00
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;
}