LogoLogo
  • Player API
    • Basic Usage
    • Configuration
    • Labels
    • Themes
    • Events
    • Key Bindings
    • Methods
  • Plugins
    • Call to Action
    • Branding
    • Watermark Protection
    • Playlists
    • Multi Channel Livestreams
    • Comments
    • Live Reactions
    • Quizzing
    • Peer2Peer (E-CDN)
    • Consent String
  • Release Notes
    • v5.3
    • v5.2
    • v5.1
    • v5.0
  • Tutorials
    • Switch between different livestreams
    • Use the Player with Require
    • Use Video Loop as background
  • Knowledge Base
    • Using a custom player for streaming
Powered by GitBook
On this page
  • Peer5
  • Strivecast
  • Hive
  1. Plugins

Peer2Peer (E-CDN)

PreviousQuizzingNextConsent String

Last updated 1 year ago

You can use P2P E-CDN Service Providers by following the configuration instructions below.

To do so, you need to connect your project from or and pass the options to the configuration. You cannot use both services in parallel.

Peer5

<div id="player"></div>

<script type="text/javascript">
  var js3qVideoPlayer = new js3q({
    dataid: '5c3b0910-8850-11e7-9273-002590c750be',
    container: 'player',
    p2p: {
      peer5: 'your-peer5-project-id',
    },
  })
</script>

Strivecast

<div id="player"></div>

<script type="text/javascript">
  var  js3qVideoPlayer = new js3q({
    dataid: '5c3b0910-8850-11e7-9273-002590c750be',
    container: 'player',
    p2p: {
      strive: {
        accountId: 'your-strive-account-id' // This must be passed as string
        deploymentId: 'your-strive-deployment-id' // This must be passed as string
      }
    }
  });
</script>

Hive

<div id="player"></div>

<script type="text/javascript">
  var js3qVideoPlayer = new js3q({
    dataid: '5c3b0910-8850-11e7-9273-002590c750be',
    container: 'player',
    p2p: {
      hive: {
        ticketUrl: 'your-hive-ticket-url',
        techOrder: ['HiveJS'], // optional, Techs available: "HiveJava", "HiveJS", "StatsJS",
      },
    },
  });
</script>
Strivecast
Peer5