I am trying to create BB Code for embedding SoundCloud audio streaming.
https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/176533020 from the frame src to embed the track in a post.
I can get the RegEx to recognize it as soundcloud with the search RexEx:
I cannot, however, get the id into the replacement RegEx using the replace variable "id":
i attached my version of the SoundCloud BBCode Extension
However, I am still having issues with SoundCloud private tracks. These cannot be accessed with the share URL.
Private tracks CAN be embedded however. Therefore my question is can a BBcode be used with the src value from the embed code?
For the example track, the embed code is:
Can a BBcode be created to accept: https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/871&color=ff5500&inverse=false&auto_play=false&show_user=true between the tags?
<iframe width="100%" height="20" scrolling="no" frameborder="no" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/871&color=ff5500&inverse=false&auto_play=false&show_user=true"></iframe>
then simply use
Or you extend the bbcode to allow pasting in the embed code itself by using this search regex
then you can use