YouTube Embeds

Hambeast

    • Posts: 354
    • View Profile
on: November 23, 2018, 10:03:21 PM
I've added a feature so YouTube videos now automatically display in the forum when they're linked. It's set to only run on a computer. I figure it'd be annoying on mobile.

If there's any issues or you hate it, let me know and it can be disabled.


astfgyl

    • Posts: 171
    • View Profile
Reply #1 on: November 23, 2018, 11:38:46 PM
I think it is a brilliant idea but I'm on a laptop. I checked out 4 things i've never heard already because of it


The Butcher

    • Posts: 71
  • Human all too human.
    • View Profile
Reply #2 on: November 24, 2018, 12:57:46 AM
Great idea. Possible to do the same with soundcloud / bandcamp?


Hambeast

    • Posts: 354
    • View Profile
Reply #3 on: November 24, 2018, 05:43:58 PM
Soundcloud works but it's more difficut

You need to grab the Embed code from the "Share" link and copy part of it, then change "%3A" to a colon

<iframe width="100%" height="300" scrolling="no" frameborder="no" allow="autoplay" src="https://w.soundcloud.com/player/?url=https%3A//api.soundcloud.com/tracks/88186893&color=%23ff5500&auto_play=false&hide_related=false&show_comments=true&show_user=true&show_reposts=false&show_teaser=true&visual=true"></iframe>

Results in:
Code: [Select]
https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/88186893
Which gives this when posted:
https://w.soundcloud.com/player/?url=https://api.soundcloud.com/tracks/88186893

Not very simple. Plus it probably makes things difficult for people on mobile.

I'll see if I can get in touch with the plugin developer to fix it and get BandCamp working too
« Last Edit: November 24, 2018, 05:58:36 PM by Hambeast »


The Butcher

    • Posts: 71
  • Human all too human.
    • View Profile
Reply #4 on: November 25, 2018, 12:14:36 AM
Nice one, appreciate the hard slough.


Juggz

    • Posts: 678
    • View Profile
    • Withered Fist
Reply #5 on: November 26, 2018, 11:11:50 AM
Top work, thanks. I'd second the Bandcamp idea, that would be very cool.