videoNameHelper static method
Implementation
static String videoNameHelper(String videoPath) {
// Get the current video file object
final currentFile = File(videoPath);
// Extract the parent path of the video file
String parentPath = currentFile.parent.path;
// Split the video path by the parent path to obtain the filename
return videoPath.split('$parentPath/').last;
}