| #define VLC_CONTROL_H 1 |
| typedef struct mediacontrol_Instance mediacontrol_Instance |
mediacontrol_Instance is an opaque structure, defined in mediacontrol_internal.h.
API users do not have to mess with it.
| typedef int WINDOWHANDLE |
| void mediacontrol_display_text | ( | mediacontrol_Instance * | self, | |
| const char * | message, | |||
| const mediacontrol_Position * | begin, | |||
| const mediacontrol_Position * | end, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Displays the message string, between "begin" and "end" positions.
| self | the mediacontrol instance | |
| message | the message to display | |
| begin | the begin position | |
| end | the end position | |
| exception | an initialized exception pointer |
| void mediacontrol_exception_cleanup | ( | mediacontrol_Exception * | exception | ) |
Clean up an existing exception structure after use.
| p_exception | the exception to clean up. |
| mediacontrol_Exception* mediacontrol_exception_create | ( | void | ) |
Instanciate and initialize an exception structure.
| void mediacontrol_exception_free | ( | mediacontrol_Exception * | exception | ) |
| void mediacontrol_exception_init | ( | mediacontrol_Exception * | exception | ) |
Initialize an existing exception structure.
| p_exception | the exception to initialize. |
| void mediacontrol_exit | ( | mediacontrol_Instance * | self | ) |
Exit the player.
| self | the mediacontrol instance |
| int mediacontrol_get_fullscreen | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Get current fullscreen status.
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| libvlc_instance_t* mediacontrol_get_libvlc_instance | ( | mediacontrol_Instance * | self | ) |
Get the associated libvlc instance.
| self,: | the mediacontrol instance |
| libvlc_media_player_t* mediacontrol_get_media_player | ( | mediacontrol_Instance * | self | ) |
Get the associated libvlc_media_player.
| self,: | the mediacontrol instance |
| mediacontrol_Position* mediacontrol_get_media_position | ( | mediacontrol_Instance * | self, | |
| const mediacontrol_PositionOrigin | an_origin, | |||
| const mediacontrol_PositionKey | a_key, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Get the current position.
| self | the mediacontrol instance | |
| an_origin | the position origin | |
| a_key | the position unit | |
| exception | an initialized exception pointer |
| char* mediacontrol_get_mrl | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Get the MRL to be played.
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| int mediacontrol_get_rate | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Get the current playing rate, in percent.
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| mediacontrol_StreamInformation* mediacontrol_get_stream_information | ( | mediacontrol_Instance * | self, | |
| mediacontrol_PositionKey | a_key, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Get information about a stream.
| self | the mediacontrol instance | |
| a_key | the time unit | |
| exception | an initialized exception pointer |
| mediacontrol_Instance* mediacontrol_new | ( | int | argc, | |
| char ** | argv, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Create a MediaControl instance with parameters.
| argc | the number of arguments | |
| argv | parameters | |
| exception | an initialized exception pointer |
| mediacontrol_Instance* mediacontrol_new_from_instance | ( | libvlc_instance_t * | p_instance, | |
| mediacontrol_Exception * | exception | |||
| ) |
Create a MediaControl instance from an existing libvlc instance.
| p_instance | the libvlc instance | |
| exception | an initialized exception pointer |
| void mediacontrol_pause | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Pause the movie at a given position.
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| void mediacontrol_PlaylistSeq__free | ( | mediacontrol_PlaylistSeq * | ps | ) |
| void mediacontrol_resume | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Resume the movie at a given position.
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| void mediacontrol_RGBPicture__free | ( | mediacontrol_RGBPicture * | pic | ) |
Free a RGBPicture structure.
| pic,: | the RGBPicture structure |
| void mediacontrol_set_fullscreen | ( | mediacontrol_Instance * | self, | |
| const int | b_fullscreen, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Set fullscreen status.
| self | the mediacontrol instance | |
| b_fullscreen | the desired status | |
| exception | an initialized exception pointer |
| void mediacontrol_set_media_position | ( | mediacontrol_Instance * | self, | |
| const mediacontrol_Position * | a_position, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Set the position.
| self | the mediacontrol instance | |
| a_position | a mediacontrol_Position | |
| exception | an initialized exception pointer |
| void mediacontrol_set_mrl | ( | mediacontrol_Instance * | self, | |
| const char * | psz_file, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Set the MRL to be played.
| self | the mediacontrol instance | |
| psz_file | the MRL | |
| exception | an initialized exception pointer |
| void mediacontrol_set_rate | ( | mediacontrol_Instance * | self, | |
| const int | rate, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Set the playing rate, in percent.
| self | the mediacontrol instance | |
| rate | the desired rate | |
| exception | an initialized exception pointer |
| int mediacontrol_set_visual | ( | mediacontrol_Instance * | self, | |
| WINDOWHANDLE | visual_id, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Set the video output window.
| self | the mediacontrol instance | |
| visual_id | the Xid or HWND, depending on the platform | |
| exception | an initialized exception pointer |
| mediacontrol_RGBPicture* mediacontrol_snapshot | ( | mediacontrol_Instance * | self, | |
| const mediacontrol_Position * | a_position, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Get a snapshot.
| self | the mediacontrol instance | |
| a_position | the desired position (ignored for now) | |
| exception | an initialized exception pointer |
| unsigned short mediacontrol_sound_get_volume | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Get the current audio level, normalized in [0.
.100]
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| void mediacontrol_sound_set_volume | ( | mediacontrol_Instance * | self, | |
| const unsigned short | volume, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Set the audio level.
| self | the mediacontrol instance | |
| volume | the volume (normalized in [0..100]) | |
| exception | an initialized exception pointer |
| void mediacontrol_start | ( | mediacontrol_Instance * | self, | |
| const mediacontrol_Position * | a_position, | |||
| mediacontrol_Exception * | exception | |||
| ) |
Play the movie at a given position.
| self | the mediacontrol instance | |
| a_position | a mediacontrol_Position | |
| exception | an initialized exception pointer |
| void mediacontrol_stop | ( | mediacontrol_Instance * | self, | |
| mediacontrol_Exception * | exception | |||
| ) |
Stop the movie at a given position.
| self | the mediacontrol instance | |
| exception | an initialized exception pointer |
| void mediacontrol_StreamInformation__free | ( | mediacontrol_StreamInformation * | p_si | ) |
Free a StreamInformation structure.
| pic,: | the StreamInformation structure |
1.5.1