@playkit-js/kwebcast-ended-message
Version:
Allows administrators to configure a message that will will be displayed at the end of a kWebcast event.
35 lines (27 loc) • 769 B
text/typescript
const { RequestBuilder } = KalturaPlayer.providers;
interface Props {
entryId: string;
}
export class LiveStatusLoader implements KalturaPlayerTypes.ILoader {
public requests: any[] = [];
private _response: any = {};
constructor({ entryId }: Props) {
const liveStatusRequest = new RequestBuilder();
liveStatusRequest.service = 'livestream';
liveStatusRequest.action = 'getDetails';
liveStatusRequest.params = {
id: entryId
};
this.requests.push(liveStatusRequest);
}
public static id = 'kwebcast-ended-live-status';
public isValid(): boolean {
return true;
}
public set response(response: any) {
this._response = response[0]?.data || {};
}
public get response(): any {
return this._response;
}
}