public static class SessionProperties.Builder extends Object
SessionProperties| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
SessionProperties |
build()
Returns the
SessionProperties object properly
configured |
SessionProperties.Builder |
customSessionId(String customSessionId)
Call this method to fix the sessionId that will be assigned to the session.
|
SessionProperties.Builder |
defaultCustomLayout(String path)
Call this method to set the default value used to initialize property
RecordingProperties.customLayout() of every
recording of this session. |
SessionProperties.Builder |
defaultRecordingLayout(RecordingLayout layout)
Call this method to set the the default value used to initialize property
RecordingProperties.recordingLayout() of
every recording of this session. |
SessionProperties.Builder |
mediaMode(MediaMode mediaMode)
Call this method to set how the media streams will be sent and received by
your clients: routed through OpenVidu Media Server
(
MediaMode.ROUTED) or attempting direct p2p connections
(MediaMode.RELAYED, not available yet)
Default value is MediaMode.ROUTED |
SessionProperties.Builder |
recordingMode(RecordingMode recordingMode)
Call this method to set whether the Session will be automatically recorded
(
RecordingMode.ALWAYS) or not
(RecordingMode.MANUAL)
Default value is RecordingMode.MANUAL |
public SessionProperties build()
SessionProperties object properly
configuredpublic SessionProperties.Builder mediaMode(MediaMode mediaMode)
MediaMode.ROUTED) or attempting direct p2p connections
(MediaMode.RELAYED, not available yet)
Default value is MediaMode.ROUTEDpublic SessionProperties.Builder recordingMode(RecordingMode recordingMode)
RecordingMode.ALWAYS) or not
(RecordingMode.MANUAL)
Default value is RecordingMode.MANUALpublic SessionProperties.Builder defaultRecordingLayout(RecordingLayout layout)
RecordingProperties.recordingLayout() of
every recording of this session. You can easily override this value later
when initializing a Recording by calling
RecordingProperties.Builder.recordingLayout(RecordingLayout)
with any other value
Default value is RecordingLayout.BEST_FITpublic SessionProperties.Builder defaultCustomLayout(String path)
RecordingProperties.customLayout() of every
recording of this session. You can easily override this value later when
initializing a Recording by calling
RecordingProperties.Builder.customLayout(String)
with any other valuepublic SessionProperties.Builder customSessionId(String customSessionId)
Copyright © 2018 OpenVidu. All rights reserved.