Closed perttumyry closed 9 years ago
Wouldn't the output be the following?
{
"360" : [
{
data-res: "360",
src: "video-file-360.webm",
type: "video/webm"
},
{
data-res: "360",
src: "video-file-360.mp4",
type: "video/mp4"
}
],
"480" : [
{
data-res: "480",
src: "video-file-480.webm",
type: "video/webm"
},
{
data-res: "480",
src: "video-file-480.mp4",
type: "video/mp4"
}
]
}
Either way, you're right that we shouldn't mess with the order. I'll see about make that change.
We noticed that when using multiple different types of sources the plugin stacks these types to array in reverse order.
Here's an example.
This ends up the be a following array in player.availableRes.
So the 360 and 480 orders are correct, but webm sources are placed before mp4 sources. This could be rather easily fixed by replacing
available_res[current_res].push( sources[i] );
withavailable_res[current_res].unshift( sources[i] );
in video-quality-selector.js line 221. Do you think you could commit such a change to the project?