flutter如何在视频播放器中添加音频?

问题描述 投票:0回答:1

我正在尝试录制视频和编辑音频或更改曲目,但是我该怎么做,就像 tiktok 或 reels 一样?

flutter avaudioplayer android-video-player
1个回答
0
投票

要录制视频,请使用 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.
© www.soinside.com 2019 - 2024. All rights reserved.