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

25 lines
899 B
TypeScript
Raw Normal View History

2018-04-26 15:33:47 +02:00
import { Event } from './Event';
import { Publisher } from '../../OpenVidu/Publisher';
import { Subscriber } from '../../OpenVidu/Subscriber';
2018-04-26 15:33:47 +02:00
/**
* Defines the following events:
* - `videoElementCreated`: dispatched by [[Publisher]] and [[Subscriber]]
* - `videoElementDestroyed`: dispatched by [[Publisher]] and [[Subscriber]]
* - `videoPlaying`: dispatched by [[Publisher]] and [[Subscriber]]
* - `remoteVideoPlaying`: dispatched by [[Publisher]] if `Publisher.subscribeToRemote()` was called before `Session.publish(Publisher)`
*/
export declare class VideoElementEvent extends Event {
/**
* Video element that was created, destroyed or started playing
*/
element: HTMLVideoElement;
/**
* @hidden
*/
constructor(element: HTMLVideoElement, target: Publisher | Subscriber, type: string);
/**
* @hidden
*/
callDefaultBehaviour(): void;
}