Class VideoView

    Definition

    Namespace:
    Tizen.NUI.BaseComponents
    Assembly:
    Tizen.NUI.dll

    VideoView is a control for video playback and display.

    public class VideoView : View, IDynamicResourceHandler, INameScope, System.IDisposable, IResourcesProvider
    Inheritance
    object
    BindableObject
    Element
    BaseHandle
    Animatable
    Container
    View
    VideoView
    Implements
    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Constructors

    View Source

    VideoView()

    Creates an initialized VideoView.

    Declaration
    public VideoView()
    View Source

    VideoView(bool)

    Creates an initialized VideoView.
    If the string is empty, VideoView will not display anything.

    Declaration
    public VideoView(bool swCodec)
    Parameters
    Type Name Description
    bool swCodec

    Video rendering by H/W codec if false.

    View Source

    VideoView(string, bool)

    Creates an initialized VideoView.
    If the string is empty, VideoView will not display anything.

    Declaration
    public VideoView(string url, bool swCodec)
    Parameters
    Type Name Description
    string url

    The URL of the video resource to display.

    bool swCodec

    Video rendering by H/W codec if false.

    View Source

    VideoView(string)

    Creates an initialized VideoView.
    If the string is empty, VideoView will not display anything.

    Declaration
    public VideoView(string url)
    Parameters
    Type Name Description
    string url

    The URL of the video resource to display.

    View Source

    VideoView(Uri, bool)

    Hidden API (Inhouse API). Using Uri class to provide safe service and secure API. Creates an initialized VideoView. If the string is empty, VideoView will not display anything.

    Declaration
    public VideoView(Uri uri, bool swCodec)
    Parameters
    Type Name Description
    Uri uri

    The URI of the video resource to display.

    bool swCodec

    Video rendering by H/W codec if false.

    Fields

    View Source

    LoopingProperty

    Declaration
    public static readonly BindableProperty LoopingProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    MutedProperty

    Declaration
    public static readonly BindableProperty MutedProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    ResourceUrlProperty

    Declaration
    public static readonly BindableProperty ResourceUrlProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    UnderlayProperty

    Declaration
    public static readonly BindableProperty UnderlayProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    VideoProperty

    Declaration
    public static readonly BindableProperty VideoProperty
    Field Value
    Type Description
    BindableProperty
    View Source

    VolumeProperty

    Declaration
    public static readonly BindableProperty VolumeProperty
    Field Value
    Type Description
    BindableProperty

    Properties

    View Source

    IsAutoRotationEnabled

    Enables auto rotation of the video based on the orientation of the video contents.

    Declaration
    public bool IsAutoRotationEnabled { get; set; }
    Property Value
    Type Description
    bool
    View Source

    IsLetterBoxEnabled

    Enables letter box of the video based on the aspect of the video contents.

    Declaration
    public bool IsLetterBoxEnabled { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Looping

    The looping status, true or false.

    Declaration
    public bool Looping { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Muted

    The mute status, true or false.

    Declaration
    public bool Muted { get; set; }
    Property Value
    Type Description
    bool
    View Source

    NativeHandle

    Get native player handle. How to get native player handle

    VideoView videoView = new VideoView();
    videoView.ResourceUrl = "some video path";
    var handle = videoView.NativeHandle;
    if(handle.IsInvalid == false)
    {
        IntPtr nativeHandle = handle.DangerousGetHandle();
        // do something with nativeHandle
    }
    Declaration
    public SafeHandle NativeHandle { get; }
    Property Value
    Type Description
    SafeHandle
    View Source

    ResourceUrl

    Video file URL as string type.

    Declaration
    public string ResourceUrl { get; set; }
    Property Value
    Type Description
    string
    View Source

    Underlay

    Video rendering by underlay, true or false.
    This shows video composited underneath the window by the system. This means it may ignore rotation of the video-view.

    Declaration
    public bool Underlay { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Video

    Video file setting type of PropertyMap.

    Declaration
    public PropertyMap Video { get; set; }
    Property Value
    Type Description
    PropertyMap
    View Source

    Volume

    The left and the right volume scalar as float type, PropertyMap with two values ( "left" and "right" ).

    Declaration
    public PropertyMap Volume { get; set; }
    Property Value
    Type Description
    PropertyMap

    Methods

    View Source

    Backward(int)

    Seeks backward by the specified number of milliseconds.

    Declaration
    public void Backward(int millisecond)
    Parameters
    Type Name Description
    int millisecond

    The position for backward playback.

    View Source

    Dispose(DisposeTypes)

    Dispose. Releases unmanaged and optionally managed resources.

    Declaration
    protected override void Dispose(DisposeTypes type)
    Parameters
    Type Name Description
    DisposeTypes type

    Explicit to release both managed and unmanaged resources. Implicit to release only unmanaged resources.

    Overrides
    View.Dispose(DisposeTypes)
    Remarks

    When overriding this method, you need to distinguish between explicit and implicit conditions. For explicit conditions, release both managed and unmanaged resources. For implicit conditions, only release unmanaged resources.

    View Source

    EnableOffscreenFrameRendering(bool)

    Enables or disables offscreen frame rendering for video interpolation.

    When enabled, the video player will use offscreen rendering for frame interpolation, which can improve visual quality for certain video content.

    Declaration
    public void EnableOffscreenFrameRendering(bool useOffScreenFrame)
    Parameters
    Type Name Description
    bool useOffScreenFrame

    True to enable offscreen frame rendering, false to disable.

    Remarks

    This method must be called on the main thread.

    View Source

    Forward(int)

    Seeks forward by the specified number of milliseconds.

    Declaration
    public void Forward(int millisecond)
    Parameters
    Type Name Description
    int millisecond

    The position for forward playback.

    View Source

    Pause()

    Pauses the video playback.

    Declaration
    public void Pause()
    View Source

    Play()

    Starts the video playback.

    Declaration
    public void Play()
    View Source

    ReleaseSwigCPtr(HandleRef)

    Declaration
    protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
    Parameters
    Type Name Description
    System.Runtime.InteropServices.HandleRef swigCPtr
    Overrides
    View.ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef)
    View Source

    SetVideoFrameBuffer(NativeImageSource)

    Sets the NativeImageSource for the current video frame to be used in frame interpolation. The VideoView must be in underlay mode (Underlay = true) and have a valid video size for this to take effect. Call SetFrameInterpolationInterval() first to configure the interpolation duration. This method is thread-safe and can be called from worker threads.

    Declaration
    public void SetVideoFrameBuffer(NativeImageSource nativeImageSource)
    Parameters
    Type Name Description
    NativeImageSource nativeImageSource

    The NativeImageSource for the current frame.

    View Source

    Stop()

    Stops the video playback.

    Declaration
    public void Stop()

    Events

    View Source

    Finished

    Event for the finished signal which can be used to subscribe or unsubscribe the event handler The finished signal is emitted when a video playback has finished.

    Declaration
    public event EventHandler<VideoView.FinishedEventArgs> Finished
    Event Type
    Type Description
    EventHandler<><FinishedEventArgs>

    Implements

    IDynamicResourceHandler
    INameScope
    System.IDisposable
    IResourcesProvider

    Extension Methods

    BindingExtensions.BindingSession<T, TViewModel>(T, BindingSession<TViewModel>)
    BindingExtensions.SetBinding<T, TView>(TView, BindingSession<T>, Action<T, TView>, string)
    BindingExtensions.SetBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, BindingProperty<TView, TProperty>, string)
    BindingExtensions.SetTwoWayBinding<TView, TViewModel, TProperty>(TView, BindingSession<TViewModel>, TwoWayBindingProperty<TView, TProperty>, string)
    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    ViewExtensions.BackgroundColor<T>(T, float, float, float, float)
    ViewExtensions.BackgroundColor<T>(T, uint, float)
    ViewExtensions.BackgroundColor<T>(T, UIColor)
    ViewExtensions.BackgroundImage<T>(T, string)
    ViewExtensions.Borderline<T>(T, float, UIColor, float)
    ViewExtensions.BorderlineColor<T>(T, float, float, float, float)
    ViewExtensions.BorderlineColor<T>(T, uint, float)
    ViewExtensions.BorderlineColor<T>(T, UIColor)
    ViewExtensions.BorderlineOffset<T>(T, float)
    ViewExtensions.BorderlineWidth<T>(T, float)
    ViewExtensions.BoxShadow<T>(T, float, float, float)
    ViewExtensions.BoxShadow<T>(T, float, UIColor, float, float)
    ViewExtensions.BoxShadow<T>(T, UIShadow)
    ViewExtensions.ClippingMode<T>(T, ClippingModeType)
    ViewExtensions.Color<T>(T, float, float, float, float)
    ViewExtensions.Color<T>(T, uint, float)
    ViewExtensions.Color<T>(T, UIColor)
    ViewExtensions.CornerRadius<T>(T, float, bool)
    ViewExtensions.CornerRadius<T>(T, float, float, float, float, bool)
    ViewExtensions.CornerRadius<T>(T, UICorner)
    ViewExtensions.Focusable<T>(T, bool)
    ViewExtensions.FocusableChildren<T>(T, bool)
    ViewExtensions.FocusableInTouch<T>(T, bool)
    ViewExtensions.ImageShadow<T>(T, ImageShadow)
    ViewExtensions.IsEnabled<T>(T, bool)
    ViewExtensions.Layout<T>(T, LayoutItem)
    ViewExtensions.Opacity<T>(T, float)
    ViewExtensions.Position<T>(T, float, float)
    ViewExtensions.PositionX<T>(T, float)
    ViewExtensions.PositionY<T>(T, float)
    ViewExtensions.Scale<T>(T, float, float)
    ViewExtensions.ScaleX<T>(T, float)
    ViewExtensions.ScaleY<T>(T, float)
    ViewExtensions.Sensitive<T>(T, bool)
    ViewExtensions.Size<T>(T, float, float)
    ViewExtensions.SizeHeight<T>(T, float)
    ViewExtensions.SizeWidth<T>(T, float)
    ViewExtensions.Visibility<T>(T, bool)
    ViewExtensions.VoiceInteractionName<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    BindingExtensions.BindingSession<TViewModel>(View)
    BindingExtensions.SetBinding<T>(View, BindingSession<T>, Action<T>, string)
    BindingExtensions.SetBinding<TViewModel>(View, BindingSession<TViewModel>, string, string)
    BindingExtensions.SetTwoWayBinding<TViewModel, TProperty>(View, BindingSession<TViewModel>, TwoWayBindingProperty<View, TProperty>, string)
    ViewExtensions.BackgroundColor(View)
    ViewExtensions.BorderlineColor(View)
    ViewExtensions.BoxShadow(View)
    ViewExtensions.Color(View)
    ViewExtensions.CornerRadius(View)
    BindableObjectExtensions.SetBinding(BindableObject, BindableProperty, string, BindingMode, IValueConverter, string)
    NameScopeExtensions.FindByName<T>(Element, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX