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

default quality in streaming


hello! i have problem with default quality, have 360p and 720p quality video from camera, i need that default quality will be 360p.
I read themes about default quality, but i not find answer.

Here code:
playerInstance.setup({
modes: [
{ type: "html5" }
],
sources: placements[key].links,
rtmp: {
bufferlength: 3
},
fallback: false
});
placements[key].links.forEach(function(link, linkKey){
if (link.file.match(/^rtmp:\/\/.*/i)) {
var switchClass = "switchClass";
var linkHtml = "<div class=" + switchClass + " data-link=" + link.file + ">" + link.label + "</div>";
$(".switcher_block").append(linkHtml);

}
});
$(".switchClass").click(function() {
var link = $(this).data("link");
var label = $(this).data("label");
playerInstance.setup({
modes: [
{ type: "html5" }
],
sources: {file: link, label: label},
rtmp: {
bufferlength: 3
},
fallback: false

and sorry for my english.

11 Community Answers

Alex

JW Player Support Agent  
2 rated :

Hi, there.

As per our HD Quality Toggling support article, the first source provided will be the default source and sources should be provided in order from lowest to highest quality.

Please let me know if you need any more help or have any other questions.

Thank you!

Oleg4ks

User  
0 rated :

methods in manual not works with broadcasting from camera.

Alex

JW Player Support Agent  
1 rated :

Hi, there.

Can you please elaborate? Are you streaming using one URL?

Oleg4ks

User  
0 rated :

some few

Alex

JW Player Support Agent  
1 rated :

So, you’re streaming with multiple URLs? Do you have a link to a page with the player on it so I may take a look?

Oleg4ks

User  
1 rated :

http://zarit.net

Oleg4ks

User  
1 rated :

and yes, multiple urls

Alex

JW Player Support Agent  
1 rated :

I do not see a video player at http://zarit.net – can you please let me know where to find it?

Oleg4ks

User  
1 rated :

video player on map,

Alex

JW Player Support Agent  
1 rated :

Hi, there.

The HLS streams on in that player are not working for me. I cannot even ping them in the command line, where I receive a “Connection reset by peer” error.

O...

User  
1 rated :

now is working, help please,
Some tags can not show video

This question has received the maximum number of answers.