Configuring embedded videos

Configuring embedded videos

by Benedikt Köhler -
Number of replies: 1

Hi there,


on out Moodle site we have prob with our video player.

Normaly we have an old Moodle 7.1 in use with an old jwplayer.

The videos are embedded by a template in the videoeasy filter 

(HTML5 tag).


If I open a subsite in our Moodle  presence with embedded videos , I can only the 

black rectangle, where I expect to see a generated preview of that

video (m4v - File). When I click on the black retangled I can

watch the video.


So I updated to Moodle 7.2 which allowed me to install a new 

jwplayer from Moodle. But the behaviour of the video does not change.




in "lib/medialib.php" I can do some settings for the video5.

Most of all I can set a value for the preload - attribute


<span class="mediaplugin mediaplugin_html5video">

<video $idtag controls="true" $size preload="none" title="$title">

    $sources

    $fallback

</video>

$sillyscript

</span>


Values for preload can be "none", "metadata" and "auto". 

I could see no changes of the video behaviour with all values.


What we want is to let the user see a preview

of all embedded videos without loading all videos entirely in order

not generate to much traffic in case of many videos on a site.

This is because too much traffic could cause probs for

the drag and drop


When the site is load the video is in a tag with a class

"jw-state-idle". Which is probably what we want. But how do get

a preview of the video ? Settings ? Do you recommend other players ?


Thanks in advance for your help!


Best,


Benedikt

Average of ratings: -
In reply to Benedikt Köhler

Re: Configuring embedded videos

by Justin Hunt -
Picture of Particularly helpful Moodlers Picture of Plugin developers
Hi Benedickt

Its not clear what version of Moodle you have. It probably is 3.x not 7.x (because we did not get that far yet) . But it could also be 2.x or even 1.x

The most likely cause of the problem you describe is double filtering. This happens when two filters try to filter the same thing, one after the other. That would be the Moodle multimedia plugins filter and the Videoeasy filter. In the case of a video link -> video player, it really messes things up.

You could try disabling the multimedia plugins filter for video. Actually the recent templates should all mark up any players they create so that double filtering does not happen. But you are using old versions so its hard to know what you have available there.

This help doc for the Poodll filter covers your scenario, the information all applies to VideoEasy too, so you can follow all the advice in there.
https://support.poodll.com/en/support/solutions/articles/19000077089-“my-audio-player-is-just-a-black-rectangle-with-no-controls”