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)
评论列表
文章目录