def libvlc_video_update_viewpoint(p_mi, p_viewpoint, b_absolute):
'''Update the video viewpoint information.
@note: It is safe to call this function before the media player is started.
@param p_mi: the media player.
@param p_viewpoint: video viewpoint allocated via L{libvlc_video_new_viewpoint}().
@param b_absolute: if true replace the old viewpoint with the new one. If false, increase/decrease it.
@return: -1 in case of error, 0 otherwise @note the values are set asynchronously, it will be used by the next frame displayed.
@version: LibVLC 3.0.0 and later.
'''
f = _Cfunctions.get('libvlc_video_update_viewpoint', None) or \
_Cfunction('libvlc_video_update_viewpoint', ((1,), (1,), (1,),), None,
ctypes.c_int, MediaPlayer, VideoViewpoint, ctypes.c_bool)
return f(p_mi, p_viewpoint, b_absolute)
评论列表
文章目录