Moodle
  1. Moodle
  2. MDL-26697 mediaplugin fixes and improvements META
  3. MDL-21094

Flash video doesn't always display on page - Requires page refresh

    Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.9.5
    • Fix Version/s: 2.0.3
    • Component/s: Course, Filters, Resource
    • Labels:
      None
    • Environment:
      CentOS on Dell PoweEdge hardware
    • Affected Branches:
      MOODLE_19_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Rank:
      16615

      Description

      We embed flash (FLV) videos in web pages as part of course material. Sometimes videos don't show up when the page displays. The page requires a refresh to get the video to display. We are embedding video using a standard href link around a space and qualifying the video size with '?d320x240' at the end of the URL.

      The screenshot below shows a course page but the top two videos are missing. If I refresh the page, one or both will eventually display.

        Activity

        Hide
        Anthony O'Connell added a comment -

        Here's what the URL looks like;

        <td width="50%" style="text-align: center; width: 50%;"><a href="http://wva.traininglink.com.au/file.php/6/video/World_Vision_02.flv?d=320x260" title="Video 1"> </a><br />
        </td>

        Here's what the page code looks like;

        <td width="50%" style="text-align: center; width: 50%;"><a title="Video 1" href="http://wva.traininglink.com.au/file.php/6/video/World_Vision_02.flv?d=320x260"> </a><span class="mediaplugin mediaplugin_flv" id="filter_flv_12605038191">(Flash video)</span>
        <script type="text/javascript">
        //<![CDATA[
        var FO =

        { movie:"http://wva.traininglink.com.au/filter/mediaplugin/flvplayer.swf?file=http://wva.traininglink.com.au/file.php/6/video/World_Vision_02.flv", width:"320", height:"260", majorversion:"6", build:"40", allowscriptaccess:"never", quality: "high", allowfullscreen: "true" }

        ;
        UFO.create(FO, "filter_flv_12605038191");
        //]]>
        </script><br />
        </td>

        Show
        Anthony O'Connell added a comment - Here's what the URL looks like; <td width="50%" style="text-align: center; width: 50%;"><a href="http://wva.traininglink.com.au/file.php/6/video/World_Vision_02.flv?d=320x260" title="Video 1"> </a><br /> </td> Here's what the page code looks like; <td width="50%" style="text-align: center; width: 50%;"><a title="Video 1" href="http://wva.traininglink.com.au/file.php/6/video/World_Vision_02.flv?d=320x260"> </a><span class="mediaplugin mediaplugin_flv" id="filter_flv_12605038191">(Flash video)</span> <script type="text/javascript"> //<![CDATA[ var FO = { movie:"http://wva.traininglink.com.au/filter/mediaplugin/flvplayer.swf?file=http://wva.traininglink.com.au/file.php/6/video/World_Vision_02.flv", width:"320", height:"260", majorversion:"6", build:"40", allowscriptaccess:"never", quality: "high", allowfullscreen: "true" } ; UFO.create(FO, "filter_flv_12605038191"); //]]> </script><br /> </td>
        Hide
        Graham Smith added a comment -

        We are having exactly the same issue. We thought at first it was related to the browser being used, but it happens in IE6, 7 and 8 and also Firefox, but strangely not Google Chrome. However, the company that supports our Moodle site, MoodleRooms, can not replicate the issue using any of these browsers.

        The vidoes can be made to appear if the browser cache is cleared, but this needs to be done each time the page witht he videos embedd is displayed which is not practical in a school with 11-18 year old pupils.

        I have also had this checked on other organisations networks with similar issues.

        Could it be an issue that is related to the versions of browsers in different countries as all the testing we have done is in the UK and MoodelRooms are in the US?

        A right-click on the non-dsplaying video shows 'Flash video player by Jeroenwijering' and Flash Player 10 details pop-up menu.

        Our code is similar to that shown above :-

        <a href="http://grange.mrooms2.net/file.php/608/8ry-STEM3_-_The_Digestive_Process.flv">A video about 'THE DIGESTIVE PROCESS' taken from Youtube</a><span class="mediaplugin mediaplugin_flv" id="filter_flv_12650986191">(Flash video)</span>
        <script type="text/javascript">
        //<![CDATA[
        var FO =

        { movie:"http://grange.mrooms2.net/filter/mediaplugin/flvplayer.swf?file=http://grange.mrooms2.net/file.php/608/8ry-STEM3_-_The_Digestive_Process.flv", width:"480", height:"360", majorversion:"6", build:"40", allowscriptaccess:"never", quality: "high", allowfullscreen: "true" }

        ;
        UFO.create(FO, "filter_flv_12650986191");
        //]]>
        </script> <script defer="defer" src="http://grange.mrooms2.net/filter/mediaplugin/eolas_fix.js" type="text/javascript">//

        I have found that using the following html code the videos ALWAYS display. I may not be easy to get new users to Moodle to use this code. Edit the http lines that point to the URL or your Moodel video player and the FLV file you wish displayed. The height and width lines can also be changed to the size of video display window required.

        <embed
        src="http://YOUR MOODLE ADDRESS/filter/mediaplugin/flvplayer.swf"
        width="400"
        height="320" align="absmiddle"
        allowscriptaccess="always"
        allowfullscreen="true"
        flashvars="height=320&width=400&file=http://INSERT URL OF YOUR VIDEO HERE.flv"
        />

        Show
        Graham Smith added a comment - We are having exactly the same issue. We thought at first it was related to the browser being used, but it happens in IE6, 7 and 8 and also Firefox, but strangely not Google Chrome. However, the company that supports our Moodle site, MoodleRooms, can not replicate the issue using any of these browsers. The vidoes can be made to appear if the browser cache is cleared, but this needs to be done each time the page witht he videos embedd is displayed which is not practical in a school with 11-18 year old pupils. I have also had this checked on other organisations networks with similar issues. Could it be an issue that is related to the versions of browsers in different countries as all the testing we have done is in the UK and MoodelRooms are in the US? A right-click on the non-dsplaying video shows 'Flash video player by Jeroenwijering' and Flash Player 10 details pop-up menu. Our code is similar to that shown above :- <a href="http://grange.mrooms2.net/file.php/608/8ry-STEM3_-_The_Digestive_Process.flv">A video about 'THE DIGESTIVE PROCESS' taken from Youtube</a><span class="mediaplugin mediaplugin_flv" id="filter_flv_12650986191">(Flash video)</span> <script type="text/javascript"> //<![CDATA[ var FO = { movie:"http://grange.mrooms2.net/filter/mediaplugin/flvplayer.swf?file=http://grange.mrooms2.net/file.php/608/8ry-STEM3_-_The_Digestive_Process.flv", width:"480", height:"360", majorversion:"6", build:"40", allowscriptaccess:"never", quality: "high", allowfullscreen: "true" } ; UFO.create(FO, "filter_flv_12650986191"); //]]> </script> <script defer="defer" src="http://grange.mrooms2.net/filter/mediaplugin/eolas_fix.js" type="text/javascript">// I have found that using the following html code the videos ALWAYS display. I may not be easy to get new users to Moodle to use this code. Edit the http lines that point to the URL or your Moodel video player and the FLV file you wish displayed. The height and width lines can also be changed to the size of video display window required. <embed src="http://YOUR MOODLE ADDRESS/filter/mediaplugin/flvplayer.swf" width="400" height="320" align="absmiddle" allowscriptaccess="always" allowfullscreen="true" flashvars="height=320&width=400&file= http://INSERT URL OF YOUR VIDEO HERE.flv" />
        Hide
        Petr Škoda added a comment -

        The video embedding was reworked completely in the latest weekly, the problems described here did not appear during the testing.

        Please file new issue if it still works incorrectly in the latest version.

        Thanks for the report.

        Petr

        Show
        Petr Škoda added a comment - The video embedding was reworked completely in the latest weekly, the problems described here did not appear during the testing. Please file new issue if it still works incorrectly in the latest version. Thanks for the report. Petr

          People

          • Votes:
            3 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: