Our Blog

News, thoughts & useful links

Contact: Skype , email or call
+44 (0) 131 556 6818

JW Player, S3, Wowza and “Stream not found”

February 23rd, 2009 by Anton

When working on an application that streams videos from S3 I noticed that whenever an S3 object has a space in its name it fails to stream.

However, when streaming objects without spaces in the name it works fine.

The solution is as follows:

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:
    
    urlencode("mp4:amazons3//file+name+with+spaces.m4v");
    
  • Double urlencode() the whole url. For example:
    
    urlencode(urlencode("mp4:amazons3//file name with spaces.m4v"));
    


One Response to “JW Player, S3, Wowza and “Stream not found””

  1. pre says:

    Thanks so much, you saved my life ;)