SIGN UP

RecorderEvents

Events

Is triggered in case of problems during the recording process

Example

 require(Modules.Recorder);
 var recorder = VoxEngine.createRecorder(); // create Recorder instance
 recorder.addEventListener(RecorderEvents.RecorderError, function (recevent) {
		Logger.write("Recorder error: "+recevent.error);
	});
 call.sendMediaTo(recorder); // send call media to recorder

Parameters

  • error:

    string

    Error message

  • recorder:

    Recorder

    Recorder that generated the event

Is triggered after the recording's start

Example

 require(Modules.Recorder);
 var recorder = VoxEngine.createRecorder(); // create Recorder instance
 recorder.addEventListener(RecorderEvents.Started, function (recevent) {
		Logger.write("Record URL: "+recevent.url);
	});
 call.sendMediaTo(recorder); // send call media to recorder

Parameters

  • recorder:

    Recorder

    Recorder that generated the event

  • url:

    string

    Record URL

Is triggered after the recording's stop

Example

 require(Modules.Recorder);
 var recorder = VoxEngine.createRecorder(); // create Recorder instance
 recorder.addEventListener(RecorderEvents.Stopped, function (recevent) {
		Logger.write("Recording stopped");
	});
 call.sendMediaTo(recorder); // send call media to recorder

Parameters

  • cost:

    string

    Record cost (in the account's currency: USD, EUR or RUR)

  • duration:

    number

    Record duration (sec)

  • recorder:

    Recorder

    Recorder that generated the event