Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

themotleyfool/videojs-ooyala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video.js - Ooyala Source Support

Allows you to use an Ooyala video within Video.js.

How does it work?

Include the script vjs.ooyala.js will add Ooyala as a tech. You just have to add it to your techOrder option. Then, you add the option src with your Ooyala player and content ids.

<!DOCTYPE html>
<html>
  <head>
    <link href="video-js.min.css" rel="stylesheet" />
  </head>
  
  <body>
    <video id="video" class="video-js vjs-default-skin" controls autoplay preload="auto" width="640" height="360">
    </video>
    
    <script src="video.min.js"></script>
    <script src="vjs.ooyala.js"></script>
    <script>
      videojs('video', { "techOrder": ["ooyala"], "playerId": 'e18ab1da1813483499554ea2d8e67fbd', "contentId": "w3ZHc0Njr33Tdp-RRcwfZMjaOrmzOP82", "type": "video/ooyala"});
    </script>
  </body>
</html>

To minify

  1. npm install uglify-js -g
  2. uglifyjs src/media.ooyala.js -o vjs.ooyala.js

Special Thank You

Ported directly from the YouTube player.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •