This example demonstrates recording the published stream to the server.
Please refer to the Basic Publisher Documentation to learn more about the basic setup.
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: 'record',
}
The following are accepted values for the streamMode
configuration attribute:
- live
- record
- append
The default value is live
.