rtprecorder
v1.2.0
Published
rtp recorder
Downloads
4
Readme
rtprecorder
nodejs rtp recorder
it is used to record webrtc stream.
the file is save to .mkv file.
fetures
- save to mkv file
install
npm install rtprecorder
demo code
let videoCodec =
{
kind : 'audio',
name : 'audio/opus',
payloadType : 100,
clockRate : 48000
};
let audioCodec =
{
kind : 'video',
name : 'video/vp8',
payloadType : 110,
clockRate : 90000
};
let streamId = 'some streamId';
let stream = recorder.create(streamId);
await stream.enableVideo(videoCodec);
await stream.enableAudio(audioCodec);
// some audio/video port forward
// after port forwarding now we can record
stream.startRecording();