-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I can't load videos which have extension mp4 (iOS) #172
Comments
It still doesn't work. |
Same here |
same here, not initializing at all on iOS. anybody has a solution? |
This code from controller broke video player controller loading:
VideoPlayerController will loading permanently (cause of listener inside).
then initialize controller with new file |
I encountered a similar issue, which was caused by certain characters in the local file path that couldn't be decoded on iOS. The solution that worked for me was renaming the file to a different name. I used a method to rename the picked File static Future<File> _renameFile(String filePath) async {
final originalFile = File(filePath);
final directory = originalFile.parent.path;
// Get current timestamp in ISO 8601 format
final timestamp = DateTime.now().toIso8601String().replaceAll(':', '-');
// Extract file extension
final extension = originalFile.path.split('.').last;
// Construct the new file path with ISO datetime
final newFilePath = '$directory/$timestamp.$extension';
// Rename the file and return the new file
final renamedFile = await originalFile.rename(newFilePath);
return renamedFile;
} |
I load videos which have extension mp4 then I waited too long for controller's intialization, it's nothing happened. I can't do anything. But I can do it success with files which have extension MOV. Please check this!
This happens only on iOS.
Thank you.
The text was updated successfully, but these errors were encountered: