Demos
Try some exmaples and your own streams.
Configuration options
Full list of configuration options.
Option | Type | Default | Description |
---|---|---|---|
autoplay |
Boolean | false |
Play media automaticaly. |
element |
jQuery object |
|
Video element to replace or lement to append new player instance. |
debug |
Boolean | false |
Output log in console. |
aspectRatio |
Number |
|
Aspect ratio for player UI container size calculation. Aspect is calculated as height/width.
Default value comes from most common 16:9 aspect.
|
width |
Integer |
|
Resolution breakpoint for none responsive layouts.
If
responsive is true , this option is ignored and parent width is used instead.
|
errorRecoveryAttemptLimit |
Integer | 3 |
Error recovery attemps (deprecated). |
i18n |
Object |
|
Translation options. |
muted |
Boolean | false |
Initial mute option (overrides player cookie value). |
pauseOnClick |
Boolean | true |
Play/pause media on click in player area. |
playbackDebug |
Boolean | false |
Extended debug info (extreme verbose mode). |
pluginMode |
Boolean | false |
Embed dashifjs or hlsjs scripts automaticaly when needed. |
plugins |
String | 'julia-player/dist/js/lib' |
Path to dashifjs and hlsjs libraries. |
responsive |
Boolean | true |
Set player responsive resizing (based on parent element width). |
skip |
Integer | 5 |
Skip video when left/right arrow key is pressed (in seconds). |
source |
Object |
|
Source file definition, if video element is not used. |
thumbs |
Boolean | false |
Show thumbnails on timeline mouseover. |
volume |
Integer | -1 |
Initial volume (overrides player cookie value). Default player volume is 25 (25% when default -1 is set) or cookie last state setting. |
zIndexStart |
Integer | 1 |
CSS starting z-index for player object. |
dashConfig |
Object |
|
Configuration for dashif library. |
hlsConfig |
Object |
|
Configuration for hlsjs library. |
Callbacks
Full list of player callback functions.
Method | Attached to event | Description |
---|---|---|
onDurationChange |
durationChange |
Run function when media duration has been changed. |
onFullscreen |
fullcreen |
Run function on player fullscreen. |
onFullscreenExit |
fullscreenExit |
Run function on player fullscreen exit. |
onInit |
init |
Run function when the player has been initilaized. |
onModeSet |
modeSet |
Run function when the player plugin mode (legacy | dash | hls ) has been set. |
onPlay |
play |
Run function on player playback start. |
onPause |
pause |
Run function on player pause. |
onResize |
resize |
Run function when the player has been resized. |
onSeek |
seek |
Run function on player seek video. |
onStop |
stop |
Run function when the player has been stopped (video ended). |
onSourceSet |
sourceSet |
Run function when the player media source has been set. |
onTime |
not attached |
Run function when the player reach timestamp. This function is fired only once.
onTime value is not function but object based on human readable timestamps.
|
onTimeUpdate |
timeUpdate |
Run function when the player media position has been chnaged (seek or playback continues). |
onVolumeChange |
volumeChange |
Run function when the player volume has been changed. |
Download
Download from Github.
If you like it, support it
Donation BTC address:
18kBKQSXVMGt4kTDy38r9MFrcifhPm4cqk
Thank you.