在网站上不间断地播放MP3? [英] Uninterrupted mp3 play on a website?

查看:124
本文介绍了在网站上不间断地播放MP3?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

客户端请求单轨跨网站被听到。一般来说,我反对这样做,但他们坚持。那么,什么是具有嵌入在网站Flash播放器的最直接的方法,当用户进入到另一个页面不存在差距/中断?

Client is requesting a single track to be heard across the website. Generally I advise against it, but they insist. So, what is the most straightforward way of having a flash player embedded in a site, and when a user goes to another page there isn't a gap/interruption?

我想需要一个iframe ..我使用具有autoresume一个flash播放器,但只能解决拿起您上次才去到另一个页面上的歌曲不放过。我试了寻找答案..

I am thinking an iframe is required.. I am using a flash player that has autoresume, but that only solves picking up where you last left off on the song before going to another page. I tried searching SO for an answer..

推荐答案

如果您希望它完全中断,你必须嵌入通过Ajax的iframe整个网站,或加载页面。

If you want it totally uninterrupted, you'll have to embed the whole site in an iframe, or load pages via Ajax.

如果你能在音乐容忍一个暂停,你可以做的是修改你的闪存音乐播放器,以保持与歌曲的当前位置的cookie,并在加载时检查该cookie并继续播放在那个地方。

If you can tolerate a pause in the music, what you could do is modify your Flash music player to keep a cookie with the current position in the song and when it loads checks for the cookie and resumes playing at that place.

两者都是那种丑陋的黑客,但如此被强迫用户收听音乐。

Both are kind of ugly hacks, but so is forcing the user to listen to music.

这篇关于在网站上不间断地播放MP3?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆