lucisgit / moodle-filter_jwplayer

Moodle (<=3.1) filter that allows using JW Player for playing HTML5 and flash content.
https://moodle.org/plugins/view/filter_jwplayer
6 stars 6 forks source link

Priority reversed for links with multiple streams #51

Closed owenbarritt closed 8 years ago

owenbarritt commented 9 years ago

Links containing multiple streams reverse the order (and hence the priority) of the streams when embedded in the player.

http://url.for/file.m3u8#http://url.for/file.smil#http://url.for/file.mp4

Would result the sources for the player being:

{file: http://url.for/file.smil}, {file: http://url.for/file.m3u8}, {file: http://url.for/file.mp4}

Meaning the smil stream becomes prioritised even though the user specified the hls stream first.

kabalin commented 8 years ago

Merged for both branches, thanks for contributing the fix @owenbarritt!