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)。爲每個會話創建正確數量的視頻,但他們沒有任何數據。有誰知道我可能做錯了什麼?