Estoy trabajando con la biblioteca opentok o tokbox usando vanillaJS . Estoy luchando para agregar el parámetro de nombre de usuario. Por favor, ayúdame a solucionar el problema o guíame donde estoy equivocado.
A continuación se muestra mi código.
initOptions() { this.options = { credentials: { apiKey: Constant.VonageApiKey, sessionId: this.sessionId, token: this.token }, streamContainers: function streamContainers(pubSub, type, data) { return { publisher: { camera: '#cameraPublisherContainer', screen: '#screenPublisherContainer', }, subscriber: { camera: '#cameraSubscriberContainer', screen: '#screenSubscriberContainer', }, }[pubSub][type]; }, controlsContainer: '#controls', packages: ['screenSharing', 'annotation'], communication: { callProperties: null, // Using default }, screenProperties: { name: "Testing" }, screenSharing: { extensionID: 'plocfffmbcclpdifaikiikgplfnepkpo', annotation: true, externalWindow: false, dev: true, screenProperties: null, // Using default }, annotation: { // absoluteParent: { // publisher: '.video-call', // subscriber: '.video-call' // } }, // archiving: { // startURL: 'https://example.com/startArchive', // stopURL: 'https://example.com/stopArchive', // }, } }¡Cualquier solución apreciada!