We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
if( role=='organiser'){ // publisher sample api details apiCredentials={ apiKey: '#####', sessionId: '#####', token: '###################### }; }else{ // susbcriber sample api details apiCredentials={ apiKey: '#############', sessionId: '#######################', token: '##########################' }; }
const otCoreOptions = { credentials: apiCredentials, // A container can either be a query selector or an HTML Element streamContainers(pubSub, type, data, stream) { return { publisher: { camera: '#cameraPublisherContainer', screen: '#screenPublisherContainer', }, subscriber: { camera: '#cameraSubscriberContainer', screen: '#screenSubscriberContainer', }, }[pubSub][type]; }, controlsContainer: '#controls', packages: ['textChat', 'screenSharing', 'annotation'], communication: { callProperties: null, // Using default }, textChat: { name: ['David', 'Paul', 'Emma', 'George', 'Amanda'][Math.random() * 5 | 0], // eslint-disable-line no-bitwise waitingMessage: 'Messages will be delivered when other users arrive', container: '#chat', }, screenSharing: { extensionID: 'plocfffmbcclpdifaikiikgplfnepkpo', annotation: true, externalWindow: false, dev: true, screenProperties: { insertMode: 'append', width: '100%', height: '100%', showControls: false, style: { buttonDisplayMode: 'off', }, videoSource: 'window', fitMode: 'contain' // Using default }, }, annotation: { absoluteParent: { publisher: '.App-video-container', subscriber: '.App-video-container' } }, };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
if( role=='organiser'){
// publisher sample api details
apiCredentials={
apiKey: '#####',
sessionId: '#####',
token: '######################
};
}else{
// susbcriber sample api details
apiCredentials={
apiKey: '#############',
sessionId: '#######################',
token: '##########################'
};
}
const otCoreOptions = {
credentials: apiCredentials,
// A container can either be a query selector or an HTML Element
streamContainers(pubSub, type, data, stream) {
return {
publisher: {
camera: '#cameraPublisherContainer',
screen: '#screenPublisherContainer',
},
subscriber: {
camera: '#cameraSubscriberContainer',
screen: '#screenSubscriberContainer',
},
}[pubSub][type];
},
controlsContainer: '#controls',
packages: ['textChat', 'screenSharing', 'annotation'],
communication: {
callProperties: null, // Using default
},
textChat: {
name: ['David', 'Paul', 'Emma', 'George', 'Amanda'][Math.random() * 5 | 0], // eslint-disable-line no-bitwise
waitingMessage: 'Messages will be delivered when other users arrive',
container: '#chat',
},
screenSharing: {
extensionID: 'plocfffmbcclpdifaikiikgplfnepkpo',
annotation: true,
externalWindow: false,
dev: true,
screenProperties: {
insertMode: 'append',
width: '100%',
height: '100%',
showControls: false,
style: {
buttonDisplayMode: 'off',
},
videoSource: 'window',
fitMode: 'contain' // Using default
},
},
annotation: {
absoluteParent: {
publisher: '.App-video-container',
subscriber: '.App-video-container'
}
},
};
The text was updated successfully, but these errors were encountered: