I am trying to develop a method of displaying oneindex video/image using the mediaembed, which provides a great way of displaying video/image because:
1 As a Chinese, nearly all kinds of video platform (that we are able to access) have censorship, which takes time and makes it impossible for videos to be uploaded and displayed as soon as possible on the forum.
2 As a very easy tool to use, oneindex can make onedrive images/videos accessible for the forum to use (as an external link).
3 The price of storage on Onedrive is usually cheaper than on VPS,
So currently I added a custom bbcode using s9e\TextFormatter\Configurator, and it looks like
'[oneindex src={URL?}][/oneindex]',
'<video preload="" controls="" width="100%"><source src="{URL}" type="video/mp4"></video>'
Should I make it an extension, or is there any other way that is more elegant and proper to display onedrive video on flarum?