Recording a Stream
To record a file using a mobile client using the Red5 Pro Streaming SDK, set
R5Record type to Record instead of Live.
Using the Red5 Pro iOS Streaming SDK:
self.publishStream!.publish(Testbed.getParameter("stream1") as! String, type: R5RecordTypeRecord)
Using the Red5 Pro Android Streaming SDK:
To record with Flash or WebRTC, set
record instead of
live. See the HTML5 SDK docs for more information.
You will find a
/streams directory listed under the app directory you are publishing to. For example, if you publish to a webapp called vod, you will see this directory in
/webapps/vod/streams. While you are publishing/recording, you will see the placeholder files (
And, when you stop broadcasting, there will be a Flash Video (flv) file in the directory with your stream name (i.e.,
You can convert the
flv file to an
mp4 file using transcode post processing.
In addition to the FLV, mobile and WebRTC clients will automatically record an HLS stream (for Flash, you need to force HLS recording).