Tizen Native API
3.0
|
VideoView is a control for video playback and display. More...
Public Types | |
enum | PropertyRange |
Enumeration for the start and end property ranges for this control. More... | |
typedef Signal< void(VideoView &) > | VideoViewSignalType |
Video playback finished signal type @ SINCE_1_1.38. | |
Public Member Functions | |
VideoView () | |
Creates an uninitialized VideoView. | |
~VideoView () | |
Destructor. | |
VideoView & | operator= (const VideoView &videoView) |
Assignment operator. | |
void | Play () |
Starts the video playback. | |
void | Pause () |
Pauses the video playback. | |
void | Stop () |
Stops the video playback. | |
void | Forward (int millisecond) |
Seeks forward by the specified number of milliseconds. | |
void | Backward (int millisecond) |
Seeks backward by the specified number of milliseconds. | |
VideoViewSignalType & | FinishedSignal () |
Connects to this signal to be notified when a video playback is finished. | |
Static Public Member Functions | |
static VideoView | New () |
Creates an initialized VideoView. | |
static VideoView | New (const std::string &url) |
Creates an initialized VideoView. If the string is empty, VideoView will not display anything. | |
static VideoView | DownCast (BaseHandle handle) |
Downcasts a handle to VideoView handle. |
Detailed Description
VideoView is a control for video playback and display.
For working VideoView, a video plugin for a platform should be provided.
Signals | Signal Name | Method | |---------------|-------------------------| | finished | FinishedSignal() |
- Since:
- 3.0, DALi version 1.1.38
Actions | Action Name | Attributes | Description | |-----------------|----------------------------------------------------|---------------------------------------------------------| | videoPlay | Doesn't have attributes | Plays video. See DoAction() | | videoPause | Doesn't have attributes | Pauses video. See DoAction() | | videoStop | Doesn't have attributes | Stops video. See DoAction() | | videoForward | The position ( millisecond ) for forward playback | Sets forward position for playback. See DoAction() | | videoBackward | The position ( millisecond ) for backward playback | Sets backward position for playback. See DoAction()|
- Since:
- 3.0, DALi version 1.1.38
Member Enumeration Documentation
Enumeration for the start and end property ranges for this control.
- Since:
- 2.4, DALi version 1.0.0
Reimplemented from Dali::Toolkit::Control.
Constructor & Destructor Documentation
Creates an uninitialized VideoView.
- Since:
- 3.0, DALi version 1.1.38
Destructor.
This is non-virtual since derived Handel types must not contain data or virtual methods.
- Since:
- 3.0, DALi version 1.1.38
Member Function Documentation
void Dali::Toolkit::VideoView::Backward | ( | int | millisecond | ) |
Seeks backward by the specified number of milliseconds.
- Since:
- 3.0, DALi version 1.1.38
- Parameters:
-
[in] millisecond The position for backward playback
static VideoView Dali::Toolkit::VideoView::DownCast | ( | BaseHandle | handle | ) | [static] |
Downcasts a handle to VideoView handle.
If handle points to a VideoView, the downcast produces valid handle. If not, the returned handle is left uninitialized.
- Since:
- 3.0, DALi version 1.1.38
- Parameters:
-
[in] handle Handle to an object
Reimplemented from Dali::Toolkit::Control.
Connects to this signal to be notified when a video playback is finished.
- Since:
- 3.0, DALi version 1.1.38
- Returns:
- A signal object to connect with
void Dali::Toolkit::VideoView::Forward | ( | int | millisecond | ) |
Seeks forward by the specified number of milliseconds.
- Since:
- 3.0, DALi version 1.1.38
- Parameters:
-
[in] millisecond The position for forward playback
static VideoView Dali::Toolkit::VideoView::New | ( | ) | [static] |
Creates an initialized VideoView.
- Since:
- 3.0, DALi version 1.1.38
- Note:
- VideoView will not display anything
Reimplemented from Dali::Toolkit::Control.
static VideoView Dali::Toolkit::VideoView::New | ( | const std::string & | url | ) | [static] |
Creates an initialized VideoView. If the string is empty, VideoView will not display anything.
- Since:
- 3.0, DALi version 1.1.38
- Remarks:
- http://tizen.org/privilege/internet is needed if url is a http or https address.
- http://tizen.org/privilege/mediastorage is needed if url is relevant to media storage.
- http://tizen.org/privilege/externalstorage is needed if url is relevant to external storage.
- Parameters:
-
[in] url The url of the video resource to display
void Dali::Toolkit::VideoView::Pause | ( | ) |
Pauses the video playback.
- Since:
- 3.0, DALi version 1.1.38
void Dali::Toolkit::VideoView::Play | ( | ) |
Starts the video playback.
- Since:
- 3.0, DALi version 1.1.38
void Dali::Toolkit::VideoView::Stop | ( | ) |
Stops the video playback.
- Since:
- 3.0, DALi version 1.1.38