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

Unencoded apostrophes break video preview image


Given the following page source, the initial keyframe for the video renders black instead of the image referenced in the player setup. A single quote is valid URL syntax (see rfc-2396, 2.3. Unreserved Characters), and should be supported in player setup since the parameter takes a URL. To see this, you'll need to replace the script source in the example and may need to replace the video file if it expires before you look at this ticket. You can keep the image, as that won't expire.

We are using 6.12, but the issue was present in 6.11.

We use JWPlayer as a part of the Escenic platform. It's a web CMS that integrates with JWPlayer. The way it generates image file names doesn't encode single quotes because, as stated above, they should be "safe" in a URL. It seems that the single quote is breaking something along the way, and the keyframe images never gets set as a backgroud-image for the player. We don't have a lot of wiggle room to change the way Escenic generates image URLs, so we need this issue addressed at the player level.


<html>
<head>
<script src="path-to-your/jwplayer.js ">///YOUR KEY HERE///</script>

</head>
<body>
<div id="myElement">Loading the player... </div>
<script type="text/javascript">
var playerInstance = jwplayer("myElement");
playerInstance.setup({
primary:"HTML5",
width:"100%",
aspectratio:"16:9",
autostart:false,
image:"http://qa1.kansascity.com/entertainment/hgw9h-Thats-showbiz/ALTERNATES/LANDSCAPE_560/That's%20showbiz",
file:"http://output.mci.media.s3.amazonaws.com/binary/2015/2/27/20/1424872004188-162ucs/IMG_2189-1425070299925.mp4?AWSAccessKeyId=AKIAJHT5OUFKQVKNBCBQ&Expires=1592332063&Signature=THxY0%2BXLRrNr1iCFdiiWF6ddNGo%3D",
advertising:{
client:"googima",
tag:"http://pubads.g.doubleclick.net/gampad/ads?sz=400x300&vpos=preroll&sdkv=3.9…3D%26pl%3Dhomepage&impl=s&correlator=[timestamp]&unviewed_position_start=1"
}
});
</script>
</body>
</html>

4 Community Answers

Randy

JW Player Support Agent  
0 rated :

Hello,

Thank you for contacting the JW Player support team. The setup should play as necessary but I think you may need to set the proper permissions on your image for access. I successfully pulled in the feed in both png and jpg.

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

escenic-devel

User  
0 rated :

I feel confident that this is not a permission problem. Everything works fine when the image name doesn't include an apostrophe. It only breaks with an unencoded apostrophe.

You are saying that the example above worked for you? You did not see a blank poster frame? Would you mind posting your hymn source?

Also, I gladly would give you a more complete page source for us, but don't want to put out license key in an open forum. Is there a more secure way to receive support?

Randy

JW Player Support Agent  
0 rated :

Hello,

Please feel free to send the information to: support@jwplayer.com and reference my name in the Title. I will then take a deep dive into the issue.

Kindly,

Randy Le’Moine, Web Support Engineer, JW Player
www.jwplayer.com

escenic-devel

User  
0 rated :

Randy,
I have emailed a file that I hope will better illustrate the problem.

I neglected to mention in the email that there are some comments in the player setup that you'll want to look at.

Thank you for your help.

This question has received the maximum number of answers.