开发者

iPhone-friendly browser audio play button

The old way to allow audio to be played/streamed in the browser was a flash button, such as that seen on www.irish-sayings.com .

What's the new iPhone-friendly way to give the ability to click on a simple button to listen to an audio file in the brows开发者_开发知识库er?

If the answer is HTML5, is the such a button built and available? I don't need an MP3 player with steaming and such, only a button.


You just need to use the audio tag.

<audio controls="controls">
    <source src="song.mp3" />
<!-- You can include some fallback for browsers that do not support this -->
</audio>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜