Parcourir la source

[svn r15018] New recorder integration

Yannick Warnier il y a 17 ans
Parent
commit
9c0a2a0837
2 fichiers modifiés avec 14 ajouts et 15 suppressions
  1. 10 10
      main/newscorm/audiorecorder.inc.php
  2. 4 5
      main/newscorm/display_audiorecorder.php

+ 10 - 10
main/newscorm/audiorecorder.inc.php

@@ -1,4 +1,5 @@
-<?php
+<?php //$id: $
+// This file is part of the Dokeos software - See license and credits in the documentation/ directory
 /**
  * Created on 27.09.2006
  * Include the lazlo file necessary to use the audiorecorder  
@@ -6,14 +7,14 @@
  * @author Eric Marguin <e.marguin@elixir-interactive.com>
  * @author Arnaud Ligot <arnaud@cblue.be>
  */
- 
- 
+$audio_recorder_studentview = false;
+list($width, $height) = $audio_recorder_studentview =='true' ? array(295, 24) : array(295,90);
+$player = $audio_recorder_studentview =='true' ? 'player2.swf' : 'record2.swf';
 
-
-
-list($width, $height) = $audio_recorder_studentview =='true' ? array(220, 28) : array(220,140);
-
-$path_to_lzx = api_get_setting('service_ppt2lp','path_to_lzx');
+$server = api_get_setting('service_visio','visio_host');
+$web_path = api_get_path(WEB_PATH);
+$filename = str_replace('.','dot',substr($web_path,strpos($web_path,'://')+3,-1)).'-z-'.api_get_course_id().'-z-'.api_get_user_id().'-z-'.gmdate('YmdHis').'.flv';//using -z- as fields splitter
+$path_to_lzx = $web_path.'conference/'.$player.'?server='.urlencode($server).'&postURI='.urlencode($web_path).'conference/testpost.php&filename='.$filename;
 
 
 if(!empty($path_to_lzx)){
@@ -25,5 +26,4 @@ if(!empty($path_to_lzx)){
 		 <param name=\"salign\" value=\"LT\">
 		 <param name=\"menu\" value=\"false\"></object>",$path_to_lzx,$path_to_lzx);
 }
-
-?>
+?>

+ 4 - 5
main/newscorm/display_audiorecorder.php

@@ -1,4 +1,5 @@
 <?php //$id: $
+// This file is part of the Dokeos software - See license and credits in the documentation/ directory
 /**
  * Script opened in an iframe and containing the learning path's table of contents
  * @package dokeos.learnpath
@@ -40,12 +41,10 @@ $audio_recorder_studentview = 'true';
 
 
 $audio_recorder_item_id = $_SESSION['oLP']->current;
-if(api_get_setting('service_ppt2lp','active')=='true' && api_get_setting('service_ppt2lp','path_to_lzx')!=''){
+if(api_get_setting('service_visio','active')=='true'){
 	include('audiorecorder.inc.php');
 }
 // end of audiorecorder include
-	
-echo '</div></body></html>';
 
-
-?>
+echo '</div></body></html>';
+?>