⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vlc.h

📁 uclinux 下的vlc播放器源代码
💻 H
📖 第 1 页 / 共 2 页
字号:
 * \param i_object a vlc object id * \return VLC_SUCCESS on success */int     VLC_Destroy( int );/** * Set a VLC variable * * This function sets a variable of VLC * * \note Was previously called VLC_Set * * \param i_object a vlc object id * \param psz_var a vlc variable name * \param value a vlc_value_t structure * \return VLC_SUCCESS on success */int     VLC_VariableSet( int, char const *, vlc_value_t );/** * Get a VLC variable * * This function gets the value of a variable of VLC * It stores it in the p_value argument * * \note Was previously called VLC_Get * * \param i_object a vlc object id * \param psz_var a vlc variable name * \param p_value a pointer to a vlc_value_t structure * \return VLC_SUCCESS on success */int     VLC_VariableGet( int, char const *, vlc_value_t * );/** * Get a VLC variable type * * This function gets the type of a variable of VLC * It stores it in the p_type argument * * \param i_object a vlc object id * \param psz_var a vlc variable name * \param pi_type a pointer to an integer * \return VLC_SUCCESS on success */int     VLC_VariableType( int, char const *, int * );/** * Add a target to the current playlist * * This funtion will add a target to the current playlist. If a playlist does * not exist, it will be created. * * \param i_object a vlc object id * \param psz_target the URI of the target to play * \param ppsz_options an array of strings with input options (ie. :input-repeat) * \param i_options the amount of options in the ppsz_options array * \param i_mode the insert mode to insert the target into the playlist (PLAYLIST_* defines) * \param i_pos the position at which to add the new target (PLAYLIST_END for end) * \return VLC_SUCCESS on success */int     VLC_AddTarget( int, char const *, const char **, int, int, int );/** * Start the playlist and play the currently selected playlist item * * If there is something in the playlist, and the playlist is not running, * then start the playlist and play the currently selected playlist item. * If an item is currently paused, then resume it. * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int     VLC_Play( int );/** * Pause the currently playing item. Resume it if already paused * * If an item is currently playing then pause it. * If the item is already paused, then resume playback. * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int     VLC_Pause( int );/** * Stop the playlist * * If an item is currently playing then stop it. * Set the playlist to a stopped state. * * \note This function is new. The old VLC_Stop is now called VLC_CleanUp * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int             VLC_Stop( int );/** * Tell if VLC is playing * * If an item is currently playing, it returns * VLC_TRUE, else VLC_FALSE * * \param i_object a vlc object id * \return VLC_TRUE or VLC_FALSE */vlc_bool_t      VLC_IsPlaying( int );/** * Get the current position in a input * * Return the current position as a float * This method should be used for time sliders etc * \note For some inputs, this will be unknown. * * \param i_object a vlc object id * \return a float in the range of 0.0 - 1.0 */float           VLC_PositionGet( int );/** * Set the current position in a input * * Set the current position as a float * This method should be used for time sliders etc * \note For some inputs, this will be unknown. * * \param i_object a vlc object id * \param i_position a float in the range of 0.0 - 1.0 * \return a float in the range of 0.0 - 1.0 */float           VLC_PositionSet( int, float );/** * Get the current position in a input * * Return the current position in seconds from the start. * \note For some inputs, this will be unknown. * * \param i_object a vlc object id * \return the offset from 0:00 in seconds */int             VLC_TimeGet( int );/** * Seek to a position in the current input * * Seek i_seconds in the current input. If b_relative is set, * then the seek will be relative to the current position, otherwise * it will seek to i_seconds from the beginning of the input. * \note For some inputs, this will be unknown. * * \param i_object a vlc object id * \param i_seconds seconds from current position or from beginning of input * \param b_relative seek relative from current position * \return VLC_SUCCESS on success */int             VLC_TimeSet( int, int, vlc_bool_t );/** * Get the total length of a input * * Return the total length in seconds from the current input. * \note For some inputs, this will be unknown. * * \param i_object a vlc object id * \return the length in seconds */int             VLC_LengthGet( int );/** * Play the input faster than realtime * * 2x, 4x, 8x faster than realtime * \note For some inputs, this will be impossible. * * \param i_object a vlc object id * \return the current speedrate */float           VLC_SpeedFaster( int );/** * Play the input slower than realtime * * 1/2x, 1/4x, 1/8x slower than realtime * \note For some inputs, this will be impossible. * * \param i_object a vlc object id * \return the current speedrate */float           VLC_SpeedSlower( int );/** * Return the current playlist item * * \param i_object a vlc object id * \return the index of the playlistitem that is currently selected for play */int             VLC_PlaylistIndex( int );/** * Total amount of items in the playlist * * \param i_object a vlc object id * \return amount of playlist items */int             VLC_PlaylistNumberOfItems( int );/** * Next playlist item * * Skip to the next playlistitem and play it. * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int             VLC_PlaylistNext( int );/** * Previous playlist item * * Skip to the previous playlistitem and play it. * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int             VLC_PlaylistPrev( int );/** * Clear the contents of the playlist * * Completly empty the entire playlist. * * \note Was previously called VLC_ClearPlaylist * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int             VLC_PlaylistClear( int );/** * Change the volume * * \param i_object a vlc object id * \param i_volume something in a range from 0-200 * \return the new volume (range 0-200 %) */int             VLC_VolumeSet( int, int );/** * Get the current volume * * Retrieve the current volume. * * \param i_object a vlc object id * \return the current volume (range 0-200 %) */int             VLC_VolumeGet( int );/** * Mute/Unmute the volume * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int            VLC_VolumeMute( int );/** * Toggle Fullscreen mode * * Switch between normal and fullscreen video * * \param i_object a vlc object id * \return VLC_SUCCESS on success */int             VLC_FullScreen( int );# ifdef __cplusplus}# endif#define LICENSE_MSG \  _("This program comes with NO WARRANTY, to the extent permitted by " \    "law.\nYou may redistribute it under the terms of the GNU General " \    "Public License;\nsee the file named COPYING for details.\n" \    "Written by the VideoLAN team; see the AUTHORS file.\n")#endif /* <vlc/vlc.h> */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -