Cannot set mic gain using publisher property microphoneGain

Report any bugs here, no matter how trivial

Cannot set mic gain using publisher property microphoneGain

Postby enwar3 » Mon Nov 26, 2012 7:24 pm

This is for the JS API.

The following code will reproduce the problem:
Code: Select all
var session = TB.initSession(sessionId);
    session.addEventListener('sessionConnected', sessionConnectedHandler);
    session.connect(apiKey, token);

    var publisher;

    function sessionConnectedHandler(event) {
      var width = $('#meContainer').width()-30;     
      var height = width*.75;

      var publisherProps = {name:'participant', height:height, width:width, microphoneGain: 0};
      publisher = TB.initPublisher(apiKey, 'myPublisherDiv', publisherProps);
      session.publish(publisher);

      // Subscribe to streams that were in the session when we connected
      subscribeToStreams(event.streams);
    }


What is the expected output?

We expect the user to be muted, because their microphone gain is 0. We also expect the tokbox mic icon to show that it is muted.

What do you see instead?

The tokbox mic icon shows that it is muted, but the user can still be heard normally. However, if the user manually clicks the mic icon twice to re-mute themselves, they can no longer be heard (correct).

What OS and version are you seein this problem with?

Mac OS X 10.7.4
Windows 7 Professional Version 6.1

Which browser and version are you seeing this problem with?

Seems to happen on all browsers. Specifically, this happens:
On Mac: Firefox 16.0.1, Chrome 23.0.1271.64
On PC: Internet Explorer 9.0.11, Chrome 24.0.1312.14 beta-m

What Flash Player version are you seeing this problem with? (http://helpx.adobe.com/flash-player/kb/ ... layer.html)

On Mac: 11.5.500.97
On Windows: 11.5.31.106

What camera and microphone were you using?

Built in webcam/mic

What session ID (and archive ID if relevant) did you see this problem on? What token did you use? What date did you encounter this error?

Code: Select all
    var sessionId = '1_MX4yMTE5NzkxMn5-U2F0IE5vdiAxMCAwMTo1Nzo0NCBQU1QgMjAxMn4wLjgwMjE5MjMzfg';
    var token = 'T1==cGFydG5lcl9pZD0yMTE5NzkxMiZzaWc9ZmMyNTQxZjUwZWNhNDdmMjQ0ZGE5MjViMWFjYTUyMmExN2VkMjc0NTpzZXNzaW9uX2lkPTFfTVg0eU1URTVOemt4TW41LVUyRjBJRTV2ZGlBeE1DQXdNVG8xTnpvME5DQlFVMVFnTWpBeE1uNHdMamd3TWpFNU1qTXpmZyZjcmVhdGVfdGltZT0xMzUzOTc3OTI3JmV4cGlyZV90aW1lPTEzNTQwNjQzMjcmcm9sZT1wdWJsaXNoZXImY29ubmVjdGlvbl9kYXRhPSZub25jZT0yMDMzODA=';


Does your computer pass the diagnostic tool? (http://www.tokbox.com/user-diagnostic/)

Minor issue: port 443 is blocked

Have you tested this on other computers and browsers? If so, list them:

Tested on one Mac and two Windows machines (the mac and first windows machine are listed above).

Please give any additional info that can help solve this. It would be helpful if you could provide a session id or do command+shift+click (ctrl+shift+click) the tokbox logo on the top left of the publisher stream and give us a ticket id.

I've noticed that manually clicking the mic button twice (once to set the mic gain to 50, and once more to set it back to 0) has the correct behavior of muting the user. However, initializing the publisher with the mic gain property does not. I'd prefer to not ask my users to manually click the mic button..
Here's a ticket id: 851A3090767DD15E5285DDA5F9462365
Was this post helpful? (0)
enwar3
 
Posts: 2
Joined: Thu Oct 25, 2012 1:26 am
Thumbs Up: 0

Re: Cannot set mic gain using publisher property microphoneG

Postby jtsai » Tue Nov 27, 2012 12:51 pm

Hi

I have filed a ticket in our bug tracker.For now, can you initiate the publisher with {publishAudio: false}?

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

Re: Cannot set mic gain using publisher property microphoneG

Postby enwar3 » Wed Nov 28, 2012 10:28 pm

Will try this out and reply with the results!
Was this post helpful? (0)
enwar3
 
Posts: 2
Joined: Thu Oct 25, 2012 1:26 am
Thumbs Up: 0


Return to Bugs



Who is online

Users browsing this forum: No registered users and 1 guest

cron