Hiding showSettingsButton and showMicButton

Ask any questions or talk about OpenTok here!

Hiding showSettingsButton and showMicButton

Postby Guest-owdfrqubef » Wed Nov 14, 2012 8:23 am

Hallo,

I have noticed that hiding the showSettingsButton or the showMicButton seems to have no effect.

This is the code I have used:

Code: Select all
 var style = {
          buttonDisplayMode: "off",
          nameDisplayMode: "off",
          showMicButton: false,
          showCameraToggleButton: false,
          showSettingsButton: false
        }
_publisher.setStyle(style);


In the console I can see that the modification is processd by the publisher object:

Code: Select all
[DEBUG] opentok: Publisher.setStyle: showMicButton
[DEBUG] opentok: setStyle::Setting showMicButton to false
[DEBUG] opentok: Publisher.setStyle: showSettingsButton
[DEBUG] opentok: setStyle::Setting showSettingsButton to false


However, the mic button and the settings button are still displayed in the lower right corner of the publisher object.

Somehow the changes of the style are ignored... is this a bug?

Thanks
Consatntin
Was this post helpful? (0)
Guest-owdfrqubef
 
Posts: 4
Joined: Fri Nov 09, 2012 2:35 am
Thumbs Up: 0

Re: Hiding showSettingsButton and showMicButton

Postby jtsai » Wed Nov 14, 2012 12:32 pm

Thanks for reporting this. I've filed a bug for this.

John
Was this post helpful? (0)
Very helpful resource: Devs Checklist
Examples with OpenTok: Examples
User avatar
jtsai
 
Posts: 1974
Joined: Wed Sep 14, 2011 3:00 pm
Thumbs Up: 157


Return to Discussion and Questions



Who is online

Users browsing this forum: nicktpdev and 2 guests

cron