The Leader in Secure Video Delivery Software
Home
Authorizing other domains to play
The AuthorizedDomainURL parameter refers the Clipstream Video Applet page code or .js applet code to a text file on your server that specifies which sites are allowed to codebase your video content, and for how long. If a site does not appear on the list, or is operating outside the specified dates, the content will not stream.

Discussion

This should be used in conjunction with codebasing.

Requirements
  • Existing Clipstream® Applet
  • web page with Clipstream® js. embedded link
  • Existing Clipstream® .js file
  • web page editor or Notepad
  • knowledge of how to edit Clipstream parameters
Parameter Syntax

in applet page code:

<param name="AuthorizedDomainURL" value="authorizedsites.txt">

in .js file link code:

csv.AuthorizedDomainURL = 'authorizedsites.txt';

Note: You can name the .txt file whatever you want and link to the .txt file relatively or absolutely. It must be located on the same domain as the clipstreamvideo.zip (and other common files).

.txt file syntax

After editing both the .js and the page applet code, create a .txt file in Notepad or other code editor with the same file name as you have indicated in the parameter and paste in a list of the sites you wish to authorize using the syntax below:

URL #Comment1

ex.

www.clipstream.com #this is the main site
clipstream.com #same URL without the www
https://www.clipstream.com #same URL but with https
http://www.clipstream.com #same URL but without https

Note: as you can see every variation on the URL syntax is used to cover all of the variations that the domain might appear in a browser.

Note2: Any text after the # character is considered a comment.

Note3: Subdomains should be listed as well.

Note4: subfolders do not need to be listed as they are covered under the domain.

Upload and test

Upload the saved .txt file to the location as indicated in your parameter link.

Related topics