<body> <div class="poodll_audiosdk_recording_cont"> <?php $params = $_GET; $locations = array(); $locations['poodll_audio_url'] = $params['poodll_audio_url'] . '/lib'; unset($_GET['poodll_audio_url']); $locations['poodll_audio_path'] = dirname(dirname(__FILE__)); $locations['poodll_audio_savepath'] = $locations['poodll_audio_path'] . '/out/'; ///var/www/mysite/grec/out $locations['poodll_audio_ffmpegpath'] = $locations['poodll_audio_path'] . '/ffmpeg'; //ffmpeg $locations['poodll_audio_convertpath'] = $locations['poodll_audio_path'] . '/out/'; ///var/www/mysite/grec/out $ah = new audiohelper($params, $locations); $browser = new Browser(); //get our browser object for detecting Os and browser types //ismobile accepts 'always' (always HTML5) never (never HTML5) mobile (if mobile HTML5) or webkit (if mobile or webkit browser HTML5) if (!$ah->isMobile('mobile', $browser)) { ?> <div class="poodll_audiosdk_controlpanel btn-group btn-group-lg" role="group"> <button name="record" id="poodll_audiosdk_record_button" class ="poodll_audiosdk_record_button btn btn-danger"> <span class="poodll_audiosdk_record_button_text">REC</span> </button> <button name="stop" id="poodll_audiosdk_stop_button" class ="poodll_audiosdk_stop_button btn btn-default" > <span class="glyphicon glyphicon-unchecked"></span> </button> <button name="play" id="poodll_audiosdk_play_button" class ="poodll_audiosdk_play_button btn btn-default" > <span class="glyphicon glyphicon-chevron-right"></span> </button>
<script type="text/javascript" src="../embed-compressed.js"></script> <script type="text/javascript" src="../mobileupload.js"></script> <link rel="stylesheet" type="text/css" href="../styles.css"> </head> <body> <h1>PoodLL Audio Recording Sample Project</h1> <br/> <br/> Record your voice, or upload a video/audio file. It will be received, optionally converted, and an HTML5 audio player displayed on the page beneath the recorder. For PC users this demonstration will work best with browsers,that reliably play back MP3 files in HTML5(Chrome or Safari). However all browsers should record successfully. <br/> <br/> <table> <tr><td> <?php //recorder 1 $ah = new audiohelper(); echo $ah->fetchRecorder("", "poodllcallback", "p1", "p2", "p3", "p4", "p5", "therecorderid", "false", "volume"); ?> </td></tr> <tr><td> <?php $browser = new Browser(); //get our browser object for detecting Os and browser types //ismobile accepts 'always' (always HTML5) never (never HTML5) mobile (if mobile HTML5) or webkit (if mobile or webkit browser HTML5) if (!$ah->isMobile('mobile', $browser)) { ?> <center><h1><div id="displaytime">0:00:00</div></h1></center> <button name="record" id="id_record" onclick="dorecord('therecorderid');">record</button> <button name="pause" id="id_pause" onclick="dopause('therecorderid');">pause</button> <button name="stop" id="id_stop" onclick="dostop('therecorderid');">stop</button> <button name="play" id="id_play" onclick="doplay('therecorderid');">play</button>