|
|
|
@ -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); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
?> |
|
|
|
|
?> |