Difference between revisions of "Media embedding"

Jump to: navigation, search
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
{{Working with media}}
 
{{Working with media}}
==Embedding audio and video==
+
Moodle makes embedding video and sound files very straightforward. Media (audio and video) may be dragged and dropped directly onto the course page, added as a [[File resource]] or linked to as a [[URL]] resource and  they will  also display in Moodle's text editor. Using the [[Atto editor]] provides extra options with media files, such as ('''New in 3.5)''' the option to directly record sound and video from the editor.
[[File:mp3 player.png|thumb|MP3 player]]
 
Audio and video may be embedded in a course in the following ways:
 
  
* As a [[File module settings|file resource]]  
+
See [[Video]] and [[Audio]] for instructions on how to embed video and sound files into the [[Atto editor]].
* As a [[URL module settings|URL resource]] with embed as the display option
 
* In a [[Lesson settings|lesson popup]]
 
* In any text area using the Moodle media button in the [[Text editor|text editor]] or simply by typing the URL of media file
 
  
The media file link is then replaced with an appropriate multimedia player which can play the resource.
+
The [[Multimedia plugins filter]] must be enabled and then specific players may be enabled or disabled from 'Manage media players' in Site administration.  
  
==Enabling media embedding==
+
The default player, [[VideoJS player]] supports
 +
**(video) mov, .mp4, .m4v, .mpeg, .mpe, .mpg, .ogv, .webm, .flv, .f4v
 +
**(audio) .mp3, .aac, .flac, .m4a, .oga, .ogg, .wav
  
To enable the embedding of media files, an admin must enable
+
Other available players are:
  
# Appropriate media players (see below)
 
# The [[Multimedia plugins filter]] - unless you only want to allow embedding in File, URL and Lesson modules.
 
 
==Site administration settings==
 
{{New features}}An administrator can enable selected media players in ''Settings > Site administration > Appearance > Media embedding''.
 
 
===Available players===
 
 
* YouTube (displays videos hosted on youtube)
 
* YouTube (displays videos hosted on youtube)
 
* Vimeo (displays videos hosted on vimeo)
 
* Vimeo (displays videos hosted on vimeo)
* .mp3 - MPEG Audio Stream, Layer III
+
*Flash animation (.swf)
* .flv - Flash video
+
*HTML 5 video
* .f4v - Flash video
+
*HTML 5 audio
* .swf - Macromedia Flash animation File (Adobe, Inc.)  
 
:'''Note:''' Only used in trusted texts as it has potential security issues
 
* .ogg - HTML 5 audio
 
* .acc - HTML 5 audio
 
* .mp3 - HTML 5 audio
 
* .webm - HTML 5 video
 
* .m4v - HTML 5 video
 
* .ogv  - HTML 5 video
 
  
===Legacy media players===
+
A default width and height for videos can be set by the administrator from the 'Manage media players' page. Teachers adding videos via the Moodle media button in the [[Atto editor]] may also specify a width and height.
The following legacy media player formats are also available but not recommended for general usage:
 
* .mov - QuickTime player (requires QuickTime player or [http://en.wikipedia.org/wiki/Codec codec])
 
* .mp4 - QuickTime player (requires QuickTime player or codec)
 
* .m4a - QuickTime player (requires QuickTime player or codec)
 
* .mpg - MPEG animation - QuickTime player (requires QuickTime player or codec)
 
* .wmv - Windows media player (Microsoft)-not guaranteed to work in browsers other than IE and non-Windows systems
 
* .avi - Windows media player - not guaranteed to work in browsers other than IE and non-Windows systems
 
  
==See also==
 
  
* [[:dev:Media embedding]] developer documentation including information on how to change the size of the media player
 
  
 
[[Category:Site administration]]
 
[[Category:Site administration]]
  
 
[[de:Einbetten von Medien]]
 
[[de:Einbetten von Medien]]
 +
[[es:Incrustación de medios]]
 +
[[fr:Inclure des médias]]

Latest revision as of 09:46, 3 May 2019

Moodle makes embedding video and sound files very straightforward. Media (audio and video) may be dragged and dropped directly onto the course page, added as a File resource or linked to as a URL resource and they will also display in Moodle's text editor. Using the Atto editor provides extra options with media files, such as (New in 3.5) the option to directly record sound and video from the editor.

See Video and Audio for instructions on how to embed video and sound files into the Atto editor.

The Multimedia plugins filter must be enabled and then specific players may be enabled or disabled from 'Manage media players' in Site administration.

The default player, VideoJS player supports

    • (video) mov, .mp4, .m4v, .mpeg, .mpe, .mpg, .ogv, .webm, .flv, .f4v
    • (audio) .mp3, .aac, .flac, .m4a, .oga, .ogg, .wav

Other available players are:

  • YouTube (displays videos hosted on youtube)
  • Vimeo (displays videos hosted on vimeo)
  • Flash animation (.swf)
  • HTML 5 video
  • HTML 5 audio

A default width and height for videos can be set by the administrator from the 'Manage media players' page. Teachers adding videos via the Moodle media button in the Atto editor may also specify a width and height.