Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

questions about code


Just wondering the best way and right way to do this code. I have looked everywhere and cant find any example or info in using: default, Label, type, preload.
should I use them, what is the best way, just cant fine any info on anything that explains all this.

there is an example of my code, what is the best way to do this, and do I need to use these, and do I do for each file, etc, etc,...

"playlist": [{

"sources": [{
"default": false,
"file": "http://70.167.119.116:1935/vod/smil:Alyssa_recital_1.smil/manifest.mpd",
"label": "0",
"type": "mpd",
"preload": "none"
},{
"default": false,
"file": "http://70.167.119.116:1935/vod/smil:Alyssa_recital_1.smil/jwplayer.smil",
"label": "0",
"type": "rtmp",
"preload": "none"
},{
"default": false,
"file": "http://70.167.119.116:1935/vod/smil:Alyssa_recital_1.smil/playlist.m3u8",
"label": "0",
"type": "hls",
"preload": "none"
}],
"image": "/images/wowza/alyssa_recital_1.jpg",
"title": "Alyssa's First Piano Recital",
"description":"Alyssa's first recital, she has been playing piano for 3 months.",

},{

sources: [{
"file": "http://70.167.119.116:1935/vod/smil:recital-practice-1.smil/manifest.mpd",
},{
"file": "http://70.167.119.116:1935/vod/smil:recital-practice-1.smil/jwplayer.smil",
},{
"file": "http://70.167.119.116:1935/vod/smil:recital-practice-1.smil/playlist.m3u8",
}],
"image": "/images/wowza/recital-practice-1.jpg",
"title": "Practicing Recital Songs.",
"description": "Alyssa's practicing her two recital songs with her piano teacher.",

},{

1 Community Answers

George

JW Player Support Agent  
0 rated :

Hi,

preload is a setup configuration.
https://developer.jwplayer.com/jw-player/docs/developer-guide/customization/configuration-reference/#setup

It should look something like this:

jwplayer(‘container’).setup({
playlist:[{},{}],
autostart:false,
preload:“none”,

});

This question has received the maximum number of answers.