Json Datastream Record and Playback using Timeline

yes, I also think that it should not be so complicated. I am still a beginner with Java and therefore still learning. For me this task is not so simple. In other programming languages I would know better. With Java, I have to try everything hard.

I am currently trying to write the ASCII data streams into a simple text file. But how to save a filestream with time stamp’s in the .txt format?

I’m trying to make this example. https://jsfiddle.net/p9fx1d0x/1/

/////////////////////////////////////////////////////////////////////////////////////////////////

My live data comes from the WebRTC, so the question, is it possible to rebuild this recorder so that he records the current of the control data instead of the videos?
Is only such an idea …

https://webrtc.github.io/samples/src/content/getusermedia/record/