I'm currently doing a live camera streaming project that needs a history function. I've done some search and come to the solution of creating a custom sink that is the combination of MPEG4ESVideoRTPSink and FileSink, which will stream to both a local file and the network.<div>
What I've done is creating a new class called RTPFileSink which is the merged version of the two classes. I modified the constructor and the createNew function to take parameters from both classes. However, the resulting class seems to be in conflict, as the server continuously tries to read from the source and fails. The output looks like this:<br>
<br></div><div>Beginning to read from file...</div><div>...done reading from file</div><div><div>Beginning to read from file...</div><div>...done reading from file</div></div><div><div>Beginning to read from file...</div>
<div>...done reading from file</div></div><div><div>Beginning to read from file...</div><div>...done reading from file</div></div><div><div>Beginning to read from file...</div><div>...done reading from file</div></div><div>
<br></div><div>and it goes on forever. My guess is that the code i merge is containing two different source readers and streamers, thus they deny each other to read the source.</div><div><br></div><div>I am still very new to this framework, any help is much appreciated.</div>