What is the embed code for my web cam?


 

Note: This FAQ is for our Live Streaming customers (using the Flash Media Live Encoder.)  Click here for the embed code options for our Web Camera customers.

 

Note: If you use this embed code your video will be playable via standard browsers (Flash and HTML5) as well as all iOS devices (iPhones, iPads, iPods) and all Android devices.

 

Below is the least amount of embed code that you'll need to get your web cam player working (you'll need to contact us for YOURSTREAMNAME after you've signe up for service.)

 

  • You'll want to replace YOURSTREAMNAME with the stream name provided by Brownrice.
  • You can change the width and height of the player by modifying the myWidth and myHeight variables.
<script type='text/javascript' src='http://live1.brownrice.com/briptzcam.php'></script>
 
<div id='mediaplayer1'>Loading Video Player...</div>
 
<script type="text/javascript">
$(document).ready(function(){
   var config = {
      myName: 'YOURSTREAMNAME',
      myDiv:  'mediaplayer1',
      myWidth: '720',
      myHeight: '480'
   };
   // Call the BRI player
   briPlayer(config);
});
</script>

 

Here's the embed code with all of the possible options.  You can pick and choose what you need:

<script type='text/javascript' src='http://live1.brownrice.com/bristaticcam.js'></script>

<div id='mediaplayer1'>Loading Video Player...</div>

<script type="text/javascript">
$(document).ready(function(){
   var config = {
      myName: 'YOURSTREAMNAME',
      myDiv:  'mediaplayer1',
      myWidth: '720', // Width of video player
      myHeight: '480', // height of video player
      autoStart: 'true', // if set to true video will immediately play
      hideCtlr: 'true', // if set to true to hide controller area
      timeOut: '600', // video stop timeout in seconds
      myPreLoadImage: 'http://yoursite.com/image.jpg', // background pre-load image
      myLogo: 'http://yoursite.com/image.jpg', // small logo on upper-right
      myLogo2: 'http://yoursite.com/image2.jpg', // logo below player
      myLink: 'http://www.yoursite.com' // URL when small logo is clicked
   };
   // Call the BRI player
   briPlayer(config);
});
</script>

 

 

 


Sticky FAQs