Agora Releases Flutter SDK 4.0.1
Agora updated to support Flutter 2 with null safety
Flutter 2 brought lots of changes for the Flutter framework, and Agora is now updated to support all those changes. With the new
agora_rtc_engine 4.0.1, we get some great features. Here are a few of the highlights.
The complete package is updated to support sound null safety. Use the new package in your nullsafe applications, and never worry about a null exception again.
In order to reduce the app size, some of the features are offered as extension libraries. If you don’t need specific features, you can remove the corresponding extension library and recompile the project to have a smaller app size.
Teachers have been asking for a virtual metronome, and Agora now offers this through the Flutter SDK. There are three methods:
startRhythmPlayerstarts the virtual metronome.
stopRhythmPlayerdisables the virtual metronome.
configRhythmPlayerreconfigures the virtual metronome after it is enabled.
Control Playback Progress for audio effect files
You can control and access the playback progress of your Audio Effect Files using three new methods:
getEffectCurrentPosition. There is also a new parameter
playEffect that sets the playback position when the file starts.
Improvements with Video Encoding
DegradationPreference, you can now set how your audio will handle situations where there is limited bandwidth. You have three main options:
- Reduce the quality before reducing the frame rate
- Reduce the frame rate before reducing the quality
Which one of these you should use will depend on the situation. For example, using the balanced approach would make the most sense for a one-to-one call since both quality and frame rate are important in this situation.