Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>So if you have an AMR file (I haven't tested this, so you'll have to try this out) you will need to extract the AMR audio and convert it to MP3. Unfortunately it appears to be rather rare in Java, but a (rather painful) Google search turned up this link: <a href="http://www.benmccann.com/blog/extracting-amr-audio-from-android-3gp-files/" rel="nofollow">http://www.benmccann.com/blog/extracting-amr-audio-from-android-3gp-files/</a> which claims to demonstrate extracting the audio from a 3gpp video file, so they at least have an AMR parser. I would look at the underlying library they use, isobox4j (discussed at <a href="http://groups.google.com/group/android-developers/browse_thread/thread/245c9de4132c2ab0?fwc=1" rel="nofollow">http://groups.google.com/group/android-developers/browse_thread/thread/245c9de4132c2ab0?fwc=1</a>) and see if you can either:</p> <ol> <li>Extract the audio in the phone app, convert to mp3 and then upload the mp3 (probably the easiest option, frankly: keeps the server simple).</li> <li>Extract the audio on the server and convert to mp3 before streaming the mp3 to the web page (probably harder, frankly).</li> </ol> <p>Good luck.</p> <p>EDIT: or you could hope the client has an appropriate browser plugin: the broken quicktime mark indicates quicktime doesn't have a codec for it.</p> <p>EDIT 2: You probably need to set a content-type for the plugin so it knows what to do. For AMR try adding</p> <pre><code>header("Content-type: audio/amr"); </code></pre> <p>before the echo statement in your PHP and if that isn't enough add a mime type to your embed like this:</p> <pre><code>&lt;object data="sound.php?id=110 width='391' height='298'"&gt; &lt;embed src='sound.php' type="audio/amr" width='391' height='298'&gt;&lt;/embed&gt;'ERROR' &lt;/object&gt; </code></pre> <p>See if that works.</p> <p>EDIT: try this. Not sure if the $row['file'] is considered a string or an array, but the trim might do what you need.</p> <pre><code>&lt;?php header('Content-type: audio/amr'); $query = mysql_query("SELECT * FROM media WHERE media_id= '$idd'"); $row = mysql_fetch_array($query); echo trim($row['file']); exit; </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload