Video On/Off Button is not showing in Vonage Video API

I am working on a video conference solution which involves one-to-one video call (doctor-patient), To implement webRTC I am using vonage api solution, I have tried their embed video call solution which is perfect as it provides video on/off features, But using embed we cannot archive the conversation,hence i am now using vonage api.

I have working solution which includes features like one-to-one video call and archiving videos automatically to s3 bucket, Although i can see small button for audio on/off, I am not able to see the button for video on/off like embed video chat, i have also tried to on/off the video manually using the documentation as on the link – vonage docs But still i am not able to disable/enable videos manually, sometimes it works on safari though. So can anyone help me with this ?

<script src="https://static.opentok.com/v2/js/opentok.min.js"></script>

var session = OT.initSession(apiKey, sessionId);
session.on('streamCreated', function(event) {
       session.subscribe(event.stream, 'subscriber', {
         insertMode: 'append',
         width: '100%',
         height: '100%'
       }, handleError);
     });
     
   var publisher = OT.initPublisher('publisher', {
     insertMode: 'append',
     width: '100%',
     height: '100%'
   }, handleError);

I am using above code to facilitate one-to-one video call, and tried setting video on/off functionality by using below code, But it is not working,

var pubOptions = {publishAudio:true, publishVideo:false};
var publisher = OT.initPublisher('publisher', pubOptions, {
     insertMode: 'append',
     width: '100%',
     height: '100%'
   }, handleError);
   
var options = {subscribeToAudio:true, subscribeToVideo:false};
session.on('streamCreated', function(event) {
       session.subscribe(event.stream, options,'subscriber', {
         insertMode: 'append',
         width: '100%',
         height: '100%'
       }, handleError);
     });

Any help will be appreciated, Thanks and cheers..!ūüėä

31 thoughts on “Video On/Off Button is not showing in Vonage Video API”

  1. generique du spasfon comprime therapie cognitivo-comportementale rive-nord , pharmacie bordeaux avenue thiers pharmacie auchan bethune , Comprar Doxycycline gen–﬩rico, Comprar Doxycycline medicamento. Doxycycline en farmacia Chile Comprar Doxycycline gen–﬩rico [url=https://kit.co/badela/comprar-doxycycline-sin-receta-comprar-doxycycline-generico#]Comprar Doxycycline gen–﬩rico[/url] pharmacie auchan roncq numero Comprar Solupred gen–﬩rico, Comprar Solupred medicamento. Comprar Solupred sin receta Comprar Solupred gen–﬩rico [url=https://kit.co/maureucess/comprar-solupred-generico-solupred-en-farmacia-ecuador#]Comprar Solupred medicamento[/url] , pharmacie de garde aujourd’hui vitrolles pharmacie ouverte vannes , pharmacie de garde aujourd’hui ouverte. pharmacie lafayette vesoul pharmacie polygone brest Chloroquina venta online, D–ď—Ėnde comprar Chloroquina 500 mg. Chloroquina en farmacia Ecuador Comprar Chloroquina gen–﬩rico [url=https://kit.co/tiasubthu/chloroquina-venta-online-barato-chloroquina-en-ecuador#]Chloroquina Chloroquina 500 mg[/url] , pharmacie avignon poste. pharmacie tea brest, pharmacie de garde ussel therapies non conventionnelles . medicaments pour calmer les nerfs, medicaments usages pharmacie de garde beaulieu sur mer aujourd’hui therapie cognitive et comportementale yonne .

    Reply

Leave a Comment