Giter Site home page Giter Site logo

vuplay-jwplayer's Introduction

VUPLAY JW Player

code style: prettier Built with Grunt

Description

This repository will demonstrate how to use Studio DRM with JW Player. If you have any questions please contact [email protected]

This repository is currently targeted at version 8.24.3 of JW Player

Instructions

Install dependencies

  1. Install npm
  2. Install the grunt-cli: npm install -g grunt-cli
  3. Clone the repository: git clone [email protected]:Vualto/vualto-jwplayer.git
  4. Navigate to the project's root folder: cd studiodrm-jwplayer
  5. Install the dependencies: npm install

Build and run the dev environment

  1. Open the repository in your favourite javascript editor.
  2. In the file studiodrm-jwplayer.js replace <dash-stream-url> with your MPEG-DASH stream URL.
  3. In the file studiodrm-jwplayer.js replace <hls-stream-url> with your HLS stream URL.
  4. In the file studiodrm-jwplayer.js replace <fairplay-cert-url> with the URL to the Fairplay certificate. Please contact [email protected] if you do not have this URL.
  5. In the file studiodrm-jwplayer.js replace <your-studiodrm-token> with a Studio DRM token. Details can be found in the Studio DRM Token v2 documentation
  6. In the file index.html replace <cloud-player-library-url> with the cloud player library url found in the "Player Downloads & Keys" section of your JW Player account on the dashboard. Please refer to the following documentation for guidance on retrieving your cloud player library url
  7. Run npm run build in the project's root. This will create a dist folder that contains all the files needed to run this demo.
  8. Add the host jwplayer.studiodrm.local to your local machine's hosts file.
  9. Load a supported browser and go to https://jwplayer.studiodrm.local:14703

You will need an enterprise license with JW Player in order to playback DRM encrypted content. Please contact [email protected] or see JW Player pricing for more information.

Retrieve the JW Player key and copy the license key for the appropriate player in the Downloads section.

In order to allow DRM encrypted playback in chrome (https://goo.gl/EEhZqT), SSL has been enabled for the demo. You will get a warning about an invalid cert NET::ERR_CERT_AUTHORITY_INVALID but this can safely be ignored.

Browser support

The browser must support encrypted media extensions. Currently this includes the latest versions of Chrome, Firefox, Internet Explorer 11 and Edge. For a complete breakdown of supported media extensions please contact [email protected]

Useful links

Studio DRM

JW Player

mpeg-DASH

HLS

Encrypted media extensions

Build tools

vuplay-jwplayer's People

Contributors

bengo1990 avatar dependabot[bot] avatar jonmalljw avatar lorenzo-vualto avatar maniland avatar somerobmitchell avatar stefanovualto avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

vuplay-jwplayer's Issues

Unable to use standard vudrm fairplay certificate url.

The standard vudrm url to retrieve a Fairplay cert from is:
https://fairplay-license.drm.technology/license

Retrieving the Fairplay certificate from this location requires a vudrm token to be added to the request as a header using the key x-vudrm-token. It is not currently possible to add a header to the certificate request with JWPlayer.

The workaround is to host the certificate in a location that does not require authentication. This does not break any rules outlined by Apple and the authentication is an additional protection employed by vudrm. As such this workaround is safe to use in production.

Can I use the repo to download unknown type of live stream?

Hello:
I can login to watch some live sports games from one small video web site. But there is no customer service, I don’t know how to set up a customer account.
However, I found that the web site uses JWPlayer to play live videos, and from the web site JavaScript, I found the HLS source seems to be available for all browser without login. It is working for Google Chrome, Microsoft Edge, and Firfox without login.
The following is one of such URL, which I can watch live sport game:
https://bingsport.com/1proxy.php?id=g_1
Other examples like:
https://bingsport.com/1proxy.php?id=g_2
https://bingsport.com/1proxy.php?id=g_3
......
https://bingsport.com/1proxy.php?id=g_20

Depend on what time you try, in the European nights, there are always some live sports games.
I tried to use Youtube-DL.exe to download it, but I got error message:
[generic] 1proxy: Requesting header
WARNING: Falling back on generic information extractor.
[generic] 1proxy: Downloading webpage
[generic] 1proxy: Extracting information
ERROR: Unsupported URL: https://bingsport.com/1proxy.php?id=g_1
I want to know what type of live stream this URL is using, and how I can download it?
For example, if I want to download this type of live stream and save as an MP4 file in my local disk using this library, what I should do?
But I know the type of live stream can be played by jwplayer. The web page uses jwplayer verion 8.20.5 to play this type of live sports stream.
Thanks,

widevine not supported

Currently widevine is not supported when using vudrm with JWPlayer.

This is in discussion with JWPlayer as it needs shaka functionality exposed:

  • We need the ability to register a request filter with shaka as per the documentation .
  • We need access to the drmInfo function on the shaka player instance in order to retrieve the KID. See documentation.

See the vuplay-shaka repo for detail on how vudrm works with JWPlayer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.