Need help to understand what happen!
I face a problem when inserting video in a DB entry on Moodle 1.9.4. In fact, the video I wanted to insert is not accessible in the DB entry, but for example, when I insert it on a label block, the same video is displayed correctly.
Here is an example of the code:
<object width="320" height="240" type="application/x-shockwave-flash" data="http://subdomain.domain.com:19850/player_flv_maxi.swf" id="Object1"> <param value="http://subdomain.domain.com:19850/player_flv_maxi.swf" name="movie" /> <param value="true" name="allowFullScreen" /><param value="opaque" name="wmode" /> <param value="sameDomain" name="allowScriptAccess" /><param value="high" name="quality" /> <param value="true" name="menu" /><param value="false" name="autoplay" /> <param value="false" name="autoload" /> <param value="configxml=http://subdomain.domain.com:19850/EL2010num00art02_vid016_1Mb.xml" name="FlashVars" /> </object> |
Being unable to displayed that video, I made some research on the forum (see the 3 post in reference at the end of this post...) and try some adjustments:
- We set all the security right to be abble to embed video correctly with OBJECT and EMBED tag and to allow trusted content in the admin settings (like propose by Itamar Tzadok and Joseph Rézeau)
- Like what Sean Farrell propose to Steven A., I URLencode the FlashVars like so “configxml%3Dhttp%3A%2F%2Fsubdomain.domain.com%3A19850%2FEL2010num00art02%5Fvid016%5F1Mb.xml”... but that’s not work more
- I also try to link directly to the FLV file on the server (same location as the XML file) and nothing happen
Just to know if it could be possible to insert video from other sources, I try to integrate videos from Youtube, Vimeo and Dailymotion. Here are my results:
- Youtube and Vimeo code use IFRAME tags and are not displayed (like report by Przemyslaw Stencel)
- But... the videos from Dailymotion, using OBJECT and EMBED tags, are displayed correctly. I use the code propose for the video «Episode 19 : Créer une base de données» without any change and it’s work perfectly (no URLencoding from me).
So, my question is: If the OBJECT and EMBED code from Dailymotion is working fine, why my own code is not working at all. As I can see, it use the same HTML tag.
Any idea is welcome! See you...
JF
Forum post used (references)