Class VideoView

Definition

Namespace:
Tizen.NUI.BaseComponents
Assembly:
Tizen.NUI.dll
API Level:
3

VideoView is a control for video playback and display.

C#
Copy
public class VideoView : View, IDynamicResourceHandler, IElement, INameScope, IElementController, System.IDisposable, IResourcesProvider
Inheritance
Implements

Constructors

View Source

VideoView()

Creates an initialized VideoView.

Declaration
C#
Copy
public VideoView()
API Level: 3
View Source

VideoView(Boolean)

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

Declaration
C#
Copy
public VideoView(bool swCodec)
Parameters
Type Name Description
Boolean 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
C#
Copy
public VideoView(string url)
Parameters
Type Name Description
String url

The URL of the video resource to display.

API Level: 3
View Source

VideoView(String, Boolean)

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

Declaration
C#
Copy
public VideoView(string url, bool swCodec)
Parameters
Type Name Description
String url

The URL of the video resource to display.

Boolean swCodec

Video rendering by H/W codec if false.

View Source

VideoView(Uri, Boolean)

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
C#
Copy
public VideoView(Uri uri, bool swCodec)
Parameters
Type Name Description
Uri uri

The URI of the video resource to display.

Boolean swCodec

Video rendering by H/W codec if false.

Fields

View Source

LoopingProperty

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

MutedProperty

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

ResourceUrlProperty

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

UnderlayProperty

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

VideoProperty

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

VolumeProperty

Declaration
C#
Copy
public static readonly BindableProperty VolumeProperty
Field Value
Type Description
BindableProperty

Properties

View Source

Looping

The looping status, true or false.

Declaration
C#
Copy
public bool Looping { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

Muted

The mute status, true or false.

Declaration
C#
Copy
public bool Muted { get; set; }
Property Value
Type Description
Boolean
API Level: 3
View Source

NativeHandle

Get native player handle. How to get native player handle

Copy
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
C#
Copy
public SafeHandle NativeHandle { get; }
Property Value
Type Description
SafeHandle
API Level: 9
View Source

ResourceUrl

Video file URL as string type.

Declaration
C#
Copy
public string ResourceUrl { get; set; }
Property Value
Type Description
String
API Level: 4
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
C#
Copy
public bool Underlay { get; set; }
Property Value
Type Description
Boolean
API Level: 4
View Source

Video

Video file setting type of PropertyMap.

Declaration
C#
Copy
public PropertyMap Video { get; set; }
Property Value
Type Description
PropertyMap
API Level: 3
View Source

Volume

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

Declaration
C#
Copy
public PropertyMap Volume { get; set; }
Property Value
Type Description
PropertyMap
API Level: 3

Methods

View Source

Backward(Int32)

Seeks backward by the specified number of milliseconds.

Declaration
C#
Copy
public void Backward(int millisecond)
Parameters
Type Name Description
Int32 millisecond

The position for backward playback.

API Level: 3
View Source

Dispose(DisposeTypes)

Dispose.

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

DisposeTypes

Overrides
API Level: 3
View Source

Forward(Int32)

Seeks forward by the specified number of milliseconds.

Declaration
C#
Copy
public void Forward(int millisecond)
Parameters
Type Name Description
Int32 millisecond

The position for forward playback.

API Level: 3
View Source

Pause()

Pauses the video playback.

Declaration
C#
Copy
public void Pause()
API Level: 3
View Source

Play()

Starts the video playback.

Declaration
C#
Copy
public void Play()
API Level: 3
View Source

ReleaseSwigCPtr(Runtime.InteropServices.HandleRef)

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

Stop()

Stops the video playback.

Declaration
C#
Copy
public void Stop()
API Level: 3

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
C#
Copy
public event EventHandler<VideoView.FinishedEventArgs> Finished
Event Type
Type Description
EventHandler<VideoView.FinishedEventArgs>
API Level: 3

Implements

Extension Methods