I have written code that successfully establishes the WebRTC connection from browser to Kurento Media Server (KMS). The stream is recorded on the server side. Recording file gets created almost instantly. When I close the PeerConnection, then after couple minutes the recording file gets the recording contents (it stays at zero size until that time).
Now my question: How to detect that the recording file got written to the disk & filled with right contents? Is there a some message in the Kurento protocol? I did find RecorderEndpoint#record(Continuation) but the Continuation#onSuccess gets called immediately (not couple mins later when the recording file gets right contents).