# Interface: PlayerRecorder
Recorder Manager which handles video recording through MediaRecorder API.
since
2.5
player.play();
player.recorder.startRecording();
// Will record and download a 5 seconds clip from played video.
setTimeout(() => {
player.recorder.stopRecording();
setTimeout(player.recorder.saveRecording);
player.pause();
}, 5000);
# Table of contents
# Accessors
# Methods
# Accessors
# recordingState
• get
recordingState(): null
| RecordingState
Returns current recording state of the player recorder.
# Returns
null
| RecordingState
# Methods
# saveRecording
▸ saveRecording(filename?
): void
Saves the created clip from MediaRecorder.
Basically will generate a link with created file and click on it.
The output is .webm
file as it's the one common type which supported in most of
the browsers which are implementing MediaRecorder API.
# Parameters
Name | Type |
---|---|
filename? | string |
# Returns
void
# startRecording
▸ startRecording(): void
Starts the recording of played video.
# Returns
void
# stopRecording
▸ stopRecording(): void
Stops the recording of played video.
# Returns
void