Quantcast
Channel: support.jwplayer.com :: Streaming
Viewing all articles
Browse latest Browse all 2800

default quality in streaming

$
0
0
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 = "" + link.label + ""; $(".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.

Viewing all articles
Browse latest Browse all 2800

Trending Articles