[svn r15018] New recorder integration

skala
Yannick Warnier 17 years ago
parent a18d889a26
commit 9c0a2a0837
  1. 20
      main/newscorm/audiorecorder.inc.php
  2. 9
      main/newscorm/display_audiorecorder.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);
}
?>
?>

@ -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>';
?>
Loading…
Cancel
Save