亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

HTML5 ???

HTML5? ??? ??? ?? ?? ?????. ???? ?????? ???? ??, ??, ??? ? ?? ??? HTML5? ???? ?? ??? ? ????.

??? ????? ?????? ???? ???? ?? ?? ??? ?????.


??? ??, ?? ? ???

?? ??
< src="song.mp3"controls="controls" loop="loop" autoplay="autoplay"> ??? ????? html5</audio>
??
? ??? ??? ???? ????. src? ??? ?????.
??? ?? ??? ??? ???="???"? ?? ? ???? ???? ?? ???? ?? ???? ?????. ?? ??? ???? ????.
loop ?? ??? ?? ??? ? ??? ?????. ??? ??????? ???? ajax?? loop=true/false? ???? ??? ???? ??? ?? ????. ????? PC ???? ??? ?? ??? ? ????. ???(PC ????? ??? ?????? ?? ???? ?? ??? ?? ??? ?? ? ????)
?? ?? ?? ?????. auido? ???? ???? ???? ???? ??? ?? ????.*

???? ???? ?? ??? ? ??? ????? ???. ??? ??? ???? ????.

?? ??:

currentTime ?? ?? ?? ????
duration ??? ? ?? ????
?? ?? ?? true/false
?? ?? ?? ?? ???? true/false? ?????
?? ???:
play() ?? ??
pause() ?? ?? ??
load() ?? ?? ??

HTML5? ? ?? ?? ??:

1. ?? ??

<audio src="song.ogg"controls="controls"> </audio>

2. ??? ??? ??? ??

<audio src="song.ogg"controls="controls">??? ??? ???? ?? ???????.
</audio>

3. ???? ??? ????? ?????

< ;audiocontrols="controls"><source src="song.ogg" type="audio/ogg" >
<source src="song.mp3" type="audio/mpeg ">
??? ????? ??? ??? ???? ????.
</audio>

<!doctype html>
<html>
    <head> 
    <meta charset="utf-8"> 
    <title>php.cn</title> 
    </head>
    <body>
        <audio controls>
           <source src="horse.ogg" type="audio/ogg">
           <source src="horse.mp3" type="audio/mpeg">
             您的瀏覽器不支持 audio 元素。
        </audio>
    </body>
</html>


???? ??
||
<!Doctype html> <html> <head> <title>HTML5多媒體</title> <meta charset="utf-8"/> <script> function onInputFileChange() { var file = document.getElementById('file').files[0]; var url = URL.createObjectURL(file); console.log(url); document.getElementById("audio_id").src = url; } </script> </head> <body> <input type="file" id="file" onchange="onInputFileChange()"> <audio id="audio_id" controls autoplay loop>Your browser can't support HTML5 Audio</audio> </body> </html>