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
  1. Tutorials

Use the Player with Require

Implementing 3q.js with require.js

For using 3q.js player in combination with require.js, you have to add this configuration to require.js.

// require.js config
requirejs.config({
  // Other configuration
  shim: {
    // Other shims
    'https://player.3qsdn.com/bin/hls.min.v0.14.16.js': {
      deps: ['require'],
      exports: 'Hls',
    },
  },
})

// later in code
window.Hls = Hls
PreviousSwitch between different livestreamsNextUse Video Loop as background

Last updated 1 year ago