I've just uploaded a new activity module that is the successor to the FLV Player activity module. It has a lot more features and functions, including improved support for JW FLV Player plugins, a simpler SWFObject 2.2 embed method that is "gentler" with users without admin privileges and a more logical mod_form layout.
Here's the project site: http://code.google.com/p/moodle-mplayer/
If you can install it on your local testing server and report back any changes you'd like to see or any problems that you have with it, that'd be great. Please report back to the project site issues section so I can get back to you much faster.
P.S. I had to create a new module because it breaks some of the settings of the FLV Player module.
I've set up some demos of a lot of the features, though not all:
http://matbury.com/moodle/course/view.php?id=9#section-9 (Login as a guest)
If anyone wants to test it out on their local development servers, I'd love to hear back from you about it.
Thanks in advance!
All the best,
Matt
Please tell me I am wrong.
Apart from that I really love it..
- Sankar.
Unfortunately, Flash Player doesn't support the WMV media container and, as far as I know, Adobe have no plans to support it in the future.
There are several applications that can transcode from WMV to other formats that Flash Player supports but, if you possibly can, recode your video files from the original source video files. Transcoding degrades the video quality substantially.
For progressive download, i.e. videos stored in the course files directory (moodledata), also make sure that whatever software you use to encode your video puts the "MOOV atom" at the beginning of the video file, not at the end. If the MOOV atom is at the end, the entire video file has to download before playback can commence. This can take several minutes depending on Internet bandwidth and file size.
There's an Adobe AIR application that will move the MOOV atom in some video files for you without having to recode the video: http://renaun.com/blog/2008/02/25/250/
I hope this helps!
Matt
As I'm not a techie, I couldn't figure out how to launch the QTIndexSwapper nor the moovrelocator to fix the mp4 index but the MP4 FastStart tool worked like a charm.
Hi Matt.
i´m trying to do some grouping on the FLV player resource, but i found that this action is not available on this aplication.
Do you know if there is any possibility to creat this option for the FLV player resource, so i can deside wich video to run for a diferent group on my course?
thanks for the information
Mathieu
I've just published an article about the Media Player module on my blog and I've recorded a demo video, deployed in my Moodle (the link is at the end of the article), demonstrating how easy it is to use:
http://matbury.com/wordpress/2010/02/25/new-media-player-module-for-moodle/
The video is very high resolution, 1280x720, but compressed using H.264 at 500Kbs so most people should be able to view it without too many problems. Please let me know if it stutters or takes too long to start!
All the best,
Matt
I have to know how to handle it and put an program into my website to enable flv online player, such as Youtube, etc. www.cnjete.net
Thank you so much for adding mplayer - it is very helpful and useful.
I am currently organizing new courses on our LMS at http://onlinelearning.fpmt.org which have alot of video - one course has 14 sessions and each video is about 2 hours long.
Up to now i have just used progressive download for the videos through Moodle except for oneteaching which is outside Moodle and which is streaming video on a Red5 server (accessed from http://onlinelearning.fpmt.org/mod/resource/view.php?id=484)
These video files work well from this page and play fast and i configured mplayer to link to this red5 streaming server by changing the code to add the address etc. I then had this server as an option in mplayer and was able to add the video files for testing.
So when i view these streaming videos they start and then pause and just keep loading like it was buffering. If i fast forward in the file it shows a picture of the video at that point in the file and then starts playing for about 1 second and then starts loading / buffering on screen.
Any help / advice appreciated on what you think might be the source of this problem and please contact me for any further details or access to the test course i am using.
Eamon
Eamon Walsh
Online Learning Administrator, FPMT Inc
http://onlinelearning.fpmt.org
Thank you for you kind words and support.
I don't provide support for streaming media services as this is part of the JW FLV Player itself, streaming media can get very complicated and their experts and forums are much more helpful than I could ever be. The JW FLV Player project site is here: http://www.longtailvideo.com/players/jw-flv-player and they have public help forums and an issues tracker that can help you with this.
Good luck and all the best!
love the player, makes life so much easier.
have a problem though, because I am a complete muppet when it comes to writing xml code... is there an easy way to create a playlist without writing a load of xml code?
What i would like to do, is create a media player activity, then be able to choose from our own site, ALL the videos as a group (or playlist). Currently, all i can do is select one video clip and then create a new media player for each clip. Is there a plugin for creating playlists ? or am i missing something completely here...?
any help appreciated.
If you host your videos on YouTube, they have a lot lot of facilities for creating and managing playlists: http://www.google.com/support/youtube/bin/search.py?ctx=en-uk:searchbox&query=playlist
The JW FLV Player supports a number of different playlist formats so you could look for any sites or apps that create playlists for you. You can find info on their help site: http://www.longtailvideo.com/support/jw-player/jw-player-for-flash-v5/24/creating-a-playlist
I hope this helps!
ok, could some nice xml expert please tell me where i went wrong in this playlist.xml file....
this is my first ever xml file , but it doesnt work.
i have *** out the full links to protect our site. When i use this file, i get a black player with a small scrolly box thingy in the middle of it, but nothing opens and i dont get teh names down the side of the player.
<?xml version="1.0" encoding="utf-8"?>
<smil>
<head>
<meta name="title" content="Example SMIL playlist for the JW Player"/>
</head>
<body>
<seq>
<par>
<video title="1.Introduction" src="http://www.*****.co.uk/vledata/41/EDL2010/1.Introduction.flv"/>
<par>
</par>
<video title="2.Spanish and French_Song" src="http://www.*****.co.uk/vledata/41/EDL2010/2.Spanish_and_French_Song.flv"/>
<par>
</par>
<video title="3.Prayer and Bible Reading" src="http://www.*****.co.uk/vledata/41/EDL2010/3.Prayer_and_Bible_Reading.flv"/>
<par>
</par>
<video title="4.Prayer for Peace" src="http://www.*****.co.uk/vledata/41/EDL2010/4.Prayer_for_Peace.flv"/>
<par>
</par>
<video title="5.Hip Hop Dance" src="http://www.*****.co.uk/vledata/41/EDL2010/5.Hip_Hop_Dance.flv"/>
<par>
</par>
<video title="6.Irish Dancing" src="http://www.*****.co.uk/vledata/41/EDL2010/6.Irish_dancing.flv"/>
<par>
</par>
<video title="7.Carrie Alexander Song and Mime Act" src="http://www.*****.co.uk/vledata/41/EDL2010/7.Carrie_Alexander_Song_and_Mime_Act.flv"/>
</par>
</seq>
</body>
</smil>
I love the Media Player Module. I have used it on a number of short video instructions I made of screen captures and it works great. My problem is on longer and larger files in .mov or even mp4 format. I want to show 3 hours of class video and when I load them they seem to work fine but then freeze up midway into the presentation. Any ideas? Is this a Moodle issue or my server's issue?
@Brian: The error is here:
<par>
<video title="1.Introduction" src="http://www.*****.co.uk/vledata/41/EDL2010/1.Introduction.flv"/>
<par>
</par>
It should be:
<par><video title="1.Introduction" src="http://www.*****.co.uk/vledata/41/EDL2010/1.Introduction.flv"/></par>
Remember that XML tags have to open and close evenly. Make sure that every opening <par> tag has a symetrical closing </par> tag and likewise for all the tags in the file.
@Keith: I don't recommend deploying videos of more than 20 minutes in length as this is more than likely to overload users' browsers and plugins in general, causing those irritating crashes and freezes. It also makes it difficult for users to resume viewing from where they left of if the stream is interrupted or they take a break. I'd break the videos up into 10 minute files and deploy them in a playlist OR pay a streaming media service provider.
I hope this helps!
Hi Matt,
I can't tell you how useful your plugin is!!!! I have a site that uses primarily very large interactive videos.
I need to know if the latest plugin will work on 2.0. If not could you please tell me if your plugin will be available for 2.0 I am really lost without it.
Also if not could you tell me how to resize the default size height and width window settings in the default player in Moodle 2.0.
If I ever start making a little money I will support your development of this plugin all I can.
Also if you ever need a tester I'm here to help.
Sincerely
William Ratto
Hi William,
Thanks for your kind words of support!
AFAIK, most Moodle 1.* modules are not compatible with Moodle 2.0. None of my modules will work correctly in Moodle 2.0.
I'm still not up to speed with Moodle 2.0's new file API and have very little time to spend on it at the moment. I do have plans to create new branches for Moodle 2.0 but not any time soon.
I hope this helps!
Hi Matt,
Happy New Year to you...
I un-installed 2.0 and went back to 1.9.10 version, in my opinion 2.0 is not ready for productions sites, that being said in stalled your media player, but have noticed that many of the options that I used before are not available this time. Any idea what I'm doing wrong?
Thanks
William
I have spent a great dfeal of time thus far updating mPlayer for 2.0 compliance. I have sorted out all the data base related issues and have forms workinfg for the most part with a single exception. I cannot find a solution to the editor error I get when using the legacy code in mod_form.php @ line 55:
"$mform->addElement('format', 'introformat', get_string('format'));"
With that line acrtive in mplayer/mod_form.php, the following error is returned:
"Coding error detected, it must be fixed by a programmer: MFORMS: Coding error, text formats are handled only by new editor element."
If i comment it out, i get an error on form submission saying:
"Error writing to database.
Debug info: Column 'introformat' cannot be null
UPDATE lclmdl_mplayer SET name = ?,intro = ?,mplayerfile = ?,type = ?,streamer = ?,playlist = ?,playlistsize = ?,item = ?,mplayerrepeat = ?,shuffle = ?,configxml = ?,notes = ?,width = ?,height = ?,skin = ?,image = ?,icons = ?,controlbar = ?,backcolor = ?,frontcolor = ?,lightcolor = ?,screencolor = ?,smoothing = ?,quality = ?,autostart = ?,fullscreen = ?,stretching = ?,volume = ?,mute = ?,mplayerstart = ?,bufferlength = ?,plugins = ?,author = ?,mplayerdate = ?,title = ?,description = ?,tags = ?,audiodescriptionfile = ?,audiodescriptionstate = ?,audiodescriptionvolume = ?,captionsback = ?,captionsfile = ?,captionsfontsize = ?,captionsstate = ?,hdbitrate = ?,hdfile = ?,hdfullscreen = ?,hdstate = ?,infoboxcolor = ?,infoboxposition = ?,infoboxsize = ?,livestreamfile = ?,livestreamimage = ?,livestreaminterval = ?,livestreammessage = ?,livestreamstreamer = ?,livestreamtags = ?,logoboxalign = ?,logoboxfile = ?,logoboxlink = ?,logoboxmargin = ?,logoboxposition = ?,metaviewerposition = ?,metaviewersize = ?,searchbarcolor = ?,searchbarlabel = ?,searchbarposition = ?,searchbarscript = ?,snapshotbitmap = ?,snapshotscript = ?,logofile = ?,logolink = ?,logohide = ?,logoposition = ?,fpversion = ?,tracecall = ?,course = ?,introformat = ?,timemodified = ? WHERE id=?
[array (..."
So i have tried to find the code that is attempting to include a NULL value for introformat in $DB->update_record() command and have been unsuccessful. I have even tried inserting a $mform->addElement('hidden','introformat',"1") to load the equivalent of 'HTML Format" into database update array without success.
It may be a tall order, but does this make sense to you? I would be very willing to send you my update in progress with the updated database and other $mform elements if you would like to run your own diff.
Since the modedit.php page in course directory is calling functions in the mod/mplayer/mod_form.php, I highly suspect I am overlooking something critical with this introformat issue. It seems that the new 2.0 code base for Workshop has a similar $mform->addElement('format'...) component, but I am getting buggy myself trying to figure out where the function goes with the intro text array...
Keith
Hi Keith,
AFAIK, the introformat parameter is required by the database table and any attempts by Moodle to insert a new record will be rejected by MySQL or whichever database you're using. I guess the only way to fix it is to find out how to include that column insertion code in mod_form.php.
Have you looked at the other Moodle 2.0 modules to see how they do it?
I hope this helps.
Matt
i have looked at Workshops and Forums, but the trail is muddied a bit. Could be too much caffeine in the search engine. I'll circle back and try again anew this a.m.
Once the error codes are vacated, I will send you the module code so you can review and use it as a jumping point for a 2.0 update if you like.
Keith
Figured it out. New modules that support intro editor use the following code to load elements into $mform:
$this->add_intro_editor(true, get_string('description', 'mplayer'));
This essentially tells moodle that the module supports intro editor and then creates the editor box and the format selector elements.
I should have the module 2.0 compliant in full by week's end.
Hi Ben & Keith,
I don't know what the progress has been on the Moodle 2.0 front for the Media Player module. I've been very busy with projects.
I have, however, added an HTML5 fallback for the 1.9 version (Literally 3 lines of code!). This is specifically for iPhone, iPad and iPod(?) users because iOS blocks Flash Player. Most other mobile devices support Flash Player 10.1 so this isn't an issue for them.
All the best,
Matt
I have a working instance of mPlayer on my dev.telepresenceu.com Moodle 2.0.2 development site. It has a migration script from 1.9 and seems to work but would like feedback.
I borrowed heavily from the resource module code to bridge the file management differences from 1.9 to 2.0. As a result, on first install, all existing media files are migrated into the new 'filedir' directory in your moodledata directory and then cascaded into hash indexed subdirectories.
It works for me and I have one other developer having a look at it. Would you like to try it as well?
Keith
Re: Update on FLV Player activity module for Moodle 2.0
Hello Keith,
Can you tell when the new version will be available?
I wrote a litte plugin for our school for Moodle 2.0 and our headmaster can't wait to see it on our production site. Since some of my colleagues are using the mplayer activity, I can't update till I have a (at least half way) working version of mplayer.
I was thinking of doing it myself but then found your post, and I think time will also be against me.
I would be very glad to get a test version or if I could do anything else to help to your work - let me know.
Christoph
Re: Update on FLV Player activity module for Moodle 2.0
Hi Keith,
I've finally got round to having a look at the Media Player module for Moodle 2.0 that you sent me. I'm getting a blank screen because it's looking for a lib file that doesn't exist:
require_once("$CFG->libdir/mplayerlib.php");
I couldn't find this file anywhere.
Also, it's showing up as a resource. I'm guessing this is deliberate and probably a good idea.
Any help?
All the best,
Matt
Apologies for the tardy reply. I didn't expect you to continue the conversation here Matt, so I haven't been looking.
The new 2.0 module needs the mplayerlib.php for the /lib directory, I thought I included it in the email I sent as a loose file compressed with the mplayer directory that goes in /mod.
Let me collect it again and then I will make a downloadable link at http://www.keithbloom.com/moodle/mplayer20_beta.zip.
No warranty is expressed or implied, however I will do my best to address issues that my pop up with each tester's implementation of it. In the porcess of upgrading, it clones all of your existing media files and resaves them in the filemanager 2.0 architecture. If you have a lot of large media files, it will take a while to complete, especially on a shared server.
Keith
Hello Keith,
I tried the beta with 2.1 and whenever I upload a file, I receive a DB error:
SELECT id, name, display, displayoptions, tobemigrated, revision FROM emeadef_mplayer WHERE id = ?
[array (
0 => '1',
)]
- line 393 of /lib/dml/moodle_database.php: dml_read_exception thrown
- line 794 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
- line 1279 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
- line 1251 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
- line 1231 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
- line 237 of /mod/mplayer/lib.php: call to moodle_database->get_record()
- line 1125 of /course/lib.php: call to mplayer_get_coursemodule_info()
- line 1124 of /lib/modinfolib.php: call to get_array_of_activities()
- line 564 of /course/modedit.php: call to rebuild_course_cache()
Donations gladly accepted, funding is a treat.
I have posted 2.0 compatible mplayer module that is working on my testing server when upgrading from 1.9.9. I am eager to get feedback on others' experience with the migration script, and ultimately, i still have work to do on the player window control settings, however the core is well structured and seems very resilient.
http://www.keithbloom.com/moodle/mplayer20_beta.zip
You will also need the attached library file (mplayerlib.php) if it is not included in the mplayer202.zip archive. Is it to be saved to the /lib directory in your moodle root.
Keith
Re: Update on FLV Player activity module for Moodle 2.0
Tried on a clean install today. (I know that your primary goal was a working upgrade)
Only workes for me with attached install.xml and Javascript disabled. (I'm sure there are a little to many DB-fields.)
With enabled JS I get:
SCRIPT438: Das Objekt unterstützt die Eigenschaft oder Methode "init_flvflowplayer" nicht view.php?id=24, Zeile 372 Zeichen 1
Ressource lib uses M.util.add_video_player but I wasn't able to get it to work by now.
Christoph
Re: Update on FLV Player activity module for Moodle 2.0
Hmmm. It is possible that because you are doing a clean install on 2.0, there may be some 1.9.9 resources deprecated and not included in 2.0 that are needed outside of files I attached.
The core of my upgrade is based around the resource acivity module, so it may be the file(s) you seek are part of the 1.9.9 resource library, which may in turn, also be upgraded/altered during migration from 1.9.9 to 2.0.
Unfortunately, I am going to be some time before I can try to troubleshoot a clean install break. I have a full plate at the office and on side projects for the next few weeks.
Has anyone else attempted a clean install with the files Christoph attached?
Keith
Hi i have installed the mplayer20_beta plugin in my Moodle 2.0 and it give me not errors but in the moment i want create an activity with the plugin i get an error. I put de debugging in developer mode and now in the moment i want to insert the Media player activity i get the next error.
Please can you help me with this??
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 103 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 104 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 105 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 106 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 107 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 108 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
- line 5869 of /lib/moodlelib.php: call to debugging()
- line 6424 of /lib/moodlelib.php: call to core_string_manager->get_string()
- line 109 of /lib/mplayerlib.php: call to get_string()
- line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
- line 152 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
- line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
- line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
It is showing up as a resource because that was the 2.0 template I used as starting blocks. I suppose when all the kinks are ironed out, I will see if we can get the mplayer activity type officially recognized.
FWIW, I am not sure about whether the jwplayer legacy code will even come into play in the 2.0 version, it is the remaining block of cleanup to do. The player window configuration settings are now stored in a serialized array, and I think since I borrowed the roots of that function from the new resource player, we may now benefit from logo/license free media display. All that said, all 42 media files in my existing moodle1.9.9 site migrated cleanly and play successfully in my testing instance of moodle2.0.2.
Keith
Keith, you comment "I suppose when all the kinks are ironed out, I will see if we can get the mplayer activity type officially recognized"
Do you mean into the core?
If so: there are coding guidelines (etc etc)
http://docs.moodle.org/en/Category:Coding_guidelines
Might as well get the best mileage for your time.
-Derek
Hi Keith; Matt,
We're investigating upgrading to moodle 2 and as Media Player is a module we use a lot I figured I'd test out your modification.
After getting it installed (was installing to a fresh 2.1 so the database wasn't setup properly as someone else noted below), I discovered that the module does not work with non-file type media entries (Youtube, RTMP, HTTP, etc).
Since we have an RTMP server where all of our video content goes this is a show stopper. I'll be working on it, as my priorities allow, to get it back in line with the 1.9.X version, but i was just curious if either of you had made any headway into making it feature compatible.
Cheers,
Jody Steele
Re: Update on FLV Player activity module for Moodle 2.0
Re: Update on FLV Player activity module for Moodle 2.0
I get the following message - even after uploading the mplayerlib file into the /lib folder...
----------------------
- line 462 of /lib/upgradelib.php: plugin_defective_exception thrown
- line 265 of /lib/upgradelib.php: call to upgrade_plugins_modules()
- line 1426 of /lib/upgradelib.php: call to upgrade_plugins()
- line 290 of /admin/index.php: call to upgrade_noncore()
Hi Keith,
I was happy to see there is work being done on moving mplayer to Moodle2. We have a number of video resources we use in classes and it is a much better player than the filters included by default in Moodle. I was wondering if you might be able to make the download available again? I checked out the link to keithbloom.com/etcetc but its returning a 404, and browsing through the exposed folder system it doesn't seem like there is a moodle folder there anymore.
Any help you can give would be very appreciated.
Can anyone advise on progress with an update to Mediaplayer for 2.1 please? I find it really useful, as a direct link to YouTube encourages students to all the 'suggested' files and adverts. I have 170 instances on my 1.9 site and my admin is intent on updating. At the moment the "Download latest version" link takes me to a dead google code page.
If I can't find an update I'll have to redo all of my links with a far less satisfactory option
Hi Greg,
The Google Code project site is at:
Current version: http://code.google.com/p/moodle-mplayer/
Old deprecated version: http://code.google.com/p/moodle-flv-player/
http://code.google.com/p/moodle-mplayer/
Thanks Matt, but I'm getting a Google response of:-
"500. That’s an error. The server encountered an error and could not complete your request."
Hi Greg,
Ths link works OK for me. Try copying and pasting the link into your browser's address bar. It's definitely: http://code.google.com/p/moodle-mplayer/
Thanks Matt - don't know what happened there, but I had left the screen open overnight and just hitting refresh this morning - bingo However it does specify Ver 1.9 - I had missed the fact that Keith was working on 2.x and his version lives elsewhere. http://www.keithbloom.com/moodle/mplayer20_beta.zip plus
mplayer.php
Fingers crossed
Greg
Hi Greg,
I installed the beta for Moodle 2.x
Do you have also?
Playing around I get an error, when trying to restore a course in Moodle 2.x. The debugger told me, that "restore_mplayer_stepslib.php" is missing. Do you know something about that issue?
The file should reside in "mod/mplayer/backup/moodle2"
Thanks for any hints and suggestions
Ishan
Hi
I recently submitted a issue on the module tracker re; an issue with 2.1. Thought I might post here too, to see if others are experiencing this.
What steps will reproduce the problem?
1. MAMP Mac install. Moodle 2.1
2. mplayer' and 'mplayerlib.php installed
What is the expected output?
I installed the 'mplayer' folder and 'mplayerlib.php' in their correct spots. Turned on debug mode and received the following error (point 1.)immediately after selecting 'Media player' from the 'Add a Resource' menu.
Then upon uploading an flv with title/description etc, I received the error at point 2.
cheers, and thanks for any help
chris
Point 1.
Invalid get_string() identifier: 'mplayerdisplayauto' or component 'moodle'
line 5908 of /lib/moodlelib.php: call to debugging()
line 6498 of /lib/moodlelib.php: call to core_string_manager->get_string()
line 103 of /lib/mplayerlib.php: call to get_string()
line 77 of /mod/mplayer/mod_form.php: call to mplayerlib_get_displayoptions()
line 154 of /lib/formslib.php: call to mod_mplayer_mod_form->definition()
line 71 of /course/moodleform_mod.php: call to moodleform->moodleform()
line 219 of /course/modedit.php: call to moodleform_mod->moodleform_mod()
----------
Point 2.
Debug info: Unknown column 'display' in 'field list'
SELECT id, name, display, displayoptions, tobemigrated, revision FROM mdl_mplayer WHERE id = ?
[array (
0 => '4',
)]
Stack trace:
line 394 of /lib/dml/moodle_database.php: dml_read_exception thrown
line 794 of /lib/dml/mysqli_native_moodle_database.php: call to moodle_database->query_end()
line 1285 of /lib/dml/moodle_database.php: call to mysqli_native_moodle_database->get_records_sql()
line 1257 of /lib/dml/moodle_database.php: call to moodle_database->get_record_sql()
line 1237 of /lib/dml/moodle_database.php: call to moodle_database->get_record_select()
line 237 of /mod/mplayer/lib.php: call to moodle_database->get_record()
line 1125 of /course/lib.php: call to mplayer_get_coursemodule_info()
line 1124 of /lib/modinfolib.php: call to get_array_of_activities()
line 564 of /course/modedit.php: call to rebuild_course_cache()
What do you see instead?
Without debug mode on; the movie uploads etc, however, upon 'save' an error is produced and no movie eventuates.
Hi Kevin,
You can do it with an iframe. It's the same principle as YouTube.com embedding. See here: http://code.google.com/p/moodle-mplayer/wiki/MediaPlayerInMoodleQuizzes
Good luck!
Update:
It looks like any version of the Media Player module for Moodle 2.x won't be able to natively support playlists, i.e. videos, thumbnail files, captions, etc. will have to be hosted and managed outside of Moodle's new file API. Please see this discussion thread for more details: http://moodle.org/mod/forum/discuss.php?d=189665
Matt
I've made a little script/hack for Moodle 1.9 to convert all FLVPlayer instances to MPlayer instaces, because it seems that MPlayer has better chances getting support in Moodle 2.x than FLVPlayer.
https://github.com/t6nis/FLVPlayer-to-MPlayer-instance
Anyway before using this script make sure you have FLVPlayer and MPlayer installed in your Moodle 1.9 installation and i recommend you do backups before using it, also read the README before using...
Hi there everyone,
Nope, it's not dead. The Media Player module is an adaptation of the SWF Activity Module which I've been working on, on and off. See: http://code.google.com/p/moodle-mplayer/issues/detail?id=8
The new Media Player more than likely won't be upgradeable from Moodle 1.9. There are too many issues with making that transition and in many cases it may fail anyway; for example, I can't see an easy way to support XML, Atom, etc. playlists. So, it'll basically be a new Media Player module for Moodle 2.x.
On the upside, I'm going to make it so that you can add other Flash media players and choose between them, e.g. the default player is the JW Player but it can also use a Strobe Media player (http://www.osmf.org/strobe_mediaplayback.html) or a custom Flash media player, perhaps using the Open Source Media Framework (http://www.osmf.org/) or a similar project.
Meanwhile, there are some other media player plugins (filters and modules) being proposed too. I'd have a search through these forums to see what you can turn up.
Hi Morris and welcome to Moodle.org!
I have a beta version of the SWF Activity Module available. It incorporates 2 media players; the JW Player and the free and open source Strobe Media Playback (Backed by Akamai and Adobe).
On my Github.com account: https://github.com/matbury/SWF-Activity-Module2.5
On Moodle plugins repo: https://moodle.org/plugins/view.php?plugin=mod_swf
I've also managed to come up with a workaround for the issues with Moodle's file management system which uses Moodle's File Repository system instead (requires FTP to upload files).
I hope this helps!