Player Reference

Mandatory parameters


LicenseKey is used to identify the Player, it defines a list of allowed domain names where player can be initiated


  • String - URL for a video file or playlist/manifest;

  • Object:

    • src (mandatory String) - URL for the desired video or playlist/manifest;
    • type (optional String) - MIME type for the informed video. In case it is not informed, the player will try to use sensible defaults;
  • Array form - an array containing objects in the same form as above. The player will try to run the first item and the followings will be used as fallbacks, whose priorities will respect the informed order;

    videoSources: [
        { src: '', type: 'application/dash+xml' },
        { src: '' },
        { src: '' },

Optional parameters

Use optional parameters to adjust player functionality


If it is specified, it adds title aligned to top left corner of the video player

    titleBar: {
        text: 'Hello Qencode Player'


Adds share button to control panel

    social: {
        shareUrl: '',
        twitter: '',
        facebook: '',


Use custom colors for player's UI

        controlBarText: "#ffffff",
        controlBarIcons: "#ffffff",

        timeSliderRail: "#366fe0",
        timeSliderProgress: "#366fe0",
        timeSliderLoaded: "#9a9a9a",

        interfaceBackground: 'rgba(0, 0, 0, 0.76)',

        menuText: 'rgba(255, 255, 255, 0.85)',
        menuBackground: 'rgba(38, 38, 38, 0.85)',
        menuOptionHovered: 'rgba(56, 56, 56, 0.5)',
        menuOptionSelected: 'rgba(75, 75, 75, 0.74)',
        menuOptionSelectedMarker: 'rgba(9, 170, 222, 0.85)'         


Usecase when each thumbnail has 1 image file

width and height parameters are optional, if not specified the default thumbnail size is 120x68 pixels.

        width: 120,
        height: 68

Using sprites for thumbnails

In this case you just need to specifie url for VTT file, thumbnail size is based on the dimensions in VTT file. For fastest download we recomend to use sprite image files in JPEG format with 5 rows and 5 columns (5x5) or 10x10 and each image size of 160x90

        src: ''


Type: Object Array
Mandatory: no
Default: undefined

  • When left undefined - no WebVTT tracks will be available

  • Object:

    • src (mandatory String) - URL for a valid WebVTT file containing a text track;
    • label (mandatory String) - text to label the text track in the player's list;
    • language (mandatory String) - a valid BCP 47 language tag describing the text track's language;
  • Array: an array of objects following the interface described above;

    textTracks: [{
        src: 'example.vtt',
        label: 'English',
        language: 'en'
    }, {
        src: 'esperanto.vtt',
        label: 'Esperanto',
        language: 'eo'

Parameters that control player's playback

      playback: {
        loop: true,
        muted: true,
        autoplay: true, // autoplay will work only if muted is true
        controls: false,        
        pauseWhenNotVisible: true,
        autoLoadingVideoQuality: true // show quality of loading video

Layout parameters

By default the player size is set to fluid mode, that means that after player is initiated it will attempt to calculate aspect ratio based on the video dimentions after player loads metadata and player will fit video. If aspectRatio is defined, player will be initiated according to that and player size will not change after video is loaded. In fill mode player will take all available space of its container.

        aspectRatio: '16:9',
        fluid: false, // if fluid set to true it will override aspectRatio
        fill: true,