problems embedding video in webpage

problems embedding video in webpage

by m g -
Number of replies: 5
I am having problems embedding a video clip within a moodle page (for example the front page). I'm using Camtasia to generate a mp4 file (and the flash files and htm files) but I am unsure how to take all these components and integrate them into moodle. 'add a resource>link to file' works, but I want to embed it. I don't know much html, so any assistance would be grand.

Average of ratings: -
In reply to m g

Re: problems embedding video in webpage

by Matteo Scaramuccia -
Hi,
in Moodle you can:
  1. use <object /> tag with an explicit attribute id, better than using <embed />;
  2. use SWFobject syntax, since it's part of Moodle libraries;
  3. take advantage of Multimedia plugins which is a text filter able to select some HTML anchors based on their href extension and to add the right HTML code to let the player bundled with Moodle appear.
IMHO (3) will be your friend: keep care of filter cache i.e. by default you need to wait at least 1 minute to see things changed according to your changes.

If you want to go deeper in understanding what a text filter can do in Moodle take also a look at Filters and at an example for enhancing them, MDL-22010.

Ciao,
Matteo
In reply to Matteo Scaramuccia

Re: problems embedding video in webpage

by Darcy Parker -
I have just went through this exercise and I finally got my working.

I choose to use Matt Bury's 'Media Player' module found here (http://code.google.com/p/moodle-mplayer/)

Download the zip file and unzip it to your Mod directory then go to the admin page notifications and it should show that it was properly installed.

Now in your topics, you sho8uld see a new "Activity' called Media Player.

Use the Add Activity to select your file to be emedded.

Darcy

In reply to Darcy Parker

Re: problems embedding video in webpage

by m g -
I uploaded the media player and unzipped to the mod dir. but it doesn't seem to have installed. No notification appears on the admin section.

any help?
In reply to m g

Re: problems embedding video in webpage

by Darcy Parker -
In the Zip folder there might be a sub directory within the main directory

You just want a single folder called mplayer in the mod directory then the
content of the folder

moodle/mod/mplayer/(8 sub folders and 9 files)

Not

moodle/mod/mplayer/mplayer/(8 sub folders and 9 files)

Then check admin notifications and it should be installed,
Then check add an activity - it should say Media Player

darcy
In reply to Darcy Parker

Re: problems embedding video in webpage

by Debbie Kay -
Hi Darcy
Could you share how you got past the problems you outlined at the link which you were having with the mplayer to get it to work?

I read your comments and seem to be having a similar issue to what you describe and get the error...
'Video not found or access denied: http://moodle.idealperformance.co.uk/file.php/2/test.wmv

However if I change the text slightly as you did and paste it directly into the browser address it works... http://moodle.idealperformance.co.uk/file.php?file=/2/test.wmv

However I do not want students to download the video, simply to view. Are you able to offer any suggestions smile

Many thanks