Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 929 Bytes

File metadata and controls

34 lines (23 loc) · 929 Bytes

Publish Stream Recording - Append

This example demonstrates appended recording of the published stream to the server.

Please refer to the Basic Publisher Documentation to learn more about the basic setup.

Example Code

These examples use the WebRTC-based Publisher implementation from the Red5 Pro HTML SDK. However, there is failover support to allow for Flash-base publisher on unsupported browsers.

Recording

To record a published stream, modify the streamMode configuration attribute provided upon initialization of the Publisher:

var defaultConfiguration = {
  protocol: 'ws',
  port: 5080,
  app: 'live',
  streamMode: 'append'
};

index.js #41

The following are accepted values for the streamMode configuration attribute:

  • live
  • record
  • append

The default value is live.