After some casual research, I found out that Soundmanager 2 is far too powerful and complex for just creating an html5 player. I decided to use jMediaelement instead, a very flexible audio / video development kit with a focus on website players with a classic control interface.
Just make the necessary buttons with HTML/CSS. Inside those buttons use the onclick attribute, for example: open tag: a onclick="pagePlayer.playNext()" close tag
Do not use an "href" attribute. That will execute the javascript method when clicked.
发布评论
评论(2)
经过一些随意的研究,我发现 Soundmanager 2 对于创建一个 html5 播放器来说过于强大和复杂。我决定使用 jMediaelement 来代替,这是一个非常灵活的音频/视频开发套件,重点关注具有经典控制界面的网站播放器。
After some casual research, I found out that Soundmanager 2 is far too powerful and complex for just creating an html5 player. I decided to use jMediaelement instead, a very flexible audio / video development kit with a focus on website players with a classic control interface.
根据 Soundmanager 网站 https://getsatisfaction.com/schillmania/topics/track_list_with_controls_prev_next_button 上的讨论
这是内幕:
添加:
pagePlayer.playNext()
pagePlayer.playPrevious()
只需使用 HTML/CSS 制作必要的按钮即可。在这些按钮内部使用 onclick 属性,例如:
打开标签:onclick="pagePlayer.playNext()" 关闭标签
不要使用“href”属性。单击时将执行 javascript 方法。
此外,该网站上的人们正在处理 soundmanager2 播放器的音量。搜索“音量更改声音管理器”。这是一个人: http://stackoverflow.com/questions/8625500/strange-issue-setting-volume-on -my-music-player-soundmanager
那么,如果你可以设置nex/prev并制作一个按钮,是否可以得出这样的结论为此,你能想出一个音量变化,然后为其设计一个酒吧吗?
According to a discussion at Soundmanager's site at https://getsatisfaction.com/schillmania/topics/track_list_with_controls_prev_next_button
Here's the lowdown:
add:
pagePlayer.playNext()
pagePlayer.playPrevious()
Just make the necessary buttons with HTML/CSS. Inside those buttons use the onclick attribute, for example:
open tag: a onclick="pagePlayer.playNext()" close tag
Do not use an "href" attribute. That will execute the javascript method when clicked.
Also, people on this site are working with volume for soundmanager2's player. Search "volume change soundmanager." Here's one guys: http://stackoverflow.com/questions/8625500/strange-issue-setting-volume-on-my-music-player-soundmanager
So, does it follow that if you can set nex/prev and make a button for it, could you come up with a volume change and then style a bar for it?