i just can start record,but cannot stop record.
what i have done is like bellow:
first, in include\vlc\libvlc_media_player.h,i add a function header:
Code: Select all
VLC_PUBLIC_API int libvlc_video_toggle_record( libvlc_media_player_t *p_mi,const char *psz_filepath, const char *psz_fileame );
Code: Select all
int libvlc_video_toggle_record( libvlc_media_player_t *p_mi,
const char *psz_filepath, const char *psz_filename )
{
input_thread_t *p_input = libvlc_get_input_thread( p_mi );
if(p_input == NULL)
return -1;
var_SetString( p_input, "input-record-path", psz_filepath );
var_SetString( p_input, "sout-record-dst-prefix", psz_filename );
var_ToggleBool( p_input, "record");
vlc_object_release(p_input);
return 0;
}
then i add jni function and java function and compile it .
it just can start record,but cannot stop record.
i need your help. thanks!