Native Player
1.0
|
It is a definition of the player controlling interface. More...
#include <player_controller.h>
Public Types | |
enum | PlayerState { PlayerState::kUnitialized, PlayerState::kReady, PlayerState::kPaused, PlayerState::kPlaying, PlayerState::kError } |
Public Member Functions | |
PlayerController () | |
Creates a PlayerController object. More... | |
virtual | ~PlayerController () |
Destroys the PlayerController object. More... | |
virtual void | Play ()=0 |
Orders the player to start/resume playback of the loaded content. More... | |
virtual void | Pause ()=0 |
Orders the player to pause playback of the content. More... | |
virtual void | Seek (Samsung::NaClPlayer::TimeTicks to_time)=0 |
virtual void | ChangeRepresentation (StreamType stream_type, int32_t id)=0 |
virtual void | SetViewRect (const Samsung::NaClPlayer::Rect &view_rect)=0 |
virtual void | PostTextTrackInfo ()=0 |
virtual void | ChangeSubtitles (int32_t id)=0 |
virtual void | ChangeSubtitleVisibility ()=0 |
Orders the player to start or stop generating events related to subtitles. More... | |
virtual PlayerState | GetState ()=0 |
It is a definition of the player controlling interface.
Definition at line 42 of file player_controller.h.
|
strong |
Enum which defines PlayerController
possible states.
Enumerator | |
---|---|
kUnitialized |
In this state |
kReady |
In this state |
kPaused |
In this state |
kPlaying |
In this state |
kError |
This state means that |
Definition at line 46 of file player_controller.h.
|
inline |
Creates a PlayerController
object.
Definition at line 67 of file player_controller.h.
|
inlinevirtual |
Destroys the PlayerController
object.
Definition at line 70 of file player_controller.h.
|
pure virtual |
Orders the player to change a stream representation to a defined one.
[in] | stream_type | A definition which stream representation should be changed. |
[in] | id | An id of the new stream representation which should be used. |
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Orders the player to change a subtitles set from current to the specified one.
[in] | id | An id of a subtitles set which should be used. |
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Orders the player to start or stop generating events related to subtitles.
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Provides information about PlayerController
state.
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Orders the player to pause playback of the content.
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Orders the player to start/resume playback of the loaded content.
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Orders the player to send a message about all available subtitles text track's information.
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Orders the player to change the current playback time to the defined one.
param[in] to_time Time from which playback should continue when seek operation completes.
Implemented in EsDashPlayerController, and UrlPlayerController.
|
pure virtual |
Sets a player display area.
[in] | view_rect | A size and position of a player display area. |
Implemented in EsDashPlayerController, and UrlPlayerController.