
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.