I'm downloading a file from a FTP server to the External Storage Directory and I'm saving a video file on it. This part is running fine, but when I try to play the video, a message "cannot play video" is shown. The video formats I tried to play were ".wmv" and ".mp4".
Here is my code (is a testing code only):
string path = Path.Combine(Android.OS.Environment.ExternalStorageDirectory.AbsolutePath, "cman");
string fileName = "VINHETA.mp4";
if (!Directory.Exists(path)) Directory.CreateDirectory(path); if (!File.Exists(Path.Combine(path, fileName))) FTPHandle.DonwloadFile(fileName, path); Android.Net.Uri uri = Android.Net.Uri.Parse(Path.Combine(path, fileName)); videoView.SetVideoURI(uri); videoView.Start();