VLC play RTSP will stop by set Command
Posted: 20 Mar 2013 03:47
Dear edwardw :
in vlc-android ,i have below function :
when use libvlc_media_player_record_start,is ok,but then use libvlc_media_player_record_stop it will stop play video,it not i want, i just want to stop record,why will happen this issue ?
if can't use var_SetBool( p_input_thread, "record", false ) to stop record?
in vlc-android ,i have below function :
Code: Select all
int libvlc_record_start( libvlc_media_player_t *p_mi, const char* psz_filename )
{
input_thread_t *p_input_thread;
p_input_thread = libvlc_get_input_thread( p_mi );
if( !p_input_thread )
return -1;
var_SetString( p_input_thread, "input-record-path", psz_filename );
var_SetBool( p_input_thread, "record", true );
vlc_object_release( p_input_thread );
return 0;
}
Code: Select all
int libvlc_record_stop( libvlc_media_player_t *p_mi )
{
input_thread_t *p_input_thread;
p_input_thread = libvlc_get_input_thread( p_mi );
if( !p_input_thread )
return -1;
var_SetBool( p_input_thread, "record", false );
vlc_object_release( p_input_thread );
return 0;
}
if can't use var_SetBool( p_input_thread, "record", false ) to stop record?