Advanced FLV Filter

Aug 27th 2008
One Comment
respond
trackback

For the first time in quite a long while I have finally done a little bit of Moodle development gain. I love working with Moodle code and find it quite easy to manipulate. If you have a little coding skills under your belt I strongly recommend you head to the moodleDocs and start getting your hands dirty. It is surprisingly easy and very rewarding.

Today I started (and finished) creating a new advanced FLV filter to replace the one in the moodle core. While the standard one works very well and does an admirable job, I found myself wanting to more easily control elements across my site such as player size, a placeholder graphic, auto playing of movies and the ability to hide the control bar. So today I made a new player that does all of that and it is controlled through the filter admin interface

Installation Instructions

  • Download the new filter from the modules and plugins database on moodle.org
  • Extract the FLVplayer folder from the archive
  • Upload the FLVplayer folder to your moodle’s “filter” directory
  • THATS IT! your all installed and ready to go. You will now see FLVplayer as a new filter in admin.

Important Note

Please make sure if you are going to use this filter that you disable the existing FLV filter built into moodle. Details are in the accompanying video.

If there are any other additional functions you think that should be added to this filter please make sure to leave them in the comments.

Popularity: 93% [?]

Share/Save/Bookmark


This post is tagged , , , ,



Explore Recent

One Comment

Leave a Reply

google.load("language", "1"); var curstate = 0; var hasloaded = 0; function bnc_show_translated() { if (hasloaded == 0) { bnc_lang_callback(); hasloaded = 1; } for (i = 0; i < 0; i++) { var elem = $("bnc_original_" + i); if (elem) { if (curstate) { elem.show(); } else { elem.hide(); } } } for (i = 0; i < 0; i++) { var elem = $("bnc_trans_" + i); if (elem) { if (curstate) { elem.hide(); } else { elem.show(); } } } if (curstate) { $("bnc_trans_state1").show(); $("bnc_trans_state2").hide(); curstate = 0; } else { $("bnc_trans_state1").hide(); $("bnc_trans_state2").show(); curstate = 1; } } function bnc_detect_div(div_id) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; if (text.length > 0) { google.language.detect(text, function(result) { if (!result.error) { if (result.language != "en") { if (result.confidence > 0.25) { $("bnc_translating").show(); bnc_xlate_div(result.language, div_id, "en"); } } } } ); } } } function bnc_xlate_div(src_lang,div_id,o_lang) { var text = document.getElementById(div_id); if (text) { text = text.innerHTML; google.language.translate(text, src_lang, o_lang, function(result) { var translated = document.getElementById(div_id); if (result.translation) { translated.innerHTML = result.translation; } }); } } function bnc_lang_callback() { } function bnc_startup() { bnc_xlate_div("en", "bnc_translate_info", "en"); bnc_xlate_div("en", "bnc_translate_info2", "en"); } google.setOnLoadCallback(bnc_startup);