- Posts: 16
How To / General
[Solved] Embedded video not showing in wrapper
- David Alcock
- Topic Author
- Offline
- New Member
-
Less
More
11 years 2 months ago #11
by David Alcock
Replied by David Alcock on topic Embedded video not showing in wrapper
Antonio, thanks for giving me some time, it is much appreciated! Reading on the Moodle forum that one or two other people had experienced a similar issue I also read that one person had decided to install Poodll in the hope of letting Poodll take over the embedding and playing, and this had solved the problem for him. So I have just done the same. Installing Poodll did enable me to see the video embedded in Joomdle (that was the problem I've been trying to solve) but it started in autoplay and was far too large. So as well as the Poodll install I decided to change the media player. I had left Flowplayer as the default Moodle Media player. I think that was the problem, actually. Indeed, even if I change the media player to JWPlayer I get a better result. But using Poodll is even better and it has also enabled me to very easily set the size of video, prevent autostart, etc. Incidentally, I also selected to use html5 in every available setting within Poodll setup, so perhaps that has had a bit of an effect also. However, I suspect the solution was changing the media player. Perhaps some readers will think that was an obvious thing to need to do but I have to say that I have not come across instructions to change the media player when embedding video at all.
All of the above has been done on my dummy site, a bare test bed. Tomorrow morning I am going to install Poodll on the main site. I will report back if all is well.
All of the above has been done on my dummy site, a bare test bed. Tomorrow morning I am going to install Poodll on the main site. I will report back if all is well.
The topic has been locked.
- David Alcock
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
11 years 2 months ago #12
by David Alcock
Replied by David Alcock on topic Embedded video not showing in wrapper
Antonio, I am taking you up on this kind offer and I have emailed you, because I realise that I have still got the same problem.
Thank you
Thank you
The topic has been locked.
- Antonio Durán
-
- Offline
- Moderator
-
Less
More
- Posts: 7926
11 years 2 months ago #13
by Antonio Durán
Replied by Antonio Durán on topic Embedded video not showing in wrapper
In case anyone reads this, here is a final recap.
- finally problem was not showing in wrapper, but instead in course view.
- problem was happening when showing videos in labels
Problem was in file moodle/auth/joomdle/auth.php, function get_label().
Code now is:
You just need to put those lines in reverse order:
- finally problem was not showing in wrapper, but instead in course view.
- problem was happening when showing videos in labels
Problem was in file moodle/auth/joomdle/auth.php, function get_label().
Code now is:
Code:
$mylabel['content'] = format_text($mylabel['content'], FORMAT_MOODLE, $options);
$mylabel['content'] = file_rewrite_pluginfile_urls ($mylabel['content'], 'pluginfile.php', $context->id, 'mod_label', 'intro');
Code:
$mylabel['content'] = file_rewrite_pluginfile_urls ($mylabel['content'], 'pluginfile.php', $context->id, 'mod_label', 'intro');
$mylabel['content'] = format_text($mylabel['content'], FORMAT_MOODLE, $options);
The topic has been locked.
- David Alcock
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
11 years 2 months ago - 11 years 2 months ago #14
by David Alcock
Replied by David Alcock on topic Embedded video not showing in wrapper
I can confirm that this has solved my problem of not being able to view mp4 built into a Moodle label from within a Joomdle wrapper. I applied the fix and it works perfectly, once I had cleared all caches (browser, Moodle, Joomla) to be sure.
Thank you, Antonio. Excellent service and a simple resolution!!
Thank you, Antonio. Excellent service and a simple resolution!!
Last edit: 11 years 2 months ago by David Alcock.
The topic has been locked.