1234567891011121314151617181920212223242526272829 |
- <?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
- * @author Sebastian Wagner <seba.wagner@gmail.com>
- * @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';
- $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)){
- printf("<object type=\"application/x-shockwave-flash\" data=\"%s\"
- width='$width' height='$height'>
- <param name=\"movie\" value=\"%s\">
- <param name=\"quality\" value=\"high\">
- <param name=\"scale\" value=\"noscale\">
- <param name=\"salign\" value=\"LT\">
- <param name=\"menu\" value=\"false\"></object>",$path_to_lzx,$path_to_lzx);
- }
- ?>
|