try to add MAUI support

This commit is contained in:
Vladimir
2024-05-08 18:12:33 +03:00
parent bcc2ba2790
commit af83f6c696
11 changed files with 101 additions and 14 deletions
-8
View File
@@ -67,12 +67,4 @@ public partial class PlayerPage : ContentPage
return await client.GetByteArrayAsync(streamUrl);
}
}
protected override void OnAppearing()
{
base.OnAppearing();
// Set the MediaElement source to the temporary file when the page appears
mediaElement.Source = tempFilePath;
mediaElement.ShouldAutoPlay = true; // Auto-play the media
}
}