how to record video on android vlc

This forum is about all development around libVLC.
ares89
New Cone
New Cone
Posts: 7
Joined: 05 Jan 2013 02:27

how to record video on android vlc

Postby ares89 » 31 Jan 2013 07:37

I add a function to record video on vlc android,but it works not well.
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 );
second, i add an implement for that:

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; }
third,i add a sym in lib/libvlc.sym libvlc_video_toggle_record

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!

Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests