vlc.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:OnCue 作者: featherbear 项目源码 文件源码
def libvlc_media_player_add_slave(p_mi, i_type, psz_uri, b_select):
    '''Add a slave to the current media player.
    @note: If the player is playing, the slave will be added directly. This call
    will also update the slave list of the attached L{Media}.
    @param p_mi: the media player.
    @param i_type: subtitle or audio.
    @param psz_uri: Uri of the slave (should contain a valid scheme).
    @param b_select: True if this slave should be selected when it's loaded.
    @return: 0 on success, -1 on error.
    @version: LibVLC 3.0.0 and later. See L{libvlc_media_slaves_add}.
    '''
    f = _Cfunctions.get('libvlc_media_player_add_slave', None) or \
        _Cfunction('libvlc_media_player_add_slave', ((1,), (1,), (1,), (1,),), None,
                    ctypes.c_int, MediaPlayer, MediaSlaveType, ctypes.c_char_p, ctypes.c_bool)
    return f(p_mi, i_type, psz_uri, b_select)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号