2018-04-26 15:33:47 +02:00
|
|
|
import { Event } from './Event';
|
2018-05-08 13:01:34 +02:00
|
|
|
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;
|
|
|
|
}
|