pickMediaFile method
If you want to specify the allowed formats, you can set them using allowedExtensions
.
Currently, for video, we support "avi", "flv", "mkv", "mov", "mp4", "mpeg", "webm", "wmv".
For audio, we support "aac", "midi", "mp3", "ogg", "wav".
Implementation
Future<List<PlatformFile>> pickMediaFile({
List<String>? allowedExtensions,
}) async {
return ZegoUIKitCore.shared.pickMediaFile(
allowedExtensions: allowedExtensions,
);
}