We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
const recorderManager = getRecorderManager(); recorderManager.onStart((e)=>{ console.log('start',e) }) recorderManager.onStop((e)=>{ console.log('stop',e) }) recorderManager.start({ }) setTimeout(() => { recorderManager.stop(); }, 3000);
上面的代码输出的文件是空的
{ duration: 2000, fileSize: 0, tempFilePath: "blob:http://localhost:8989/7474aafc-53b1-4147-9158-44c4c228f156"}
但是如果加了
recorderManager.onFrameRecorded((e)=>{ console.log('onFrameRecorded',e) })
就正常
然后我们看到源文件https://github.com/raxjs/universal-api/blob/286d77035e/src/packages/media/recorder/src/web/index.ts#L114 这个确实是只有我们调用onFrameRecorded才会开始监听ondataavailable,才有切片
The text was updated successfully, but these errors were encountered:
No branches or pull requests
上面的代码输出的文件是空的
但是如果加了
就正常
然后我们看到源文件https://github.com/raxjs/universal-api/blob/286d77035e/src/packages/media/recorder/src/web/index.ts#L114
这个确实是只有我们调用onFrameRecorded才会开始监听ondataavailable,才有切片
The text was updated successfully, but these errors were encountered: