这是我使用java创建复合视频录制的代码。但它会创建空白视频。不播放流。为什么?
mp = kurento.createMediaPipeline();
WebRtcEndpoint webRtcEPRed = new WebRtcEndpoint.Builder(mp).build();
WebRtcEndpoint webRtcEPGreen = new WebRtcEndpoint.Builder(mp).build();
Composite composite = new Composite.Builder(mp).build();
HubPort hubPort1 = new HubPort.Builder(composite).build();
HubPort hubPort2 = new HubPort.Builder(composite).build();
HubPort hubPort3 = new HubPort.Builder(composite).build();
RecorderEndpoint recorderEP =
new RecorderEndpoint.Builder(mp, RECORDING_PATH + "twoside" + RECORDING_EXT).build();
webRtcEPRed.connect(hubPort1);
webRtcEPGreen.connect(hubPort2);
hubPort3.connect(recorderEP);
recorderEP.record();