- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经使用iframe在许多网站上成功实现了静态播放器。到目前为止,这已经达到了我的目的,并且实现起来有些复杂。我经常需要通过php中的GET变量传递“框架”状态。我的一个客户一直在显示问题,很高兴看到网址栏中显示了网址,这现在让我重新考虑了自己的方法。
在查看Beatport的html5播放器的源代码时,似乎他们使用的是JavaScript实例化的播放器,该播放器看上去非常解剖且明确。那么...他们是否跟踪玩家状态并将这些变量从一页传递到另一页?他们的平台是什么? PHP的/ Ajax ? node.js? ruby ?这个异步I / O在工作吗?还是html5的音频对象所提供的凉爽?这是我想了解的东西,因为我可能必须将整个方法重新定位以用于将来的应用程序。
此外,Soundcloud Player API是否吐出进度位置?任何帮助是极大的赞赏。
最佳答案
据我所知,Beatport网站是完整的Ajax,没有实际的页面重载,当您单击链接时,将动态重载主要站点的内容。地址栏中的位置更改可以通过javascript(http://stackoverflow.com/questions/1457/modify-address-bar-url-in-ajax-app-to-match-current-state)完成
我建议为这种功能使用某种框架。我不熟悉PHP框架环境,但在SO上听说过http://agiletoolkit.org/,似乎提供了这种功能
Soundloud播放器确实确实“吐出”了更新。在其API中对此进行了记录:
http://developers.soundcloud.com/docs/custom-player#events
onMediaTimeUpdate.scPlayer gets triggered constantly when the player is playing, could be used to display track progress outside of the player node
$(document).bind('onMediaTimeUpdate.scPlayer', function(event){
console.log(event.target, 'the track is at ' + event.position + ' out of ' + event.duration + ' which is ' + event.relative + ' of the total');
});
关于javascript - 玩家状态在Beatport与iframe上实现了javascript? soundcloud支持?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14175936/
这个问题在这里已经有了答案: What does the question mark character ('?') mean in C++? (8 个答案) 关闭 7 年前。 这一行我看不懂为什么
在构建模式下甚至可以有两个玩家吗?查看 Roblox 开发者杂志文章“What did you sleigh?”,它在玩家列表中显示了两个“玩家”。 最佳答案 打开 Roblox Studio 转到任
在构建模式下甚至可以有两个玩家吗?查看 Roblox 开发者杂志文章“What did you sleigh?”,它在玩家列表中显示了两个“玩家”。 最佳答案 打开 Roblox Studio 转到任
关闭。这个问题需要更多focused .它目前不接受答案。 想改进这个问题吗? 更新问题,使其只关注一个问题 editing this post . 关闭 5 年前。 Improve this qu
“Clash of Clans”使用 Game Center 对玩家进行身份验证并将其与现有的远程存储游戏状态相关联。 据我所知,游戏仅在客户端提供玩家标识符。是否有支持的技术来安全地验证用户而不是仅
我正在开发多人游戏,但我无法找出如何将其他客户端连接到创建的游戏。我的意思是客户端 A 创建到服务器的套接字连接,其他客户端(A,B ...)如何连接到客户端 A?有人可以帮我吗? 附注我是网络编程新
我正在尝试使用浏览器控制台一步一步地制作井字游戏,并最终改进我的功能。然而,我被困在玩家2回合(ttt_player2_turn()),我必须检查箱子是否为空。看来我在这个例子中的论证有问题。感谢您的
如果我向上移动玩家 1 和玩家 2,假设我按下玩家 1 的向下键,我的玩家将停止向上移动。我找不到问题所在。有人可以帮助我并解释我做错了什么吗? package game; import java.a
我正在创建一个自上而下的 2D 游戏,并且使用 Box2D 来模拟物理,我的问题是: 如何使玩家保持与我的宇宙飞船的相对速度,并且仍然能够在飞船也在移动的情况下围绕我的玩家移动? 我在下面放了一个插图
我是 Java 新手,我正在尝试制作一个简单的游戏来娱乐。我首先尝试将 repaint 放入 PaintComponent() 中,它一直有效,直到我尝试添加一些背景。有谁知道如何让我的玩家在有或没有
//我正在尝试对玩家 2 的代码进行一些编辑,因此我删除了涉及玩家 1 的所有内容。但出于某种原因,如果没有玩家 1 的代码,玩家 2 根本不会执行任何操作。(假设使用 i、j、k 和 l 键 mov
我接到了一项任务,要编写一个由人类玩家和 AI 玩家组成的 NIM 游戏。游戏是“Misere”(最后一个必须拿起一根棍子的人输了)。 AI 应该使用 Minimax 算法,但它正在采取使其输得更快的
我是一名优秀的程序员,十分优秀!