I am trying out streaming from S3 at the moment and noticed one thing I want to ask you about. Whenever an s3 object has a space in its name it fails to stream. I get a “Stream not found” error.
The connection strings are as follows:
Streamer: rtmp:///vods3
File: flv:amazons3//name with spaces.flv
However, when trying to stream object without space in the name it works fine - both my files or wowza example files (Streamer.mov, .mp3 and m4v).
I am using PHP and JW Player 4.3. The problem is due to JW player not encoding url when rtmp protocol is used (specifically in RTMPTModel.as file). So to fix the problem with playing files that have spaces you need to either:
Replace spaces with “+” and urlencode() the whole url after that. For example: [PHP]urlencode(“mp4:amazons3//file+name+with+spaces.m4v”);[/PHP]
Double urlencode() the whole url. For example: [PHP]urlencode(urlencode(“mp4:amazons3//file name with spaces.m4v”));[/PHP]