nitaaikumar After thinking about this more, I don’t think I would create a video BBcode. The reason is because the Friends of Flarum formatting extension handles auto embedding video already and it is faster than a BBcode. All you have to do is paste the URL. If I created a new BBcode it would conflict with the formatting extension most likely. Which wouldn’t be great since I’m sure most Flarum forum owners use the formatting extension.
With a small snippet of CSS, you can make the videos embedded by the formatting extension responsive. You can add this in your admin appearance area within the custom CSS box:
video {
width: 100%;
height: auto;
}
That’s all folks!
@datitisev, maybe you can add/edit the CSS in the formatting extension to include this? I tested on my forum with an iPhone; it works great. Probably anything that the formatting extension auto embeds needs a 100% width if it doesn’t have that already.