import {MediaElement} from "./mediaelement"; import {PlayerEndpoint} from "./playerendpoint"; import {WebRTCEndpoint} from "./webrtcendpoint"; import {KCL} from "../kcl"; export class MediaPipeline { readonly id:string; public mediaElements:Array; private client:KCL; constructor(id:string, client:KCL) { this.id = id; this.client = client; this.mediaElements = new Array(); } public async createPlayerEndpoint(filePath:string) { return this.client.createPlayerEndpoint(this,filePath); } public async createWebRTCEndpoint() { return this.client.createWebRTCEndpoint(this); } public release() { return this.client.releaseElement(this); } }