Streamable Embed
#1
[Image: L8pjmDG.jpg]

The following will allow your users to embed Streamable videos in their posts.

Regular Expression:
\[streamable\](https:\/\/(?:www\.|(?!www))(streamable)\.com/([a-z0-9]+))\[/streamable\]

Replacement:
<div style="width:100%;height:0px;position:relative;padding-bottom:56.250%;"><iframe src="https://streamable.com/s/$3/votbir" frameborder="0" width="100%" height="100%" allowfullscreen style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;"></iframe></div>

Test Value:
[streamable]https://streamable.com/rlt9h[/streamable]

To allow users to set auto play and mute options you will need to adapt the code.
Reply
#2
(2019-01-05, 05:06 AM)Omar G. Wrote:
[Image: L8pjmDG.jpg]

The following will allow your users to embed Streamable videos in their posts.

Regular Expression:
\[streamable\](https:\/\/(?:www\.|(?!www))(streamable)\.com/([a-z0-9]+))\[/streamable\]

Replacement:
<div style="width:100%;height:0px;position:relative;padding-bottom:56.250%;"><iframe src="https://streamable.com/s/$3/votbir" frameborder="0" width="100%" height="100%" allowfullscreen style="width:100%;height:100%;position:absolute;left:0px;top:0px;overflow:hidden;"></iframe></div>

Test Value:
[streamable]https://streamable.com/rlt9h[/streamable]

To allow users to set auto play and mute options you will need to adapt the code.

Where do I put this code?

Also, I didn't do anything, but it appears that streamable embedding may already be supported?  But the title is missing.  Do you know why?

http://sacramentokingsforum.net/showthre...4#pid28334
Reply
#3
See https://docs.mybb.com/1.6/Admin-CP-Config-MyCode/

I have no access to your forum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)