Hiding showSettingsButton and showMicButton

Ask general questions or talk about OpenTok here! Questions about a specific OpenTok API Platform should be asked in its respective forum.

Hiding showSettingsButton and showMicButton

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


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

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?

Was this post helpful? (0)
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.

Was this post helpful? (0)
User avatar
Posts: 4822
Joined: Wed Sep 14, 2011 3:00 pm
Thumbs Up: 199

Return to Discussion and Questions

Who is online

Users browsing this forum: No registered users and 0 guests