音频播放器html5播放按钮可以';工作正常吗;?
这是我在www.bmixup.com上为我的播放器编写的代码,正在为来自icecast的stream播放,我不明白,在我按下play后,stream play,但在一些时间后,他一直在我的浏览器上停止,如果我重新按下,没有反应,我必须重新加载我的所有页面音频播放器html5播放按钮可以';工作正常吗;?,html,Html,这是我在www.bmixup.com上为我的播放器编写的代码,正在为来自icecast的stream播放,我不明白,在我按下play后,stream play,但在一些时间后,他一直在我的浏览器上停止,如果我重新按下,没有反应,我必须重新加载我的所有页面 <audio id="player" preload> <source src="http://bmixup.com:8000/BmixupStream" type="audio/mpeg"><
<audio id="player" preload>
<source src="http://bmixup.com:8000/BmixupStream" type="audio/mpeg"></source>
Your browser does not support the <code>audio</code> tag.
</audio>
<div style="background-color: #808080;text->align:center;padding:20px;margin-right:0em;">
<div class="buttonplayer" style="text-align: left;">
<button id="play" type="button" >onclick="document.getElementById('player').play()" class="btn btn-default btn->circle btn-lg"><span class="glyphicon glyphicon-play"></span></button>
<button id="Pause" type="button" >onclick="document.getElementById('player').pause()" class="btn btn-default btn->"><span class="glyphicon glyphicon-pause"></span></button>
<button id="Voldown" type="button" >onclick="document.getElementById('player').volume -= 0.1" class="btn btn->default btn-circle btn-lg" ><span class="glyphicon glyphicon-volume-down">>>>></span></button>
<button id="Volup" type="button" onclick="document.getElementById('player').volume += 0.1" class="btn btn-default btn-circle btn-lg"><span class="glyphicon glyphicon-volume-up"></span></button>
<span>
<script type="text/javascript" src="/js/titre.js"></script>
<span id="track-title" style="font-family: exoregular;margin-left: 1em;color: #ffffff;"></span>
<marquee direction="left" scrolldelay="200" style="font-family: exoregular; margin-top: 0.7em;color: #ffffff;">Vous écouter actuellement Bmixup.com, The mix web radio et il y a actuellement : <span id="listeners" style="color: #ffffff;">00</span> auditeurs à l'écoute...Bonne écoute...</marquee>
</span>
</div>
</div>
</div>
出了什么问题,为什么播放后流停止,并且不保持不变,到,我停止,为什么如果重新播放,那不是重新乞讨
你能帮我吗
谢谢…HTML5音频标签非常稳定,但流可能会因为网络问题(数据包丢失、连接问题等)而中断。 最好的解决方案是使用HTML5音频播放器框架,如
jPlayer
或SoundManager2
,捕获流错误并强制播放器重新连接超时