Show camera and microphone settings

Although the Nimbb Player tries to correctly select the appropriate camera and microphone by default, sometimes your users might require modifying their Adobe Flash Player's settings. Instead of having to explain to them how to access the settings, you can add simple HTML links in your page to open the camera and microphone settings. Try it in this example.

This example requires you to specify your developer key (see tutorial).

Example



Any video/audio problem? Check your camera and microphone settings.

HTML code

<script language="JavaScript" type="text/javascript">
<!--

// Global variable to hold player's reference.
var _Nimbb;

// Event: Nimbb Player has been initialized and is ready.
function Nimbb_initCompleted(idPlayer)
{
  // Get a reference to the player since it was successfully created.
  _Nimbb = document[idPlayer];
}

// Open the camera settings.
function showCameraSettings()
{
  // Make sure the user has allowed access to camera.
  if( !_Nimbb.isCaptureAllowed() )
  {
    alert("You need to allow access to your webcam.");
    return;
  }

  // Show camera settings.
  _Nimbb.showCameraSettings();
}

// Open the microphone settings.
function showMicroSettings()
{
  // Make sure the user has allowed access to camera.
  if( !_Nimbb.isCaptureAllowed() )
  {
    alert("You need to allow access to your webcam.");
    return;
  }

  // Show microphone settings.
  _Nimbb.showMicroSettings();
}

// -->
</script>
<object id="nimbb" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240" codebase= "http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="http://player.nimbb.com/nimbb.swf?mode=record&key=XXXXXXXXXX&lang=en" />
<param name="allowScriptAccess" value="always" />
<embed name="nimbb" src="http://player.nimbb.com/nimbb.swf?mode=record&key=XXXXXXXXXX&lang=en" width="320" height="240" allowScriptAccess="always" pluginspage="http://www.adobe.com/go/getflashplayer" type="application/x-shockwave-flash">
</embed>
</object>

<br><br>
Any video/audio problem? Check your <a href="javascript:showCameraSettings()">camera</a> and <a href="javascript:showMicroSettings()">microphone</a> settings.

View more tutorials.

SIGN UP NOW 7-day free trial

Check out our Developer guide to get started with Nimbb.