executeDirectory method
- MediaItem item
Opens file picker with directory.
Implementation
void executeDirectory(MediaItem item) async {
Navigator.pop(context);
await PlayerLocalMediaSource.instance.pickVideoFile(
appModel: appModel,
context: context,
ref: ref,
pushReplacement: false,
directory: Directory(
path.dirname(item.mediaIdentifier),
),
);
}