Skip to content

[MediaPlayerElement][Test] Validation on macOS Runtime Tests - IsFullScreen #12663

Closed

Description

@rafael-rosa-knowcode

What would you like to be added:

Run the test about fullscreen on MacOC

And the tests on MediaPlayerElement the feature FullScreen do not work for macOS.

System.InvalidOperationException: IsFullScreen API must be used after KeyWindow is set
at Windows.UI.ViewManagement.ApplicationView.VerifyKeyWindowInitialized (System.String propertyName) [0x00013] in <f95c227ad1d14254888f333f677fdc3d>:0
at Windows.UI.ViewManagement.ApplicationView.get_IsFullScreen () [0x00000] in <f95c227ad1d14254888f333f677fdc3d>:0
at Windows.UI.ViewManagement.ApplicationView.ExitFullScreenMode () [0x00000] in <f95c227ad1d14254888f333f677fdc3d>:0
at Windows.UI.Xaml.Controls.MediaPlayerElement.ToogleFullScreen (System.Boolean showFullscreen) [0x0003c] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.Controls.MediaPlayerElement+<>c__DisplayClass36_0.<OnIsFullWindowChanged>b__0 (Windows.UI.Xaml.Controls.MediaPlayerElement mpe) [0x0000c] in <aa57664632774dc991d581b1a92ed0c8>:0
at Uno.Extensions.ObjectExtensions.Maybe[TInstance] (TInstance instance, System.Action1[T] action) [0x00008] in <87f2dbd4a63f4c53a4a64fd32710c61d>:0    at Uno.Extensions.ObjectExtensions.Maybe[TInstance] (System.Object instance, System.Action1[T] action) [0x00000] in <87f2dbd4a63f4c53a4a64fd32710c61d>:0
at Windows.UI.Xaml.Controls.MediaPlayerElement.OnIsFullWindowChanged (Windows.UI.Xaml.DependencyObject sender, Windows.UI.Xaml.DependencyPropertyChangedEventArgs args) [0x0000d] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.PropertyMetadata.RaisePropertyChanged (Windows.UI.Xaml.DependencyObject source, Windows.UI.Xaml.DependencyPropertyChangedEventArgs e) [0x0000a] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.DependencyObjectStore.InvokeCallbacks (Windows.UI.Xaml.DependencyObject actualInstanceAlias, Windows.UI.Xaml.DependencyProperty property, Windows.UI.Xaml.DependencyPropertyDetails propertyDetails, System.Object previousValue, Windows.UI.Xaml.DependencyPropertyValuePrecedences previousPrecedence, System.Object newValue, Windows.UI.Xaml.DependencyPropertyValuePrecedences newPrecedence, System.Boolean bypassesPropagation) [0x000f7] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.DependencyObjectStore.RaiseCallbacks (Windows.UI.Xaml.DependencyObject actualInstanceAlias, Windows.UI.Xaml.DependencyPropertyDetails propertyDetails, System.Object previousValue, Windows.UI.Xaml.DependencyPropertyValuePrecedences previousPrecedence, System.Object newValue, Windows.UI.Xaml.DependencyPropertyValuePrecedences newPrecedence) [0x00063] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.DependencyObjectStore.InnerSetValue (Windows.UI.Xaml.DependencyProperty property, System.Object value, Windows.UI.Xaml.DependencyPropertyValuePrecedences precedence, Windows.UI.Xaml.DependencyPropertyDetails propertyDetails, System.Boolean isPersistentResourceBinding) [0x001cb] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.DependencyObjectStore.SetValue (Windows.UI.Xaml.DependencyProperty property, System.Object value, Windows.UI.Xaml.DependencyPropertyValuePrecedences precedence, Windows.UI.Xaml.DependencyPropertyDetails propertyDetails, System.Boolean isPersistentResourceBinding) [0x0001a] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.DependencyObjectStore.SetValue (Windows.UI.Xaml.DependencyProperty property, System.Object value) [0x00000] in <aa57664632774dc991d581b1a92ed0c8>:0
at Uno.UI.Controls.BindableNSView.SetValue (Windows.UI.Xaml.DependencyProperty dp, System.Object value) [0x00006] in <aa57664632774dc991d581b1a92ed0c8>:0
at Windows.UI.Xaml.Controls.MediaPlayerElement.set_IsFullWindow (System.Boolean value) [0x00006] in <aa57664632774dc991d581b1a92ed0c8>:0
at Uno.UI.RuntimeTests.Tests.Windows_UI_Xaml_Controls.Given_MediaPlayerElement.When_MediaPlayerElement_SetIsFullWindow_Check_Fullscreen () [0x0018a] in <a030085659a1460b8683a0eef988e416>:0
at Uno.UI.Samples.Tests.UnitTestsControl+<>c__DisplayClass63_1.<ExecuteTestsForInstance>g__InvokeTestMethod|2 (Uno.UI.Samples.Tests.TestCase testCase) [0x0059b] in <9c3d710ab36f46618af1abce

Why is this needed:

To create a automatic test for macOC

For which Platform:

  • WebAssembly
  • Android
  • iOS
  • [x ] macOS (AppKit)
  • Mac Catalyst
  • Skia
    • WPF
    • GTK (Linux)
    • Linux Framebuffer
    • Tizen
  • Windows
  • Build tasks
  • Solution Templates

Anything else we need to know?

Activity

  1. added
    kind/enhancement
    triage/untriaged
    difficulty/tbd
    on Jun 21, 2023
  2. added
    project/media 📺
    and removed
    triage/untriaged
    on Jun 21, 2023
  3. added
    platform/macos 🍏
    difficulty/challenging 🤯
    and removed
    difficulty/tbd
    on Sep 19, 2023
  4. MartinZikmund commented on Jul 21, 2025

    @MartinZikmund
    Member

    Full screen support will be reworked later in separate issue

  5. github-actions commented on May 4, 2026

    @github-actions
    Contributor

    This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs or feature requests.

  6. locked as resolved and limited conversation to collaborators on May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    difficulty/challenging 🤯kind/enhancementplatform/macos 🍏project/media 📺

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions