In Moodle 1.9.6 onwards, a YouTube link filter (disabled by default) is also available.

Usage

Insert the URL of the multimedia resource into your text (which can be the URL of a file in the course files area). When displayed a suitable player will be provided. Moodle detects the media type using the filename extension, so you should ensure that the file contents match the extension correctly.

For some file types, like Flash, you can size the plugin using an extended syntax:

<a href="somepath.swf?d=640x480">My link name</a>

where the first number is the width in pixels, and the second is the height.

Required Software

Although Moodle prepares the media files to be played in the browser, the actual playback is handled by various types of browser plug-in software, primarily Adobe Flash, Quicktime, Windows Media Player and Real Player. If users do not have these installed they may be prompted to go and install them by their browser. These pieces of software are generally free, easily installed and widely used so this will only be an issue for small numbers of users.

Settings page

The settings page is in the administration block. Prior to version 1.7, this can be reached from Configuration > Filters > MultiMedia Plugins. In 1.7 it can be found via Administration > Modules > Filters > MultiMedia Plugins. In 1.8 it can be found via:
Notifications > Modules > Filters > MultiMedia Plugins > Settings.

There is an individual setting to turn on or off each supported media type. Note that by default all but the Flash (.swf) filter are enabled. As Flash files present a theoretical security risk, it is strongly recommended not to allow users to add flash content.

YouTube Link Filter

The youtube filter uses a custom delimiting tag inserted anywhere within the text of a resource to embed and display an embedded youtube player
without having to paste the embed code into the HTML of the page. It is also designed to ignore youtube links placed in standard <a href> tags.

What is the best way of Embedding media in Moodle?

Sizing of windows in a popup to match media, or of the embed is a problem. Access to the right quality of player often means adding more code. At present Flowplayer is used. ?d=640x480 doesn't work any more.

Hi,
I am using Moodle 2.0 (Build: 20101214) for streaming lecture videos. The vids are encoded as FLV (flash video), H.263 video and MP3 audio. Aspect ratio is 4:3 (640x480). I upload the vids to a repository, and use the "add a file" feature.

The built-in player (flowplayer 3.2.3) works nicely, until you attempt fullscreen viewing. Flowplayer apparently has the scaling set to 'scale', which fills the screen and ignores aspect ratios.

* fit: Fit to window by preserving the aspect ratio encoded in the file's metadata.
* half: Half-size (preserves aspect ratio)
* orig: Use the dimensions encoded in the file. If the video is too big for the available space, the video is scaled using the 'fit' option.
* scale: Scale the video to fill all available space. Ignores the dimensions in the metadata. This is the default setting.