20 lines
486 B
C#
20 lines
486 B
C#
using Microsoft.AspNetCore.Components.WebView.Maui;
|
|
|
|
namespace BlazorHybrid
|
|
{
|
|
public partial class MainPage : ContentPage
|
|
{
|
|
public MainPage()
|
|
{
|
|
BlazorWebViewHandler.BlazorWebViewMapper.AppendToMapping("CustomBlazorWebViewMapper", (handler, view) =>
|
|
{
|
|
#if IOS
|
|
var configs = handler.PlatformView.Configuration;
|
|
configs.AllowsInlineMediaPlayback = true;
|
|
#endif
|
|
});
|
|
InitializeComponent();
|
|
}
|
|
}
|
|
}
|