我正在尝试录制视频和编辑音频或更改曲目,但是我该怎么做,就像 tiktok 或 reels 一样?
要录制视频,请使用 ed_screen_recorder 包作为开始。并尝试使用 pod_player 包来播放视频文件。
要录制声音,请使用 FlutterSoundRecorder 类,如下所示:
1- Create a new FlutterSoundRecorder
2- Open it with openAudioSession()
3- Start your recording with startRecorder().
4- Use the various verbs (optional):
pauseRecorder()
resumeRecorder()
...
5- Stop your recorder : stopRecorder()
6- Release your recorder when you have finished with it : closeAudioSession(). This verb will call stopRecorder() if necessary.