audiorecorder.inc.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created on 27.09.2006
  4. * Include the lazlo file necessary to use the audiorecorder
  5. * @author Sebastian Wagner <seba.wagner@gmail.com>
  6. * @author Eric Marguin <e.marguin@elixir-interactive.com>
  7. */
  8. $params = "?lzt=swf&lzr=swf8&document_id=".$audio_recorder_item_id."&dbName=".$_SESSION["_course"]["dbName"]."&user_id=".$_SESSION["_user"]["user_id"].'&studentview='.$audio_recorder_studentview ;
  9. list($width, $height) = $audio_recorder_studentview =='true' ? array(220, 28) : array(220,140);
  10. $path_to_lzx = api_get_setting('service_ppt2lp','path_to_lzx');
  11. if(!empty($path_to_lzx)){
  12. $path_to_lzx .= $params;
  13. printf ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
  14. codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'
  15. WIDTH='".$width."px' HEIGHT='".$height."px'>
  16. <param name='movie' VALUE='%s'>
  17. <param name='quality' VALUE='high'>
  18. <param name='scale' VALUE='scale'>
  19. <param name='swliveconnect' value='true'>
  20. <param name='FlashVars' value='document_id=%s&dbName=%s&user_id=%s&studentview=%s' />
  21. <param name='salign' value='lt' />
  22. <param name='bgcolor' VALUE='#ffffff'>
  23. <embed src='%s' quality='high' scale='noscale' salign='lb'
  24. bgcolor='#ffffff' WIDTH='".$width."px' HEIGHT='".$height."px' ALIGN='center' TYPE='application/x-shockwave-flash'
  25. PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'>
  26. </embed>
  27. </object>", $path_to_lzx,$audio_recorder_item_id,$_SESSION["_course"]["dbName"],$_SESSION["_user"]["user_id"],$audio_recorder_studentview,$path_to_lzx);
  28. }
  29. ?>