Kurento recording not recording any data

久未见 提交于 2019-12-05 19:44:18

For the recorder file to be generated correctly you need to stop the recording or to release the recorder endpoint. I don't see this happening in your code.

To fix it, when you have finished your recording (e.g. with a finish buttom or something like that), you need to execute one of the following

recorderEndpoint.stop(); //this stops the recording
recorderEndpoint.release(); //this stops recording when releasing the recorder 
mediaPipeline.release(); //this relases all the pipeline, including recorder

Ensure you setting media profile with RecorderEndpoint like :

recorderCaller
                = new RecorderEndpoint.Builder(pipeline, RECORD_PATH)
                        .stopOnEndOfStream()
                        .withMediaProfile(isAudioOnly ? MediaProfileSpecType.MP4_AUDIO_ONLY : MediaProfileSpecType.MP4)
                        .build();
            hubportCaller.connect(recorderCaller);
            recorderCaller.record();
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!