diff --git a/lib/src/media_recorder.dart b/lib/src/media_recorder.dart index 0f51849..a2bd668 100644 --- a/lib/src/media_recorder.dart +++ b/lib/src/media_recorder.dart @@ -3,13 +3,22 @@ import 'media_stream.dart'; import 'media_stream_track.dart'; abstract class MediaRecorder { - /// For Android use audioChannel param - /// For iOS use audioTrack + /// Starts recording to file at [path]. + /// Optionally, on Android choose [audioChannel] to record. + /// Optionally, on iOS/OSX set [audioTrack] to record. Only remote audio + /// tracks are supported! + /// Optionally, [rotationDegrees] allows to rotate resulting video. + /// On web platform use [startWeb] instead. Future start( String path, { MediaStreamTrack? videoTrack, RecorderAudioChannel? audioChannel, + MediaStreamTrack? audioTrack, + int rotationDegrees = 0, }); + + /// Changes current video track + Future changeVideoTrack(MediaStreamTrack videoTrack); /// Only for Flutter Web void startWeb(