Note that there are some explanatory texts on larger screens.

plurals
  1. POVideo and audio tag in HTML5 for android
    primarykey
    data
    text
    <p>I'm having problems with embedding video and audio into a web page using HTML5 for Android browser. Two things i'm not sure about:</p> <ol> <li>The codecs that android browser supports</li> <li>What javascript callbacks should I use</li> </ol> <p>This is what I wrote, and it’s not working. (However, it works on the desktop.)</p> <pre><code>&lt;audio src="x.mp3" controls&gt; Your browser does not support the audio element. &lt;/audio&gt; &lt;br/&gt; &lt;video src="y.mp4" controls&gt; your browser does not support the video tag &lt;/video&gt; </code></pre> <p>I tried to use jPlayer plugin for jQuery. It works fine with the audio (.mp3) and with the demo video(.m4v). However it don't work with my video. I tried encoding it with no success. Thats the spec of the demo video(that works):</p> <pre><code>major_brand : M4VP minor_version : 1 compatible_brands: M4VPM4A mp42isom Duration: 00:00:33.04, start: 0.000000, bitrate: 941 kb/s Stream #0.0(eng): Audio: aac, 44100 Hz, stereo, s16, 127 kb/s Stream #0.1(eng): Video: h264, yuv420p, 480x270, 824 kb/s, 25 fps, 25 tbr, 600 tbn, 1200 tbc </code></pre> <p>and this is my video:</p> <pre><code>major_brand : mp42 minor_version : 0 compatible_brands: mp42isom Duration: 00:00:30.24, start: 0.000000, bitrate: 534 kb/s Stream #0.0(eng): Video: h264, yuv420p, 480x320 [PAR 1:1 DAR 3:2], 404 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc Stream #0.1(eng): Audio: aac, 44100 Hz, stereo, s16, 127 kb/s </code></pre> <p>(it's the output from ffmpeg)</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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