Publishing a Video Cloud player on an HTTPS page

Product
Video Cloud
Applies to Roles
Publisher
Version
Brightcove 5
Modules
Publishing Module
Edition
All

If you are using JavaScript publishing code and the web page on which you want to publish your Video Cloud player uses the secure HTTPS protocol, rather than the standard HTTP protocol, you need to modify the player's publishing code to make it work with HTTPS.

Important: Note that this does not cause the Video Cloud player to use HTTPS for all calls; instead, it simply prevents the viewer's browser from generating security warnings that might otherwise be triggered by the player's communications. If the viewer is using browser security settings that are more restrictive than the default settings, however, the page may still generate security warnings or fail to load the player altogether.

Also note that you should use this setting only on HTTPS pages; using it on HTTP pages may cause errors.

  1. Include the following secureConnections configuration parameter in the JavaScript publishing code:
    <param name="secureConnections" value="true" />
  2. Change the protocol in the URL used to load the BrightcoveExperiences.js file. The protocol changes from http:// to https://.
  3. Change the subdomain in the URL used to load the BrightcoveExperiences.js file. The subdomain changes from admin.brightcove.com to sadmin.brightcove.com.

The line that loads the BrightcoveExperiences.js file will then read:

 

<script language="JavaScript" type="text/javascript"
        src="https://sadmin.brightcove.com/js/BrightcoveExperiences.js">
</script>

 

The complete JavaScript/HTML publishing code would then look like this:

<!-- Start of Brightcove Player -->
<div style="display:none">
    Player description
</div>
  <!--
    By use of this code snippet, I agree to the Brightcove Publisher T and C 
    found at http://corp.brightcove.com/legal/terms_publisher.cfm. 
    -->
<script language="JavaScript" type="text/javascript"
    src="https://sadmin.brightcove.com/js/BrightcoveExperiences.js">
</script>
<object id="myExperience" class="BrightcoveExperience">
  <param name="bgcolor" value="#FFFFFF" />
  <param name="width" value="486" />
  <param name="height" value="412" />
  <param name="playerID" value="1726689948" />
  <param name="publisherID" value="270881183"/>
  <param name="playerKey" value="AQ~~,AAAAstMe5SE~,5vOZeV6rFDb4JUBomUtNzVLbOfHyhc1i" />
  <param name="isVid" value="true" />
  <param name="secureConnections" value="true" /> 
</object>
<!-- End of Brightcove Player -->

 

Tags
HTTPS