Optic
Well-known member
I'm attempting to create a custom BB Code Media Site for self hosted videos using FlowPlayer.
My intention is to use the filename as the media ID for {$id}
The problem is if I include any spaces within the media ID BBCode, it incorrectly converts the spaces to + signs instead of %20, so the resulting video will never embed correctly as it's the wrong URL.
Thinking maybe the Flowplayer embed code was at fault, I tried removing the Flowplayer code altogether and just put the URL of the video in the Embed HTML but with the same effect.
Steps to reproduce:
1. Create BB Code Media Site:
2. Create a post with the new media BB code and include spaces in the media ID:
3. The filename is incorrectly embedded with + signs instead of %20 in the message body:
The correct URL is supposed to be:
http://test.com/flowplayer/Angel Beats - OP.mp4
My intention is to use the filename as the media ID for {$id}
Code:
<div class="flowplayer">
<video>
<source type="video/mp4" src="http://test.com/flowplayer/{$id}">
</video>
</div>
The problem is if I include any spaces within the media ID BBCode, it incorrectly converts the spaces to + signs instead of %20, so the resulting video will never embed correctly as it's the wrong URL.
Thinking maybe the Flowplayer embed code was at fault, I tried removing the Flowplayer code altogether and just put the URL of the video in the Embed HTML but with the same effect.
Steps to reproduce:
1. Create BB Code Media Site:
![bbcode-1.webp bbcode-1.webp](https://xenforo.com/community/data/attachments/91/91655-0f44816003d45b7c8f7eeceebf67e075.jpg)
2. Create a post with the new media BB code and include spaces in the media ID:
![bbcode-2.webp bbcode-2.webp](https://xenforo.com/community/data/attachments/91/91656-27a4b6254415dd792c4d6107a273d79a.jpg)
3. The filename is incorrectly embedded with + signs instead of %20 in the message body:
![bbcode-3.webp bbcode-3.webp](https://xenforo.com/community/data/attachments/91/91657-f492acb9ae6ac252d6be5f5d87e86af2.jpg)
The correct URL is supposed to be:
http://test.com/flowplayer/Angel Beats - OP.mp4