播放器html5 soundcloud [英] Player html5 soundcloud
问题描述
我想在Flash中将Flash player SoundCloud更改为HTML5播放器。音频是添加在页面中。
我有问题,因为我无法找到一个代码没有用户,只是一个球员的工作。
Flash代码:
< object height =100%width =100% >
value =http://player.soundcloud.com/player.swf?url=<?=print_field($data,'ound_link)?> ;&安培; auto_play =假安培; player_type =艺术品&安培;颜色= 000000\" >< / PARAM>
< param name =allowscriptaccessvalue =always>< / param>
< / object>
只要创建一个新的WordPress的帖子,给一个标题,然后在主文本区域插入下面显示的代码,就好像它是通常的文章文本:(点击保存草稿,然后尝试预览):
[soundcloud url =http:// api。 soundcloud.com/tracks/34019569params =color = 000000width =100%height =166iframe =true/]
注意:您必须使用 http://
而不是SSL版本 https://
。
编辑:
使用SoundCloud URL作为链接,您现在可以尝试:
[soundcloud url =https://soundcloud.com/soulmovementrecords/dj- fleg-new-hornsparams =auto_play = false& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp;
以下是一个示例的链接: SoundCloud Player测试 (使用网页网址不是用户或曲目ID)
我假定使用你的代码,你可以尝试像这样:
[soundcloud url =sound_linkparams =auto_play = false& amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; amp; sewidth =100%height =150/]
I would like to change flash player SoundCloud to HTML5 player to my site in WordPress. The audios are add in pages.
I'm having problems because i cant find a code no user, just a player that work.
The flash code:
<object height="100%" width="100%">
<param name="movie"
value="http://player.soundcloud.com/player.swf?url=<?=print_field($data,'sound_link') ?>&auto_play=false&player_type=artwork&color=000000"></param>
<param name="allowscriptaccess" value="always"></param>
<embed allowscriptaccess="always" height="100%" src="http://player.soundcloud.com/player.swf?url=<?=print_field($data,'sound_link') ?>&auto_play=false&player_type=artwork&color=000000" type="application/x-shockwave-flash" width="100%"></embed>
</object>
解决方案 Did you try code like this?
Simply create a new Wordpress post, give a title, then in main text area just insert the shown code below into it as if it was usual article text: (click "Save draft" and then try "Preview") :
[soundcloud url="http://api.soundcloud.com/tracks/34019569" params="color=000000" width="100%" height="166" iframe="true" /]
note: You must use http://
not the SSL version of https://
.
EDIT :
First make sure you install the SoundCloud Short Code plugin (made by SoundClound Inc) :
For using SoundCloud URL as link, you can now try:
[soundcloud url="https://soundcloud.com/soulmovementrecords/dj-fleg-new-horns" params="auto_play=false&show_comments=false" width="100%" height="150" /]
Here is a link to an example: SoundCloud Player test (using a page URL not user or track ID)
I assume using your code, you can try something like:
[soundcloud url="sound_link" params="auto_play=false&show_comments=false" width="100%" height="150" /]
这篇关于播放器html5 soundcloud的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!