VLC 4.0.0-dev
|
Macros | |
#define | VLC_PLAYER_CAP_SEEK (1<<0) |
Player capability: can seek. More... | |
#define | VLC_PLAYER_CAP_PAUSE (1<<1) |
Player capability: can pause. More... | |
#define | VLC_PLAYER_CAP_CHANGE_RATE (1<<2) |
Player capability: can change the rate. More... | |
#define | VLC_PLAYER_CAP_REWIND (1<<3) |
Player capability: can seek back. More... | |
#define | VLC_PLAYER_TELETEXT_KEY_RED ('r' << 16) |
Player teletext key: Red. More... | |
#define | VLC_PLAYER_TELETEXT_KEY_GREEN ('g' << 16) |
Player teletext key: Green. More... | |
#define | VLC_PLAYER_TELETEXT_KEY_YELLOW ('y' << 16) |
Player teletext key: Yellow. More... | |
#define | VLC_PLAYER_TELETEXT_KEY_BLUE ('b' << 16) |
Player teletext key: Blue. More... | |
#define | VLC_PLAYER_TELETEXT_KEY_INDEX ('i' << 16) |
Player teletext key: Index. More... | |
Functions | |
int | vlc_player_SetCurrentMedia (vlc_player_t *player, input_item_t *media) |
Set the current media. More... | |
input_item_t * | vlc_player_GetCurrentMedia (vlc_player_t *player) |
Get the current played media. More... | |
static input_item_t * | vlc_player_HoldCurrentMedia (vlc_player_t *player) |
Helper that hold the current media. More... | |
void | vlc_player_InvalidateNextMedia (vlc_player_t *player) |
Invalidate the next media. More... | |
int | vlc_player_Start (vlc_player_t *player) |
Start the playback of the current media. More... | |
int | vlc_player_Stop (vlc_player_t *player) |
Stop the playback of the current media. More... | |
void | vlc_player_Pause (vlc_player_t *player) |
Pause the playback. More... | |
void | vlc_player_Resume (vlc_player_t *player) |
Resume the playback from a pause. More... | |
void | vlc_player_NextVideoFrame (vlc_player_t *player) |
Pause and display the next video frame. More... | |
enum vlc_player_state | vlc_player_GetState (vlc_player_t *player) |
Get the state of the player. More... | |
enum vlc_player_error | vlc_player_GetError (vlc_player_t *player) |
Get the error state of the player. More... | |
static bool | vlc_player_IsStarted (vlc_player_t *player) |
Helper to get the started state. More... | |
static bool | vlc_player_IsPaused (vlc_player_t *player) |
Helper to get the paused state. More... | |
static void | vlc_player_TogglePause (vlc_player_t *player) |
Helper to toggle the pause state. More... | |
int | vlc_player_GetCapabilities (vlc_player_t *player) |
Get the player capabilities. More... | |
static bool | vlc_player_CanSeek (vlc_player_t *player) |
Helper to get the seek capability. More... | |
static bool | vlc_player_CanPause (vlc_player_t *player) |
Helper to get the pause capability. More... | |
static bool | vlc_player_CanChangeRate (vlc_player_t *player) |
Helper to get the change-rate capability. More... | |
static bool | vlc_player_CanRewind (vlc_player_t *player) |
Helper to get the rewindable capability. More... | |
float | vlc_player_GetRate (vlc_player_t *player) |
Get the rate of the player. More... | |
void | vlc_player_ChangeRate (vlc_player_t *player, float rate) |
Change the rate of the player. More... | |
void | vlc_player_IncrementRate (vlc_player_t *player) |
Increment the rate of the player (faster) More... | |
void | vlc_player_DecrementRate (vlc_player_t *player) |
Decrement the rate of the player (Slower) More... | |
vlc_tick_t | vlc_player_GetLength (vlc_player_t *player) |
Get the length of the current media. More... | |
vlc_tick_t | vlc_player_GetTime (vlc_player_t *player) |
Get the time of the current media. More... | |
double | vlc_player_GetPosition (vlc_player_t *player) |
Get the position of the current media. More... | |
void | vlc_player_SeekByPos (vlc_player_t *player, double position, enum vlc_player_seek_speed speed, enum vlc_player_whence whence) |
Seek the current media by position. More... | |
void | vlc_player_SeekByTime (vlc_player_t *player, vlc_tick_t time, enum vlc_player_seek_speed speed, enum vlc_player_whence whence) |
Seek the current media by time. More... | |
static void | vlc_player_SetPosition (vlc_player_t *player, double position) |
Helper to set the absolute position precisely. More... | |
static void | vlc_player_SetPositionFast (vlc_player_t *player, double position) |
Helper to set the absolute position fast. More... | |
static void | vlc_player_JumpPos (vlc_player_t *player, double jumppos) |
Helper to jump the position precisely. More... | |
static void | vlc_player_SetTime (vlc_player_t *player, vlc_tick_t time) |
Helper to set the absolute time precisely. More... | |
static void | vlc_player_SetTimeFast (vlc_player_t *player, vlc_tick_t time) |
Helper to set the absolute time fast. More... | |
static void | vlc_player_JumpTime (vlc_player_t *player, vlc_tick_t jumptime) |
Helper to jump the time precisely. More... | |
void | vlc_player_DisplayPosition (vlc_player_t *player) |
Display the player position on the vout OSD. More... | |
int | vlc_player_SetAtoBLoop (vlc_player_t *player, enum vlc_player_abloop abloop) |
Enable A to B loop of the current media. More... | |
enum vlc_player_abloop | vlc_player_GetAtoBLoop (vlc_player_t *player, vlc_tick_t *a_time, float *a_pos, vlc_tick_t *b_time, float *b_pos) |
Get the A to B loop status. More... | |
void | vlc_player_Navigate (vlc_player_t *player, enum vlc_player_nav nav) |
Navigate (for DVD/Bluray menus or viewpoint) More... | |
void | vlc_player_UpdateViewpoint (vlc_player_t *player, const vlc_viewpoint_t *viewpoint, enum vlc_player_whence whence) |
Update the viewpoint. More... | |
bool | vlc_player_IsRecording (vlc_player_t *player) |
Check if the playing is recording. More... | |
void | vlc_player_SetRecordingEnabled (vlc_player_t *player, bool enabled, const char *dir_path) |
Enable or disable recording for the current media. More... | |
static void | vlc_player_ToggleRecording (vlc_player_t *player) |
Helper to toggle the recording state. More... | |
int | vlc_player_AddAssociatedMedia (vlc_player_t *player, enum es_format_category_e cat, const char *uri, bool select, bool notify, bool check_ext) |
Add an associated (or external) media to the current media. More... | |
int | vlc_player_GetSignal (vlc_player_t *player, float *quality, float *strength) |
Get the signal quality and strength of the current media. More... | |
const struct input_stats_t * | vlc_player_GetStatistics (vlc_player_t *player) |
Get the statistics of the current media. More... | |
void | vlc_player_RestorePlaybackPos (vlc_player_t *player) |
Restore the previous playback position of the current media. More... | |
vlc_object_t * | vlc_player_GetV4l2Object (vlc_player_t *player) |
Get the V4L2 object used to do controls. More... | |
#define VLC_PLAYER_CAP_CHANGE_RATE (1<<2) |
Player capability: can change the rate.
#define VLC_PLAYER_CAP_PAUSE (1<<1) |
Player capability: can pause.
#define VLC_PLAYER_CAP_REWIND (1<<3) |
Player capability: can seek back.
#define VLC_PLAYER_CAP_SEEK (1<<0) |
Player capability: can seek.
#define VLC_PLAYER_TELETEXT_KEY_BLUE ('b' << 16) |
Player teletext key: Blue.
#define VLC_PLAYER_TELETEXT_KEY_GREEN ('g' << 16) |
Player teletext key: Green.
#define VLC_PLAYER_TELETEXT_KEY_INDEX ('i' << 16) |
Player teletext key: Index.
#define VLC_PLAYER_TELETEXT_KEY_RED ('r' << 16) |
Player teletext key: Red.
#define VLC_PLAYER_TELETEXT_KEY_YELLOW ('y' << 16) |
Player teletext key: Yellow.
enum vlc_player_abloop |
enum vlc_player_error |
Error of the player.
Enumerator | |
---|---|
VLC_PLAYER_ERROR_NONE | |
VLC_PLAYER_ERROR_GENERIC |
enum vlc_player_nav |
Menu (VCD/DVD/BD) and viewpoint navigations.
enum vlc_player_state |
State of the player.
During a normal playback (no errors), the user is expected to receive all events in the following order: STARTED, PLAYING, STOPPING, STOPPED.
Enumerator | |
---|---|
VLC_PLAYER_STATE_STOPPED | The player is stopped. Initial state, or triggered by an internal transition from the STOPPING state. |
VLC_PLAYER_STATE_STARTED | The player is started. Triggered by vlc_player_Start() |
VLC_PLAYER_STATE_PLAYING | The player is playing. Triggered by vlc_player_Resume() or by an internal transition from the STARTED state. |
VLC_PLAYER_STATE_PAUSED | The player is paused. Triggered by vlc_player_Pause(). |
VLC_PLAYER_STATE_STOPPING | The player is stopping. Triggered by vlc_player_Stop(), vlc_player_SetCurrentMedia() or by an internal transition (when the media reach the end of file for example). |
enum vlc_player_whence |
int vlc_player_AddAssociatedMedia | ( | vlc_player_t * | player, |
enum es_format_category_e | cat, | ||
const char * | uri, | ||
bool | select, | ||
bool | notify, | ||
bool | check_ext | ||
) |
Add an associated (or external) media to the current media.
player | locked player instance |
cat | SPU_ES or UNKNOWN_ES |
uri | absolute uri of the external media |
select | true to select the track of this external media |
notify | true to notify the OSD |
check_ext | true to check subtitles extension |
References input_item_slave::b_forced, INPUT_CONTROL_ADD_SLAVE, input_ControlPushHelper(), input_item_slave_New(), vlc_value_t::p_address, vlc_player_input::player, SLAVE_PRIORITY_USER, SLAVE_TYPE_GENERIC, SLAVE_TYPE_SPU, SPU_ES, subtitles_Filter(), vlc_player_input::thread, VLC_EGENERIC, VLC_ENOMEM, vlc_gettext(), vlc_player_get_input_locked(), vlc_player_osd_Message(), and VLC_SUCCESS.
|
inlinestatic |
Helper to get the change-rate capability.
References VLC_PLAYER_CAP_CHANGE_RATE, and vlc_player_GetCapabilities().
|
inlinestatic |
Helper to get the pause capability.
References VLC_PLAYER_CAP_PAUSE, and vlc_player_GetCapabilities().
|
inlinestatic |
Helper to get the rewindable capability.
References VLC_PLAYER_CAP_REWIND, and vlc_player_GetCapabilities().
|
inlinestatic |
Helper to get the seek capability.
References VLC_PLAYER_CAP_SEEK, and vlc_player_GetCapabilities().
Referenced by vlc_player_GetAtoBLoop(), and vlc_player_SetAtoBLoop().
void vlc_player_ChangeRate | ( | vlc_player_t * | player, |
float | rate | ||
) |
Change the rate of the player.
player | locked player instance |
rate | new rate (< 1.f is slower, > 1.f is faster) |
References INPUT_CONTROL_SET_RATE, input_ControlPushHelper(), vlc_player_input::player, vlc_player_input::rate, vlc_player_input::thread, var_SetFloat(), vlc_player_get_input_locked(), vlc_player_osd_Message(), vlc_player_SendEvent, and VLC_SUCCESS.
Referenced by vlc_player_ChangeRateOffset(), and vlc_player_input_RestoreMlStates().
void vlc_player_DecrementRate | ( | vlc_player_t * | player | ) |
Decrement the rate of the player (Slower)
player | locked player instance |
References vlc_player_input::player, and vlc_player_ChangeRateOffset().
void vlc_player_DisplayPosition | ( | vlc_player_t * | player | ) |
Display the player position on the vout OSD.
player | locked player instance |
References vlc_player_input::player, vlc_player_get_input_locked(), vlc_player_input_GetPos(), vlc_player_input_GetTime(), vlc_player_osd_Position(), and VLC_PLAYER_WHENCE_ABSOLUTE.
enum vlc_player_abloop vlc_player_GetAtoBLoop | ( | vlc_player_t * | player, |
vlc_tick_t * | a_time, | ||
float * | a_pos, | ||
vlc_tick_t * | b_time, | ||
float * | b_pos | ||
) |
Get the A to B loop status.
player | locked player instance |
a_time | A time or VLC_TICK_INVALID (if the media doesn't have valid times) |
a_pos | A position |
b_time | B time or VLC_TICK_INVALID (if the media doesn't have valid times) |
b_pos | B position |
References vlc_player_input::abloop_state, vlc_player_input::player, vlc_player_input::pos, vlc_player_input::set, vlc_player_input::time, VLC_PLAYER_ABLOOP_A, VLC_PLAYER_ABLOOP_B, VLC_PLAYER_ABLOOP_NONE, vlc_player_CanSeek(), and vlc_player_get_input_locked().
int vlc_player_GetCapabilities | ( | vlc_player_t * | player | ) |
Get the player capabilities.
player | locked player instance |
References vlc_player_input::capabilities, vlc_player_input::player, and vlc_player_get_input_locked().
Referenced by vlc_player_CanChangeRate(), vlc_player_CanPause(), vlc_player_CanRewind(), and vlc_player_CanSeek().
input_item_t * vlc_player_GetCurrentMedia | ( | vlc_player_t * | player | ) |
Get the current played media.
player | locked player instance |
References vlc_player_t::media, vlc_player_input::player, and vlc_player_assert_locked().
Referenced by on_player_media_length_changed(), vlc_player_HoldCurrentMedia(), vlc_strfplayer(), vlm_ControlMediaInstanceStart(), and vlm_MediaInstanceDelete().
enum vlc_player_error vlc_player_GetError | ( | vlc_player_t * | player | ) |
Get the error state of the player.
player | locked player instance |
References vlc_player_input::error, vlc_player_input::player, VLC_PLAYER_ERROR_NONE, and vlc_player_get_input_locked().
Referenced by player_on_state_changed().
vlc_tick_t vlc_player_GetLength | ( | vlc_player_t * | player | ) |
Get the length of the current media.
player | locked player instance |
References vlc_player_input::length, vlc_player_input::player, vlc_player_get_input_locked(), and VLC_TICK_INVALID.
Referenced by vlc_strfplayer(), and vlm_ControlMediaInstanceGets().
double vlc_player_GetPosition | ( | vlc_player_t * | player | ) |
Get the position of the current media.
player | locked player instance |
References vlc_player_input::player, vlc_player_get_input_locked(), and vlc_player_input_GetPos().
Referenced by vlc_player_SetAtoBLoop(), vlc_strfplayer(), vlm_ControlMediaInstanceGets(), and vlm_ControlMediaInstanceGetTimePosition().
float vlc_player_GetRate | ( | vlc_player_t * | player | ) |
Get the rate of the player.
player | locked player instance |
References vlc_player_input::player, vlc_player_input::rate, var_GetFloat(), and vlc_player_get_input_locked().
Referenced by vlc_player_ChangeRateOffset(), vlc_strfplayer(), and vlm_ControlMediaInstanceGets().
int vlc_player_GetSignal | ( | vlc_player_t * | player, |
float * | quality, | ||
float * | strength | ||
) |
Get the signal quality and strength of the current media.
player | locked player instance |
References vlc_player_input::player, vlc_player_input::signal_quality, vlc_player_input::signal_strength, VLC_EGENERIC, vlc_player_get_input_locked(), and VLC_SUCCESS.
enum vlc_player_state vlc_player_GetState | ( | vlc_player_t * | player | ) |
Get the state of the player.
player | locked player instance |
References vlc_player_t::global_state, vlc_player_input::player, and vlc_player_assert_locked().
Referenced by vlc_player_IsPaused(), and vlc_player_IsStarted().
const struct input_stats_t * vlc_player_GetStatistics | ( | vlc_player_t * | player | ) |
Get the statistics of the current media.
player | locked player instance |
References vlc_player_input::player, vlc_player_input::stats, and vlc_player_get_input_locked().
vlc_tick_t vlc_player_GetTime | ( | vlc_player_t * | player | ) |
Get the time of the current media.
player | locked player instance |
References vlc_player_input::player, vlc_player_get_input_locked(), vlc_player_input_GetTime(), and VLC_TICK_INVALID.
Referenced by vlc_player_SetAtoBLoop(), vlc_strfplayer(), vlm_ControlMediaInstanceGets(), and vlm_ControlMediaInstanceGetTimePosition().
vlc_object_t * vlc_player_GetV4l2Object | ( | vlc_player_t * | player | ) |
Get the V4L2 object used to do controls.
player | locked player instance |
References vlc_player_input::player, vlc_player_input::thread, var_Type(), VLC_OBJECT, and vlc_player_get_input_locked().
|
inlinestatic |
Helper that hold the current media.
References input_item_Hold(), and vlc_player_GetCurrentMedia().
void vlc_player_IncrementRate | ( | vlc_player_t * | player | ) |
Increment the rate of the player (faster)
player | locked player instance |
References vlc_player_input::player, and vlc_player_ChangeRateOffset().
void vlc_player_InvalidateNextMedia | ( | vlc_player_t * | player | ) |
Invalidate the next media.
This function can be used to invalidate the media returned by the vlc_player_media_provider.get_next callback. This can be used when the next item from a playlist was changed by the user.
Calling this function will trigger the vlc_player_media_provider.get_next callback to be called again.
player | locked player instance |
References input_item_Release(), vlc_player_t::next_media, vlc_player_t::next_media_requested, vlc_player_input::player, and vlc_player_assert_locked().
Referenced by vlc_player_SetCurrentMedia(), vlc_player_Stop(), vlc_playlist_Expand(), vlc_playlist_Insert(), vlc_playlist_Move(), and vlc_playlist_Remove().
|
inlinestatic |
Helper to get the paused state.
References vlc_player_GetState(), and VLC_PLAYER_STATE_PAUSED.
Referenced by vlc_player_TogglePause(), vlm_ControlMediaInstanceGets(), and vlm_ControlMediaInstanceStart().
bool vlc_player_IsRecording | ( | vlc_player_t * | player | ) |
Check if the playing is recording.
player | locked player instance |
References vlc_player_input::player, vlc_player_input::recording, and vlc_player_get_input_locked().
Referenced by vlc_player_ToggleRecording().
|
inlinestatic |
Helper to get the started state.
References vlc_player_GetState(), VLC_PLAYER_STATE_PAUSED, VLC_PLAYER_STATE_PLAYING, and VLC_PLAYER_STATE_STARTED.
Referenced by Manage(), and vlc_player_TogglePause().
|
inlinestatic |
Helper to jump the position precisely.
References VLC_PLAYER_SEEK_PRECISE, vlc_player_SeekByPos(), and VLC_PLAYER_WHENCE_RELATIVE.
|
inlinestatic |
Helper to jump the time precisely.
References VLC_PLAYER_SEEK_PRECISE, vlc_player_SeekByTime(), and VLC_PLAYER_WHENCE_RELATIVE.
void vlc_player_Navigate | ( | vlc_player_t * | player, |
enum vlc_player_nav | nav | ||
) |
Navigate (for DVD/Bluray menus or viewpoint)
player | locked player instance |
nav | navigation key |
References INPUT_CONTROL_NAV_ACTIVATE, INPUT_CONTROL_NAV_DOWN, INPUT_CONTROL_NAV_LEFT, INPUT_CONTROL_NAV_MENU, INPUT_CONTROL_NAV_POPUP, INPUT_CONTROL_NAV_RIGHT, INPUT_CONTROL_NAV_UP, input_ControlPushHelper(), vlc_player_input::player, vlc_player_input::thread, vlc_assert_unreachable, vlc_player_get_input_locked(), VLC_PLAYER_NAV_ACTIVATE, VLC_PLAYER_NAV_DOWN, VLC_PLAYER_NAV_LEFT, VLC_PLAYER_NAV_MENU, VLC_PLAYER_NAV_POPUP, VLC_PLAYER_NAV_RIGHT, and VLC_PLAYER_NAV_UP.
void vlc_player_NextVideoFrame | ( | vlc_player_t * | player | ) |
Pause and display the next video frame.
player | locked player instance |
References _, INPUT_CONTROL_SET_FRAME_NEXT, input_ControlPushHelper(), vlc_player_input::player, vlc_player_input::thread, vlc_player_get_input_locked(), vlc_player_osd_Message(), and VLC_SUCCESS.
void vlc_player_Pause | ( | vlc_player_t * | player | ) |
Pause the playback.
player | locked player instance |
References vlc_player_input::player, and vlc_player_SetPause().
Referenced by vlc_player_CorkCallback(), vlc_player_TogglePause(), and vlc_playlist_Pause().
void vlc_player_RestorePlaybackPos | ( | vlc_player_t * | player | ) |
Restore the previous playback position of the current media.
References vlc_player_t::input, and vlc_player_input_RestoreMlStates().
void vlc_player_Resume | ( | vlc_player_t * | player | ) |
Resume the playback from a pause.
player | locked player instance |
References vlc_player_input::player, and vlc_player_SetPause().
Referenced by vlc_player_CorkCallback(), vlc_player_TogglePause(), vlc_playlist_Resume(), and vlm_ControlMediaInstanceStart().
void vlc_player_SeekByPos | ( | vlc_player_t * | player, |
double | position, | ||
enum vlc_player_seek_speed | speed, | ||
enum vlc_player_whence | whence | ||
) |
Seek the current media by position.
player | locked player instance |
position | position in the range [0.f;1.f] |
speed | precise of fast |
whence | absolute or relative |
References INPUT_CONTROL_JUMP_POSITION, INPUT_CONTROL_SET_POSITION, input_ControlPush(), vlc_player_input::player, vlc_player_input::position, vlc_player_input::thread, vlc_player_assert_seek_params(), vlc_player_get_input_locked(), vlc_player_osd_Position(), VLC_PLAYER_WHENCE_ABSOLUTE, VLC_SUCCESS, and VLC_TICK_INVALID.
Referenced by vlc_player_JumpPos(), vlc_player_SetPosition(), and vlc_player_SetPositionFast().
void vlc_player_SeekByTime | ( | vlc_player_t * | player, |
vlc_tick_t | time, | ||
enum vlc_player_seek_speed | speed, | ||
enum vlc_player_whence | whence | ||
) |
Seek the current media by time.
player | locked player instance |
time | a time in the range [0;length] |
speed | precise of fast |
whence | absolute or relative |
References INPUT_CONTROL_JUMP_TIME, INPUT_CONTROL_SET_TIME, input_ControlPush(), vlc_player_input::player, vlc_player_input::thread, vlc_player_input::time, vlc_player_assert_seek_params(), vlc_player_get_input_locked(), vlc_player_osd_Position(), VLC_PLAYER_WHENCE_ABSOLUTE, and VLC_SUCCESS.
Referenced by vlc_player_JumpTime(), vlc_player_SetTime(), and vlc_player_SetTimeFast().
int vlc_player_SetAtoBLoop | ( | vlc_player_t * | player, |
enum vlc_player_abloop | abloop | ||
) |
Enable A to B loop of the current media.
This function need to be called 2 times with VLC_PLAYER_ABLOOP_A and VLC_PLAYER_ABLOOP_B to setup an A to B loop. It current the current time/position when called. The B time must be higher than the A time.
player | locked player instance |
References vlc_player_input::abloop_state, vlc_player_input::player, vlc_player_input::pos, vlc_player_input::set, vlc_player_input::time, vlc_assert_unreachable, VLC_EGENERIC, VLC_PLAYER_ABLOOP_A, VLC_PLAYER_ABLOOP_B, VLC_PLAYER_ABLOOP_NONE, vlc_player_CanSeek(), vlc_player_get_input_locked(), vlc_player_GetPosition(), vlc_player_GetTime(), vlc_player_SendEvent, vlc_player_SetPosition(), vlc_player_SetTime(), VLC_SUCCESS, and VLC_TICK_INVALID.
int vlc_player_SetCurrentMedia | ( | vlc_player_t * | player, |
input_item_t * | media | ||
) |
Set the current media.
This function replaces the current and next medias.
player | locked player instance |
media | new media to play (will be held by the player) |
References vlc_player_t::input, input_item_Hold(), vlc_player_t::media, vlc_player_t::next_media, vlc_player_t::next_media_requested, vlc_player_input::player, vlc_player_t::releasing_media, vlc_player_assert_locked(), vlc_player_CancelWaitError(), vlc_player_destructor_AddInput(), vlc_player_destructor_IsEmpty(), vlc_player_InvalidateNextMedia(), vlc_player_OpenNextMedia(), and VLC_SUCCESS.
Referenced by vlc_playlist_Clear(), vlc_playlist_SetCurrentMedia(), and vlm_ControlMediaInstanceStart().
|
inlinestatic |
Helper to set the absolute position precisely.
References VLC_PLAYER_SEEK_PRECISE, vlc_player_SeekByPos(), and VLC_PLAYER_WHENCE_ABSOLUTE.
Referenced by vlc_player_input_HandleAtoBLoop(), vlc_player_SetAtoBLoop(), and vlm_ControlMediaInstanceSetTimePosition().
|
inlinestatic |
Helper to set the absolute position fast.
References VLC_PLAYER_SEEK_FAST, vlc_player_SeekByPos(), and VLC_PLAYER_WHENCE_ABSOLUTE.
void vlc_player_SetRecordingEnabled | ( | vlc_player_t * | player, |
bool | enabled, | ||
const char * | dir_path | ||
) |
Enable or disable recording for the current media.
player | locked player instance |
enabled | true to enable recording |
dir_path | path of the recording directory or NULL (use default path), has only an effect when first enabling recording. |
References _, INPUT_CONTROL_SET_RECORD_STATE, input_ControlPush(), vlc_player_input::player, input_control_param_t::record_state, strdup(), vlc_player_input::thread, vlc_player_get_input_locked(), vlc_player_osd_Message(), and VLC_SUCCESS.
Referenced by vlc_player_ToggleRecording().
|
inlinestatic |
Helper to set the absolute time precisely.
References VLC_PLAYER_SEEK_PRECISE, vlc_player_SeekByTime(), and VLC_PLAYER_WHENCE_ABSOLUTE.
Referenced by vlc_player_input_HandleAtoBLoop(), vlc_player_SetAtoBLoop(), and vlm_ControlMediaInstanceSetTimePosition().
|
inlinestatic |
Helper to set the absolute time fast.
References VLC_PLAYER_SEEK_FAST, vlc_player_SeekByTime(), and VLC_PLAYER_WHENCE_ABSOLUTE.
int vlc_player_Start | ( | vlc_player_t * | player | ) |
Start the playback of the current media.
player | locked player instance |
References vlc_player_t::input, vlc_player_t::media, vlc_player_t::next_media, OSD_PLAY_ICON, vlc_player_input::player, vlc_player_t::start_paused, vlc_player_input::started, vlc_player_t::started, vlc_player_input::thread, var_Create(), var_SetBool(), VLC_EGENERIC, VLC_ENOMEM, vlc_player_assert_locked(), vlc_player_CancelWaitError(), vlc_player_destructor_IsEmpty(), vlc_player_input_New(), vlc_player_input_Start(), vlc_player_osd_Icon(), VLC_SUCCESS, and VLC_VAR_BOOL.
Referenced by vlc_playlist_Start(), and vlm_ControlMediaInstanceStart().
int vlc_player_Stop | ( | vlc_player_t * | player | ) |
Stop the playback of the current media.
player | locked player instance |
References vlc_player_t::input, vlc_player_input::player, vlc_player_t::started, VLC_EGENERIC, vlc_player_CancelWaitError(), vlc_player_destructor_AddInput(), vlc_player_get_input_locked(), vlc_player_InvalidateNextMedia(), and VLC_SUCCESS.
Referenced by vlc_playlist_Stop(), vlm_ControlMediaInstanceStart(), and vlm_MediaInstanceDelete().
|
inlinestatic |
Helper to toggle the pause state.
References vlc_player_IsPaused(), vlc_player_IsStarted(), vlc_player_Pause(), and vlc_player_Resume().
Referenced by vlm_ControlMediaInstancePause().
|
inlinestatic |
Helper to toggle the recording state.
References vlc_player_IsRecording(), and vlc_player_SetRecordingEnabled().
void vlc_player_UpdateViewpoint | ( | vlc_player_t * | player, |
const vlc_viewpoint_t * | viewpoint, | ||
enum vlc_player_whence | whence | ||
) |
Update the viewpoint.
player | locked player instance |
viewpoint | the viewpoint value |
whence | absolute or relative |
References INPUT_CONTROL_SET_VIEWPOINT, INPUT_CONTROL_UPDATE_VIEWPOINT, input_ControlPush(), vlc_player_input::player, vlc_player_input::thread, input_control_param_t::viewpoint, vlc_player_get_input_locked(), and VLC_PLAYER_WHENCE_ABSOLUTE.