Skip to content

ustream/hashlock-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IBM Cloud Video Viewer Authentication Setup Demo

Requirements

Installation

  1. Set up channel authentication for your channel(s) on Channels/Authentication dashboard
    • Secret Key: Some random string, this secret key is used for signing and validating authorization data
    • URL for the entry point of the authentication flow: http://127.0.0.1:8000/auth.php This is the end point where you can authorize your users to the content and then generate the signed hash data. Set authentication
  2. Set Secret Key in auth.php
    ...
        $secret     = 'TOPSECRET';
    ...
  1. Set a video id in index.html which will be used in this example. (This video needs to be on the same channel that was set up in Step 2.)
    ...
        <iframe src="http://www.ustream.tv/embed/recorded/114661532?html5ui" style="border: 0 none transparent;"  webkitallowfullscreen allowfullscreen frameborder="no" width="480" height="270"></iframe>
    ...

Video ID

  1. Run demo on localhost
php -S 127.0.0.1:8000
  1. Open demo in your browser: http://127.0.0.1:8000/index.html (Recommended to use incognito mode)

Resources

IBM Cloud Video Viewer Authentication API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published