http://atutor.ca/atutor/mantis/view.php?id=4620
authorcindy li <cli@ocad.ca>
Fri, 19 Aug 2011 19:41:58 +0000 (19:41 -0000)
committercindy li <cli@ocad.ca>
Fri, 19 Aug 2011 19:41:58 +0000 (19:41 -0000)
docs/include/lib/constants.inc.php
docs/mods/_standard/flowplayer/module_format_content.php
docs/mods/_standard/vimeo/module_format_content.php

index ed7bd61..7f99877 100644 (file)
@@ -397,6 +397,10 @@ define('VALIDATE_LENGTH_FOR_DISPLAY',      1);
 /* the length of sublink text display in the course index page, detail view */
 define('SUBLINK_TEXT_LEN', 38);
 
+/* The lock out time for max login attempts */
+define('DEFAULT_VIDEO_PLAYER_WIDTH', 425);   // in pixels
+define('DEFAULT_VIDEO_PLAYER_HEIGHT', 350);  // in pixels
+
 /* The lock out time for max login attempts */
 define('LOGIN_ATTEMPT_LOCKED_TIME', 60);       //in minutes, default an hour, 60 minutes
 
index 983686c..2e2c612 100644 (file)
@@ -47,8 +47,8 @@ for ($i=0;$i<count($media_replace);$i++){
                }
                else
                {
-                       $width = 425;
-                       $height = 350;
+                       $width = DEFAULT_VIDEO_PLAYER_WIDTH;
+                       $height = DEFAULT_VIDEO_PLAYER_HEIGHT;
                }
                
                //replace media tags with embedded media for each media tag
index 9aa633e..7fd69d3 100644 (file)
@@ -12,10 +12,10 @@ foreach ($media_matches as $media_match) {
        $width = $media_match[2];
        $height = $media_match[3];
        if($width == ''){
-               $width = "425";
+               $width = DEFAULT_VIDEO_PLAYER_WIDTH;
        }
        if($height == ''){
-               $height = "350";
+               $height = DEFAULT_VIDEO_PLAYER_HEIGHT;
        }
        $video_id = $media_match[4];