[Burichan] [Futaba] [Kusabax]  -  [WT]  [Home] [Manage]
IF YOU DO NOT READ THE COMMENTS IN CONFIG.PHP YOU VOID YOUR RIGHT TO SUPPORT

[Return] [Entire Thread] [Last 50 posts]
Posting mode: Reply
Name
Email
Subject   (reply to 6815)
Message
File
Password  (for post and file deletion)
  • Supported file types are: GIF, JPG, PNG
  • Maximum file size allowed is 1000 KB.
  • Images greater than 200x200 pixels will be thumbnailed.
  • Currently 817 unique user posts. View catalog


File
Removed
No. 6815
Is there a way to embed SoundCloud?
Expand all images
>> No. 6817
Yes, it's possible...but to actually get the correct embed ID, you have to actually click the share button and copy the embed code, then pick out the ID from the code (which isn't that hard, but is a lot more trouble to go through than it's probably worth).
>> No. 6824
File
Removed
Thanks, the thing is — they seem to have a secret token as well. Take this — http://api.soundcloud.com/tracks/4037887?secret_token=s-FrBMP — for example. I found 2009 instructions that said, use http://player.soundcloud.com/player.swf?track= for the URL start, and use this code: <object height="SET_HEIGHT" width="SET_WIDTH"> <param name="movie" value="http://player.soundcloud.com/player.swf?track=EMBED_ID" /> <param name="wmode" value="transparent" /> <param name="allowscriptaccess" value="always" /> <embed allowscriptaccess="always" height="SET_HEIGHT" src="http://player.soundcloud.com/player.swf?track=EMBED_ID" type="application/x-shockwave-flash" width="SET_WIDTH" wmode="transparent"> </embed></object>

The 2009 instructions were admitted to be buggy, and SoundCloud seems to have changed if those were good enough last year. Like I said, there seems to be an embed ID and a secret token which doesn't seem to fit in the one-variable template. I tried it anyway. Picture related.
>> No. 6825
>>6824

There's your problem: you're using outdated code.

Taking into account KusabaX's embed variables, this is what your code should look like:

<object height="SET_HEIGHT" width="SET_WIDTH">
<param name="movie" value="http://player.soundcloud.com/player.swf?url=http://api.soundcloud.com/tracks/EMBED_ID&show_comments=true&auto_play=false&color=000000"></param>

<param name="allowscriptaccess" value="always"></param> <embed allowscriptaccess="always" height="SET_HEIGHT" src="http://player.soundcloud.com/player.swf?url=http://api.soundcloud.com/tracks/EMBED_ID&show_comments=true&auto_play=false&color=000000" type="application/x-shockwave-flash" width="SET_WIDTH"></embed>
</object>

I tested this with Firebug by replacing the embed ID in the proper spots, and it does appear to work - but again, the problem comes with getting the actual embed ID, which requires someone to actually go into the "Share" section and either copy the embed code to find it or choose the "customize my player" option and pick it out from the Wordpress code they give you at the bottom. Either way, it strikes me as more trouble than it's actually worth.
>> No. 6828
File
Removed
Here's the response from one of the posters. Thank you for your help!
>> No. 6832
>>6828

Glad I could be of service.
>> No. 6869
how can i use megavideo?They have some strange links with a D in them
>> No. 6872
>>6869

You would first have to change the maximum size for embeds; the default Kusaba X limit is 255px either way, and the minimum size of a Megavideo embed is 440 x 330. I know someone once explained how to do this, but I can't remember how, so you'll have to ask around about that.

As for the actual embed code itself:

<object width="SET_WIDTH" height="SET_HEIGHT"><param name="movie" value="http://www.megavideo.com/v/EMBED_ID"></param><param name="allowFullScreen" value="true"></param><embed src="http://www.megavideo.com/v/EMBED_ID" type="application/x-shockwave-flash" allowfullscreen="true" width="SET_WIDTH" height="SET_HEIGHT"></embed></object>

The embed ID is whatever comes after http://megavideo.com/?v=
>> No. 6873
what about links as http://www.megavideo.com/?d=J7NNAKRL

they have /?d
>> No. 6875
>>6873

That requires a bit of work to find the correct embed ID, but it's still there.

If you check the embed code provided on the page, you'll note the embed URL is the same as a video with "?v=" in the URL. The only characters you need to care about are the first eight.

http://www.megavideo.com/?d=J7NNAKRL
http://www.megavideo.com/?v=8J6GWI52

Both of those links should lead to the same video; the link on the bottom was created by digging through the embed code and finding the first eight characters of the embed ID.

Don't you hate it when websites do confusing bullshit like this?
>> No. 6879
>>6875
none of my users will do that but thank you for the help.
>> No. 6884
>>6879

Sure thing. Any other embed codes I can help you with?
>> No. 11794
>>6884
what else you got?
>> No. 12700
>>6825
What is a valid filetype to use when adding the embed code to kusaba x?

Thanks in advance.
>> No. 12701
>>6825
What is a valid filetype to use when adding the embed code to kusaba x? Tried all the obvious things like mp3 gives invalid filetype.

Thanks in advance.
>> No. 12702
File
Removed
have you considered using embed.ly to handle your embed codes?

I just checked the regex for the jquery version im running and they do support soundcloud, though i havent specifically tried embedding anything with that yet. I have it set up so any url you add to the message field gets checked against the embed.ly regex and if there's embed code returned by the service it displays some metadata and the embed.

The downside, of course, is you're depending on a third party to do the dirty work, and it can be slow with a lot of requests on the page.
[Return] [Entire Thread] [Last 50 posts]


Delete post []
Password  
Report post
Reason