0
我正在尝试使用一对一w/Recording演示作为参考编写多对多演示的代码。我已经添加以下代码到UserSession.java构造:Kurento多对多录制空白视频
public static final String RECORDING_PATH = "file:///recordings/";
public static final String RECORDING_EXT = ".webm";
public UserSession(final String name, String roomName, final WebSocketSession session, MediaPipeline pipeline) {
this.pipeline = pipeline;
this.name = name;
this.session = session;
this.roomName = roomName;
this.outgoingMedia = new WebRtcEndpoint.Builder(pipeline).build();
this.recorder = new RecorderEndpoint.Builder(pipeline, RECORDING_PATH + roomName + '_' + name + RECORDING_EXT).build();
this.isRecording = false;
而且我已将此添加到getEndpointForUser方法的底部进入的介质连接到会议的同行后:
sender.getOutgoingWebRtcPeer().connect(incoming);
sender.getOutgoingWebRtcPeer().connect(this.recorder);
我使用套接字调用手动触发记录并停止录制,但视频文件始终为空(0kb)。为每个会话创建正确数量的视频,但他们没有任何数据。有谁知道我可能做错了什么?