Class VideoViewX
- Namespace
- VisioForge.Core.UI.MAUI
- Assembly
- VisioForge.Core.UI.MAUI.dll
A platform-native video view control for .NET MAUI that provides hardware-accelerated video rendering.
public class VideoViewX : View, INotifyPropertyChanged, IVisualTreeElement, IEffectControlProvider, IToolTipElement, IContextFlyoutElement, IAnimatable, IViewController, IVisualElementController, IElementController, IGestureController, IGestureRecognizers, IPropertyMapperView, IHotReloadableView, IReplaceableView, IView, ITransform, IElementInheritance
Derived
Implements
Inherited Members
Remarks
This control serves as a cross-platform wrapper around native video rendering implementations. It leverages platform-specific rendering technologies for optimal performance:
- iOS: Metal-based rendering via native iOS views
- Android: TextureView or SurfaceView with hardware acceleration
- Windows: WinUI 3 native rendering with DirectX
- macCatalyst: Metal-based rendering
The control integrates with VisioForge media engines through the VisioForge.Core.Types.IVideoView interface, which is implemented by the platform-specific handlers. Use VisioForge.Core.UI.MAUI.VideoViewX.GetVideoView to access the actual video view implementation for the current platform.
This class serves as the MAUI View that is mapped to native handlers on each platform via the VisioForge.Core.UI.MAUI.VideoViewXHandler.
Constructors
VideoViewX()
Initializes a new instance of the VisioForge.Core.UI.MAUI.VideoViewX class.
public VideoViewX()Remarks
The control's native implementation is created and initialized by the MAUI handler system when the control is added to the visual tree. The actual video rendering capabilities are provided by the platform-specific handler accessible through VisioForge.Core.UI.MAUI.VideoViewX.GetVideoView.
Methods
GetVideoView()
Gets the platform-specific video view implementation that handles actual video rendering.
public IVideoView GetVideoView()Returns
- IVideoView
-
An VisioForge.Core.Types.IVideoView instance that provides access to the native video rendering surface, or null if the handler has not been initialized yet.
Remarks
This method returns the actual video view implementation created by the platform handler. The returned instance implements VisioForge.Core.Types.IVideoView and can be used to:
- Attach media engines for video playback
- Control video rendering parameters
- Access platform-specific features
- Handle video frame delivery
The handler must be initialized (control added to visual tree) before this method returns a non-null value. For VisioForge.Core.UI.MAUI.VideoViewXHandler instances, the VideoView property is accessed directly. For other handler types, the PlatformView is cast to IVideoView.