English 中文(简体)
RoR 音频-标签助手多重来源档案
原标题:RoR audio_tag helper multiple source files

我已经看到了许多关于如何实现交叉浏览器音频反馈的java字母答案,而是将使用超文本的多弧帽。

<audio>
    <source src="demo.mp3" type="audio/mp3"> 
    <source src="demo.ogg" type="audio/ogg"> 
    <!-- If no support at all. -->
    HTML5 audio not supported 
</audio>

我正在使用铁路助推器,但可以看如何界定多种来源。

audio_tag("demo.ogg", :id => "soundDemo")

我尝试了音频-tag(“demo.og”):src =>“demo.mp3”,:id =>“声势”但这种 did不动。

是否有任何人知道会奏效? 成就

问题回答

这是一份逾期的答复,但我今天就该问题作了答复,这一联系应当回答你的问题!

基本来说,这是不可能的,但将来会把它列为一种稳定的释放,第一个参数是各种来源。





相关问题
Playing a Sound With Monotouch

No matter what I try (build -> content, NSUrl, filename) I get a null exception : file not found when I try to play a .caf sound file in monotouch. //var path = NSBundle.MainBundle.PathForResource("...

将音频Clips从Peter改为服务器

我不禁要问,那里是否有任何实例表明从Peit向服务器发送音响。 I m不关心电话或SIP风格的解决办法,只是一个简单的袖珍流程......

Play sound in iPhone web app with Javascript?

I m currently creating an iPhone web application for piano chords, and I wanted to add an option that would let the user press a Play button and play the selected chord. However, I m not sure how to ...

热门标签