Class VideoView

Definition

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

VideoView is a control for video playback and display.

C#
Copy
public class VideoView : View, INotifyPropertyChanged, IDisposable
Inheritance
object
Tizen.NUI.Binding.Element
VideoView
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable

Constructors

View Source

VideoView()

Creates an initialized VideoView.

Declaration
C#
Copy
public VideoView()
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.

Properties

View Source

Looping

The looping status, true or false.

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

Muted

The mute status, true or false.

Declaration
C#
Copy
public bool Muted { get; set; }
Property Value
Type Description
bool
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
System.Runtime.InteropServices.SafeHandle
View Source

ResourceUrl

Video file URL as string type.

Declaration
C#
Copy
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
C#
Copy
public bool Underlay { get; set; }
Property Value
Type Description
bool
View Source

Video

Video file setting type of PropertyMap.

Declaration
C#
Copy
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
C#
Copy
public PropertyMap Volume { get; set; }
Property Value
Type Description
PropertyMap

Methods

View Source

Backward(int)

Seeks backward by the specified number of milliseconds.

Declaration
C#
Copy
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
C#
Copy
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
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

Forward(int)

Seeks forward by the specified number of milliseconds.

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

The position for forward playback.

View Source

Pause()

Pauses the video playback.

Declaration
C#
Copy
public void Pause()
View Source

Play()

Starts the video playback.

Declaration
C#
Copy
public void Play()
View Source

Stop()

Stops the video playback.

Declaration
C#
Copy
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
C#
Copy
public event EventHandler<VideoView.FinishedEventArgs> Finished
Event Type
Type Description
System.EventHandler<TEventArgs><VideoView.FinishedEventArgs>

Implements

System.ComponentModel.INotifyPropertyChanged
System.IDisposable