Skip to content
New issue

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

We are not able add subscriber to same sessionid #33

Open
malyalayoganath opened this issue Aug 2, 2020 · 0 comments
Open

We are not able add subscriber to same sessionid #33

malyalayoganath opened this issue Aug 2, 2020 · 0 comments

Comments

@malyalayoganath
Copy link

malyalayoganath commented Aug 2, 2020

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'
}
},
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant