Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Flash player can't work with protocol-less url


1. Setup player for using flash (primary:'flash')
2. Setup file as protocol-less url ('//site.com/path/to/file.mp4')
3. Play video

Flash player will add host to file path (http://site.com//site.com/path/to/file.mp4) and fails with "File not found" error. It treats protocol-less url as relative url.

Exsample page:https://googledrive.com/host/0B54QL0Y08WTdQnQxdW9tbHNWT3M/protocol.html

3 Community Answers

Andrew

JW Player Support Agent  
0 rated :

Hi,

Is there a reason why you’re setting this up without a protocol? I believe we do require this for all files.

s...

User  
1 rated :

It is convinient if site can work in both HTTPS and HTTP. As I remember there are a couple of places that requires absolute path and no requirements for protocol. It looks like flash player before getting video checks for something like:
url.indexOf('/')==0
and didn't expect that it can be protocol-less url.

Andrew

JW Player Support Agent  
-1 rated :

Ah, that makes sense. Unfortunately, I do believe we require the specific protocol being used here.

This question has received the maximum number of answers.