linphone录制视频为多个文件

来源:互联网 发布:伊芙蕾雅淘宝店男装 编辑:程序博客网 时间:2024/06/07 08:08



使用linphone进行录制通话时的视频时,虽然可以设置录制的文件。但想录制为多个文件就必须要修改源代码才能实现。


基本思路:设置文件名-----> startRecord -----> stopRecord  -----> 修改文件名  -----> startRecord


由于修改的文件名没有进入到mkv的filter中,此文件名仅仅保存在call的参数中,因此必须修改代码。


修改如下:



/** * Start call recording. * The output file where audio is recorded must be previously specified with linphone_call_params_set_record_file().**/void linphone_call_start_recording(LinphoneCall *call){    if (!call->params->record_file){        ms_error("linphone_call_start_recording(): no output file specified. Use linphone_call_params_set_record_file().");        return;    }    // lws added    if(call->audiostream->recorder_file)    {        ms_free(call->audiostream->recorder_file);        call->audiostream->recorder_file=ms_strdup(call->params->record_file);    }    if (call->audiostream && !call->params->in_conference){        audio_stream_mixed_record_start(call->audiostream);    }    call->record_active=TRUE;}










本文转自:

http://xzhoumin.blog.163.com/blog/static/40881136201621192742719/