I'm working on an App that streams audio and video from RTSP sources in iOS/Swift using MobileVLCKit
As part of the workflow, I need to be able to, record the video while it's stream, at the request of the user (they tap start, the App records, the tap stop, the App stops recording, what ever is playing).
I've been playing around with this and can't seem to get it to work (recording always fails with "false")
The basic work flow is...
* Create VLCMedia object with the URL of stream
* With an instance of VLCMediaPlayer, set the VLCMedia reference and play
* At some point in time, call startRecording(atPath) (I usually use something like URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true).path to generate a path reference)
I've seen some attempts to "duplicate" the stream, but this isn't really want I want (nor have I been able to get it to really work)
Is this even possible?
I'm currently using ~> 3.3.0