Browse Source

[svn r13275] improve flv player

Eric Marguin 17 years ago
parent
commit
5e4d7295aa

+ 1 - 1
main/inc/lib/fckeditor/editor/plugins/Video/fck_video.js

@@ -370,7 +370,7 @@ Media.prototype.getOuterHTML = function (objectId){
  * Devuelve el codigo HTML interno del elemento
  */
 Media.prototype.getInnerHTML = function (objectId){
-	var s = '<object type="application/x-shockwave-flash" data="'+getObjData(this.url)+'" height="240" width="320">\r\n<param name="movie" value="'+getObjData(this.url)+'">\r\n\t<param name="FlashVars" value="flv='+getVideoUrl()+'&autoplay=1" /></object>\r\n';
+	var s = '<object type="application/x-shockwave-flash" data="'+getObjData(this.url)+'" height="240" width="320">\r\n<param name="movie" value="'+getObjData(this.url)+'">\r\n\t<param name="FlashVars" value="flv='+getVideoUrl()+'&autoplay=1&width=320&amp;height=240" /></object>\r\n';
 
 	return s;
 };

+ 19 - 1
main/inc/lib/fckeditor/fcktemplates.xml.php

@@ -317,7 +317,25 @@ $css = loadCSS(api_get_setting('stylesheets'));
 				        </tr>
 				        <tr>
 				          <td valign="top">
-				            <img src="<?php echo api_get_path(REL_PATH) ?>main/inc/lib/fckeditor/editor/css/images/flv.gif?flv=<?php echo api_get_path(WEB_CODE_PATH) ?>default_course_document/video/example.flv&endflv" />
+				          	<?php
+				          	if(strpos($_SERVER['HTTP_USER_AGENT'],'Gecko')!==false)
+				          	{
+				          	?>
+				            	<img src="<?php echo api_get_path(REL_PATH) ?>main/inc/lib/fckeditor/editor/css/images/flv.gif?flv=<?php echo api_get_path(WEB_CODE_PATH) ?>default_course_document/video/example.flv&endflv" />
+				          	<?php
+				          	}
+				          	else
+				          	{
+				          	?>
+				          	<object type="application/x-shockwave-flash" data="/dokeosSVN/main/inc/lib/flv_player/player_flv_mini.swf" height="240" width="320">
+					          		<param name="movie" value="/dokeosSVN/main/inc/lib/flv_player/player_flv_mini.swf" />
+					          		<param name="FlashVars" value="flv=http://192.168.1.7/dokeosSVN/main/default_course_document/video/example.flv&autoplay=1&width=320&amp;height=240" />
+					          </object>
+					          <style type="text/css">body{}</style>
+				          	
+				          	<?php
+				          	}
+				          	?>
 				          </td>
 				          <td style="vertical-align: top;">
 				            <span class="tablehead"><font size="4"><span style="font-weight: bold;">Excerpt from Marc Shuttleworth's keynote</span></font><br />