Properties
Private
#conf
#conf: Omit<IRecordeOpts, "timeSlice">
Private
#evtTool
#evtTool: EventTool<{
stateChange: ((state) => void);
}> = ...
Type declaration
stateChange: ((state) => void)
- (state): void
Returns void
Private
#recoderPauseCtrl
#recoderPauseCtrl: RecoderPauseCtrl
Private
#state
#state: TState = 'inactive'
on
on: (<Type>(type,
listener) => (() => void)) = ... Type declaration
- <Type>(type, listener): (() => void)
Type Parameters
- Type extends "stateChange"
Parameters
- type: Type
- listener: {
stateChange: ((state) => void);
}[Type]
Returns (() => void)
录制媒体流 MediaStream,生成 MP4 文件流
如果你期望录制为 WebM 格式,请使用 MediaRecorder
Example
See
录制摄像头