Moodle: Controlling size of embedded swf movies

Movies (in almost any fomat - wmv, mov, mpg, flv, swf etc) can be attached to any post and will be viewable when the post is displayed at a fixed standard small size.

A link to the original file will also be displayed allowing download and viewing through other software (e.g. Media Player).

Most web sites (like YouTube) use flv (Flash Video) other use swf (Shockwave Flash) instead of other movie file formats as they are so much smaller in size (and lower in quality).

To embedd swf files into moodle and control the size of the video:

  • paste the swf file into a network folder (e.g. R/learning_tech)
  • locate the file through InfoNet (i.e. Staff - R Drive - learning_tech)
  • copy the URL (also called shortcut, address or location)
  • create a new post (e.g. General Staff)
  • Switch to HTML View (click the <> button in the Moodle editor window)
  • Paste the following code:

<object width="800" height="614" align="middle" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" type="application/x-shockwave-flash" althtml=" &#010" althtml=" " pluginspage="http://www.macromedia.com/go/getflashplayer" allowscriptaccess="sameDomain" bgcolor="#ffffff" quality="high"
src="full-URL-of.swf"><param name="allowScriptAccess" value="sameDomain" /><param name="movie"
value="full-URL-of.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /></object>

  • Change the size values to suit your need
  • Change the URL to the location of your movie
  • Save

No comments: