Forums | Mahara Community

Support /
Soundcloud Player not embedding


anonymous profile picture
Account deleted
Posts: 45

15 November 2013, 2:33

Hi!

We used Mahara extensively last year and had no issues with embedding Soundcloud (using the External Resource plugin and just pasting in the URL). This was on 1.6.

We are now on 1.7.2 and, try as I might, I cannot get Soundcloud players to appear.

I have added soundcloud.com to the iframe list and the icon appears, but when I paste in either the URL to a player or the iframe code, nothing shows except an empty box. It doesn't work in the 3rd party External Resources plugin either.

We have a massive reliance on Soundcloud and wasn't aware this was broken! (for us at least). Anyone else having issues?

If you'd care to try it, an example link to a player is: 

https://soundcloud.com/sic/same-as-it-ever-was-sic

<iframe width="100%" height="166" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/56626489"></iframe>

Hope you can help!

dan

Kristina Hoeppner's profile picture
Posts: 4863

15 November 2013, 6:49

Hello Dan,

I could successfully embed the iframe code that you provided for Soundcloud in both 1.7 and 1.8. The URL that I put into the Allowed iframe sources was

w.soundcloud.com/player/

The other URL, your first  one, didn't work because in order to embed a SoundCloud, you always need to provide the whole iframe code. Only a select number of sites work with just the URL when they have been specially added to Mahara. If you look in the external media block, you see two lines of icons: The first one for which you need the iframe code and the second for which you can simply use the URL of the page. The second is a relic from our early days when we always had to hardcode exceptions into Mahara. The "Safe iframe feature of HTMLPurifier" only allows to embed the entire iframe and but not the URL.

Cheers

Kristina

 

anonymous profile picture
Account deleted
Posts: 45

15 November 2013, 7:37

That's great - I'll give that a go!

I did try w.soundcloud.com but didn't add /player.

We used to use the External Resource Plugin which enabled us just to paste in the URL and it worked fine. However, when i use that now, it just shows a broken image. It's a shame because this is much easier than getting an embed code.

Will have to advise to use the iframe code.

Thanks.

d

Kristina Hoeppner's profile picture
Posts: 4863

15 November 2013, 8:34

Hello Dan,

Why can't you use the External Resource plugin anymore? It might just be the case that a little bit of development work is needed to make it work for 1.7. Since it is a plugin though, the Mahara core team does not support it. You could get in touch with the plugin developer and see if he has any plans of making the plugin available for 1.7 and later.

Cheers

Kristina

 

A post by Aaron Wells was deleted

5 results