Note: You are currently viewing documentation for Moodle 3.0. Up-to-date documentation for the latest stable version of Moodle may be available here: Multimedia plugins FAQ.

Multimedia plugins FAQ: Difference between revisions

From MoodleDocs
chris collman (talk | contribs)
Moved stuff, reformat, needs review. I don't use MM very often.
German Valero (talk | contribs)
m Added link to spanish translation of page
 
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
This page is for frequently asked questions about Multimedia plugins and filters.
{{Filters}}
{{Update}}
==What is the best way of Embedding media in Moodle?==
 
"Best" depends on your goal. There are ways which are simpler, involving fewer steps, but it depends on how you wish your video to appear.
 
1) Use the Media button on the Atto editor to add the URL to a external video file such as on Youtube or Vimeo or any other accessible source.
 
You can do this for any resource or activity that has the editor, eg. Label, Page, etc. The video itself will not show up in the editor, you need to save the editor content first, then the video will display on the course page.
 
[[File:attomediainsertion_m30.png|400px|alt="Screenshot of Insert media box in Atto"]]
 
2) Alternatively, you can use the Link button in the Atto editor to add the URL to an external video in a similar way.
 
3) If have an <nowiki><iframe></nowiki> style embed code such as from Youtube, then in the Atto editor turn on HTML mode and paste the the code. The when you turn off HTML mode, the video will show up in the editor window so you can see it.
 
[[File:attoeditoraddiframeembed.png| 400px|alt="Screenshot of example iframe pasted in HTML mode in Atto"]]


==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.
#Interesting discussion on Moodle Mahem list: https://groups.google.com/forum/?pli=1#!topic/moodlemayhem/txt_5pNwATk
#Playing Flash FLV & SWF in MOODLE 2.0: http://moodle.org/mod/forum/discuss.php?d=163374
#What about SWF? There have been some security worries on using SWF.  But tha advantage is that it comes with a player bundled in it.


Tracker issues:
4) You can also use any repository that allows you to search for and add links to media, such as the Youtube repository.
#http://tracker.moodle.org/browse/PULL-96


==How can I have embedded media resized appropriately?==
== The video player is not appearing for me. I only see a link or embed code text.==
Some thoughts on this are still in development.


#Detect size of file: http://tracker.moodle.org/browse/MDL-8984
Make sure that the "Multimedia plugins" option in ''Site administration > Plugins > Filters > Manage filters'' is set to On.
#Patch: http://tracker.moodle.org/browse/MDL-23870


An extract from here: http://moodle.org/mod/forum/discuss.php?d=169935
Note: the order of Filters matters, as they are processed in order such that one filter may affect another. You may need to adjust the order. See [[Filters]] and [[Multimedia_plugins_filter]] for more.


==Change settings in 2.0==
== Links and embeds to Vimeo based videos are not working but others are. Why? ==
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.
Embedding for Vimeo is off by default in Moodle, unlike Youtube. Go to ''Site administration > Appearance > Media embedding'' and enable the Vimeo option.


from http://flowplayer.org/documentation/configuration/clips.html, I see that available scaling options are:
==How can I have embedded media resized appropriately?==
You can adjust the specific dimensions for height and width inside the embed code of the <iframe> tag.
<pre>
<iframe src="https://www.youtube.com/embed/wop3FMhoLGs" allowfullscreen="" frameborder="0" height="400" width="560"></iframe>
</pre>
where 400x560 are the dimensions in pixels that you wish to use.


    * fit: Fit to window by preserving the aspect ratio encoded in the file's metadata.
==See also==
    * 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.


My question is, how do I change this setting? where would I find it?"
* [[Editing_text| Using the Atto editor]]
Useful information to have, maybe.
* [[Multimedia_plugins_filter|Multimedia plugins filter]]
* [[Video]]
* Also [http://moodle.org/mod/forum/discuss.php?d=194684 Moodle Media player not appearing] forum discussion


[[Category:FAQ]]
[[Category:FAQ]]
[[es:Plugins multimedia FAQ]]

Latest revision as of 23:19, 25 October 2015

What is the best way of Embedding media in Moodle?

"Best" depends on your goal. There are ways which are simpler, involving fewer steps, but it depends on how you wish your video to appear.

1) Use the Media button on the Atto editor to add the URL to a external video file such as on Youtube or Vimeo or any other accessible source.

You can do this for any resource or activity that has the editor, eg. Label, Page, etc. The video itself will not show up in the editor, you need to save the editor content first, then the video will display on the course page.

"Screenshot of Insert media box in Atto"

2) Alternatively, you can use the Link button in the Atto editor to add the URL to an external video in a similar way.

3) If have an <iframe> style embed code such as from Youtube, then in the Atto editor turn on HTML mode and paste the the code. The when you turn off HTML mode, the video will show up in the editor window so you can see it.

"Screenshot of example iframe pasted in HTML mode in Atto"


4) You can also use any repository that allows you to search for and add links to media, such as the Youtube repository.

The video player is not appearing for me. I only see a link or embed code text.

Make sure that the "Multimedia plugins" option in Site administration > Plugins > Filters > Manage filters is set to On.

Note: the order of Filters matters, as they are processed in order such that one filter may affect another. You may need to adjust the order. See Filters and Multimedia_plugins_filter for more.

Links and embeds to Vimeo based videos are not working but others are. Why?

Embedding for Vimeo is off by default in Moodle, unlike Youtube. Go to Site administration > Appearance > Media embedding and enable the Vimeo option.

How can I have embedded media resized appropriately?

You can adjust the specific dimensions for height and width inside the embed code of the <iframe> tag.

<iframe src="https://www.youtube.com/embed/wop3FMhoLGs" allowfullscreen="" frameborder="0" height="400" width="560"></iframe>

where 400x560 are the dimensions in pixels that you wish to use.

See also