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:
 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