2017-06-10 01:44:31 +02:00
|
|
|
import { Session } from "./Session";
|
2018-01-27 19:39:49 +01:00
|
|
|
import { SessionProperties } from "./SessionProperties";
|
2017-06-10 01:44:31 +02:00
|
|
|
|
|
|
|
export class OpenVidu {
|
|
|
|
|
2018-01-27 19:39:49 +01:00
|
|
|
constructor(private urlOpenViduServer: string, private secret: string) { }
|
2017-06-10 01:44:31 +02:00
|
|
|
|
2018-01-27 19:39:49 +01:00
|
|
|
public createSession(properties?: SessionProperties): Session {
|
|
|
|
return new Session(this.urlOpenViduServer, this.secret, properties);
|
|
|
|
}
|
|
|
|
|
|
|
|
public startArchive(sessionId: string) {
|
|
|
|
// TODO: REST POST to start recording in OpenVidu Server
|
|
|
|
}
|
|
|
|
|
|
|
|
public stopArchive(sessionId: string) {
|
|
|
|
// TODO: REST POST to end recording in OpenVidu Server
|
2017-06-10 01:44:31 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|