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

Last updated