I'm using VideoCore library for streaming the live video which is working perfectly.
my requirement is that i want that live streaming video record and store in document directory so anyone can tell me how can i do that?
how can i record live streaming video?
I checked library and it looks like the only way to have record function is creation of custom output.
There is
Split
class which allows to push a buffer to multiple outputs. So you need to create newIOuput
implementation with file saving function and add it to flow using thatSplit
class.Update #1
I found that there is a file output example inside library (
VCSimpleSession.mm
file):Try to uncomment it and check.