Definition
- Namespace:
- Tizen.NUI.BaseComponents
- Assembly:
- Tizen.NUI.dll
- API Level:
- 3
VideoView is a control for video playback and display.
public class VideoView : View, INotifyPropertyChanged, IDynamicResourceHandler, IElement, INameScope, IElementController, IDisposable, IResourcesProvider
- Inheritance
-
System.Object
Tizen.NUI.Binding.Element
VideoView
- Implements
-
System.ComponentModel.INotifyPropertyChanged
System.IDisposable
Constructors
View Source
VideoView()
Creates an initialized VideoView.
Declaration
API Level: 3
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 |
System.String |
url |
The URL of the video resource to display.
|
API Level: 3
Properties
Declaration
public bool Looping { get; set; }
Property Value
API Level: 3
Declaration
public bool Muted { get; set; }
Property Value
API Level: 3
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 |
System.Runtime.InteropServices.SafeHandle |
|
API Level: 9
Declaration
public string ResourceUrl { get; set; }
Property Value
Type |
Description |
System.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
public bool Underlay { get; set; }
Property Value
API Level: 4
View Source
Video
Video file setting type of PropertyMap.
Declaration
public PropertyMap Video { get; set; }
Property Value
API Level: 3
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
API Level: 3
Methods
View Source
Backward(Int32)
Seeks backward by the specified number of milliseconds.
Declaration
public void Backward(int millisecond)
Parameters
Type |
Name |
Description |
Int32 |
millisecond |
The position for backward playback.
|
API Level: 3
Declaration
protected override void Dispose(DisposeTypes type)
Parameters
Overrides
API Level: 3
View Source
Forward(Int32)
Seeks forward by the specified number of milliseconds.
Declaration
public void Forward(int millisecond)
Parameters
Type |
Name |
Description |
Int32 |
millisecond |
The position for forward playback.
|
API Level: 3
Declaration
API Level: 3
Declaration
API Level: 3
Declaration
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
public event EventHandler<VideoView.FinishedEventArgs> Finished
Event Type
API Level: 3
Implements
System.ComponentModel.INotifyPropertyChanged
System.IDisposable