Skip to content

Latest commit

 

History

History

samples

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

samples-npm-html5-sdk

This repository contains sample projects that setup the THEOplayer HTML5 video player SDK through NPM through various popular bundlers. These projects serve as bootstrap templates, and might be insightful to app developers.

The available sample projects:

Usage

  1. Navigate to a specific sample project folder using your terminal or command prompt, for example webpack/javascript/.
  2. Run npm install to install the dependencies.
  3. Enter a valid value for the license string in util/constants.js. Refer to the Frequently Asked Questions below if you're unsure on how to proceed with this step.
  4. Run npm run build to create a production-level bundle, or npm run build-dev to create a development-level bundle.
  5. Run npm run serve to start a local web server.
  6. Open http://localhost:8080 in your browser, or the server address suggested after executing the npm run serve command.

Frequently Asked Questions

  • Are there any prerequisites to using this repository and its sample projects?

    • Yes, there are prerequisites. You must have a valid THEOplayer license to successfully use the sample projects. Refer to the "Create an SDK" and "Configure license" sections in our getting started guide for more information.
  • Where do I find my value for the license string in util/constants.js?

    • You can acquire a license at https://portal.theoplayer.com/getting-started. Log in, build a Web SDK (or navigate to an existing one), and copy the license string to your clipboard. Then, paste this value in util/constants.js. The green rectangle in the screenshot below points out where you can find this string on your SDK page.
  • Are there other examples where THEOplayer is used through NPM?