Skip to content

Showcase of how to use the Bitmovin 3rd party licensing in combination with the Adaptive Streaming Player.

Notifications You must be signed in to change notification settings

bitmovin/licensing-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

3rd Party Bitmovin Player Licensing

Overview Diagram

This is a simple implementation of a 3rd party licensing server which demonstrates the usage in combination with the Bitmovin Adaptive Streaming Player and our backend application.

If a player instance has third-party-license-checking enabled, all license calls are passed to a specified 3rd party license server. To enable third-party-license-checking, two things need to be specified:

  • An API path which implements a certain behavior as described below.
  • A failure action which defines what to do if an error or timeout occurs when calling this API path.

The 3rd party license server is called by an HTTP/POST request with the following payload:

{
   "domain"    :"dummydomain.com",
   "key"       : "your_player_licensekey",
   "version"   : "player_version",
   "customData": {
     "thirdPartyKey" :"key1",
     "param2"        :"data2"
   }
}

The content of the 'customData' field can be of arbitrary and is specified in the player configuration. Its structure is designed as an array of key/value pairs of type Object which is passed through to the 3rd party licensing server.

Response-codes: The license of a player instance is allowed or denied based on the following HTTP response codes of the 3rd party licensing server:

HTTP code 2xx -> allow license
HTTP code 4xx -> deny license
HTTP code 5xx -> allow or deny based on configured failure action

To make sure the player gets a license decision in any case, a failure action has to be configured. The failure action specifies whether Bitmovin's licensing backend should either allow or deny a license in case the 3rd party licensing server returns a 5xx HTTP error code or the request times out. A timeout happens when the 3rd party licensing server does not respond within 1000ms to a license call.

The HTTP response of the 3rd party licensing server can contain a "customData" field which is passed through to the player.

More information about the 3rd party licensing and the player configuration and API in general, can be found in our online documentation.

About

Showcase of how to use the Bitmovin 3rd party licensing in combination with the Adaptive Streaming Player.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages