Hi
I am using MediaElement to play Audio Files (.mp4) that are stored on my Google Drive,.
But this is failing with error:
[0:] MediaManager: Error: Error codename: ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED, Error message: Source error
The following is a portion of MediaElement XAML markup :
<toolkit:MediaElement x:Name="mediaElement" Grid.Row="0" Source="{Binding MediaFile}" ShouldAutoPlay="True" />
The following is my C# code in my ViewModel to get the file details from Google Drive:
request = Service.Files.List();
request.Q = $"mimeType!='application/vnd.google-apps.folder' and name='{fileName}' and '{folder.Id}' in parents";
request.Fields = "files(id,name)";
result = await request.ExecuteAsync();
if (result.Files != null && result.Files.Any())
{
var FName1 = result.Files.First().Name;
MediaFile = "https://drive.google.com/drive/folders/myfolderid/" + result.Files[0].Id;
MyPage.MediaControlA.Play();
}
When I play the audio file directly in Google Drive, it plays without an issue.
Can anyone please advise as to what may be causing the error.
Thanks