openvidu-browser-fork
Version:
OpenVidu Browser fork
36 lines (30 loc) • 768 B
text/typescript
import {Event} from "./Event";
import {MediaFlowQualityValue} from '../Enums/MediaFlowQualityValue';
import {Publisher, Session, Subscriber, Stream} from "../..";
/**
* Defines quality changed event.
*/
export class MediaFlowQualityChangeEvent extends Event {
/**
* Stream object that was created or destroyed
*/
stream: Stream;
/**
* Value of current quality.
*/
qualityValue: MediaFlowQualityValue;
/**
* @hidden
*/
constructor(cancelable: boolean, target: Session | Publisher | Subscriber, type: string, stream: Stream, value: MediaFlowQualityValue) {
super(cancelable, target, type);
this.stream = stream;
this.qualityValue = value;
}
/**
* @hidden
*/
callDefaultBehavior() {
// Does nothing.
}
}