2018-04-26 15:33:47 +02:00
import { Event } from './Event' ;
2018-05-08 13:01:34 +02:00
import { Session } from '../../OpenVidu/Session' ;
2018-04-26 15:33:47 +02:00
/ * *
* Defines the following events :
* - ` recordingStarted ` : dispatched by [ [ Session ] ]
* - ` recordingStopped ` : dispatched by [ [ Session ] ]
* /
export declare class RecordingEvent extends Event {
/ * *
* The recording ID generated in openvidu - server
* /
id : string ;
/ * *
* The recording name you supplied to openvidu - server . For example , to name your recording file MY_RECORDING :
* - With * * API REST * * : POST to ` /api/recordings/start ` passing JSON body ` {"session":"sessionId","name":"MY_RECORDING"} `
2018-07-11 11:47:53 +02:00
* - With * * openvidu - java - client * * : ` OpenVidu.startRecording(sessionId, "MY_RECORDING") ` or ` OpenVidu.startRecording(sessionId, new RecordingProperties.Builder().name("MY_RECORDING").build()) `
* - With * * openvidu - node - client * * : ` OpenVidu.startRecording(sessionId, "MY_RECORDING") ` or ` OpenVidu.startRecording(sessionId, {name: "MY_RECORDING"}) `
2018-04-26 15:33:47 +02:00
*
* If no name is supplied , this property will be undefined and the recorded file will be named after property [ [ id ] ]
* /
name? : string ;
/ * *
* @hidden
* /
constructor ( target : Session , type : string , id : string , name : string ) ;
/ * *
* @hidden
* /
2018-07-11 11:47:53 +02:00
callDefaultBehavior ( ) : void ;
2018-04-26 15:33:47 +02:00
}