Ejemplo n.º 1
0
        public WebView()
        {
            this.InitializeComponent();

            JellyfinWebView.ContainsFullScreenElementChanged += JellyfinWebView_ContainsFullScreenElementChanged;
            JellyfinWebView.NavigationCompleted += JellyfinWebView_NavigationCompleted;

            JellyfinWebView.Navigate(new Uri(MainPage.globalSettingsStore.AppURL));
        }
Ejemplo n.º 2
0
 private async void JellyfinWebView_NavigationCompleted(Windows.UI.Xaml.Controls.WebView sender, WebViewNavigationCompletedEventArgs args)
 {
     await JellyfinWebView.InvokeScriptAsync("eval", new string[] { "navigator.gamepadInputEmulation = 'mouse';" });
 }