openvidu/openvidu-node-client/src/SessionProperties.ts

60 lines
2.4 KiB
TypeScript
Raw Normal View History

/*
* (C) Copyright 2017-2018 OpenVidu (https://openvidu.io/)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import { MediaMode } from './MediaMode';
import { RecordingLayout } from './RecordingLayout';
import { RecordingMode } from './RecordingMode';
/**
* See [[OpenVidu.createSession]]
*/
export interface SessionProperties {
2018-04-25 11:03:30 +02:00
/**
* 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_)
*/
mediaMode?: MediaMode;
2018-04-25 11:03:30 +02:00
/**
* Whether the Session will be automatically recorded (`RecordingMode.ALWAYS`) or not (`RecordingMode.MANUAL`)
*/
recordingMode?: RecordingMode;
2018-04-25 11:03:30 +02:00
/**
* Default value used to initialize property [[RecordingProperties.recordingLayout]] of every recording of this session.
*
2018-04-25 11:03:30 +02:00
* You can easily override this value later by setting [[RecordingProperties.recordingLayout]] to any other value
*/
defaultRecordingLayout?: RecordingLayout;
/**
* Default value used to initialize property [[RecordingProperties.customLayout]] of every recording of this session.
* This property can only be defined if [[SessionProperties.defaultRecordingLayout]] is set to [[RecordingLayout.CUSTOM]].
*
2018-04-25 11:03:30 +02:00
* You can easily override this value later by setting [[RecordingProperties.customLayout]] to any other value
*/
defaultCustomLayout?: string;
2018-05-03 10:58:26 +02:00
/**
* Fix the sessionId that will be assigned to the session with this parameter. You can take advantage of this property
* to facilitate the mapping between OpenVidu Server 'session' entities and your own 'session' entities.
* If this parameter is undefined or an empty string, OpenVidu Server will generate a random sessionId for you.
*/
customSessionId?: string;
}