When calling the 3Q video player via a constructor, it is possible to include multiple configuration attributes:
<script type="text/javascript">
var js3qVideoPlayer = new js3q({
dataid: '5c3b0910-8850-11e7-9273-002590c750be',
container: 'player1',
autoplay:true
});
</script>
Table of Contents
Parameters
If the player is protected, you need to generate and configure
key
andtimestamp
.
General
Parameter | Type | Default | Description |
---|---|---|---|
dataid | String | - | Video or Live-stream |
container | String | - | The container where the player is placed. |
key | String | - | Needed if player is protected |
timestamp | Timestamp | - | Needed if player is protected |
autoplay | Boolean | false | |
allowmutedautoplay | Boolean | false | If autoplay is true and autoplay is not working, the player tries to autoplay the video muted. |
resumeAt | Integer | 0 | Resumes playback at given time. |
initialQuality | Integer | 360 | The initial qualitiy level. Choose between 1080, 720, 480, 360, 240 and 144. The higher the value, the longer the video needs to cache before it can begin playing. If you choose a low value, the the video will start playing faster, but begin with a lower initial quality level. After the first few seconds playback quality will adapt automatically to the user's available bandwidth. |
playbackRateMenu | Boolean | false | Show playbackRate menu |
motionposter [BETA] | Boolean | false | Displays a motion thumbnail instead of a static image/poster. |
loop | Boolean | false | |
muted | Boolean | false | |
seo | Boolean | false | JSON-LD Data placement |
preventNativeFullScreenOnIOS | Boolean | false | Prevent the player from switching to native mode on iOS |
preview | Boolean | false | Limits the duration of the Video |
previewtime | Number | 30 | Sets the duration of the preview |
fullscreenOnOrientationChange | Boolean | false | Mobile only. Automatically switch to fullscreen, when the device gets rotated horizontally |