开发者

JQuery sound - playing and stopping?

开发者 https://www.devze.com 2023-04-05 20:12 出处:网络
I wanted to implement something with JQuery (trying to avoid external plugins), that will play sound on clicking \"play\" and stop the sound by clicking \"stop\", and will also work cross-browser (inc

I wanted to implement something with JQuery (trying to avoid external plugins), that will play sound on clicking "play" and stop the sound by clicking "stop", and will also work cross-browser (including iPhone and iPad devices, so no flash).

Is there a solution to this?

I have only ever found external开发者_如何转开发 plugins..


Unfortunately no. For years the only way to play audio in the browser has always required a plugin. More recently, the HTML5 standard has provided a cross-browser standard for playing audio. Unfortunately many browsers still don't implement HTML5, so this doesn't really fix your problem either.

0

精彩评论

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