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

JW Platform plugin WordPress does not support https


We are using de WordPress plugin (JW Platform, 1.3.1) on our website and want to make the site available under HTTPS. Unfortunately the video's are not shown at all: https://kennis.mailplus.nl/video/een-e-mail-bericht-opstellen/?user-type=marcom&lang=nl

Will the be fixed in the plugin? Or is there a different (and easy) way to embed the videos?

4 Community Answers

s...

User  
0 rated :

I had similar https issues all day yesterday and am, well, disappointed no one responded to my support question to email and that my question posted here was just removed and not answered. If not I can't find it.

For the "script" do this:

<script type='text/javascript' src='http://content.jwplatform.com/players/J3DDFUEO-9lC6YVXn.js'></script>

Becomes:

<script type='text/javascript' src='https://content.jwplatform.com/players/J3DDFUEO-9lC6YVXn.js'></script>

Turn http into https in the script. Browsers will block insecure scripts in a secure page.

s...

User  
0 rated :

I found my question from before. I do feel there needs to be a control that lets your shared and embed links default to https. So many sites are https and if what you share isn't https it just won't work, and the company I work for wants to do lots and lots of sharing.

Cooper Reid

JW Player Support Agent  
0 rated :

Hi,

From what I can see, our Platform plugin does in fact support SSL. I can see on your particular page the plugin is still rendering the embed as http. Please take a look at bitsontherun.php and you’ll see the embed function called “botr_create_js_embed”. This does SSL detection, but I’m thinking the is_ssl() check is not detecting properly. Can you try to modify this?

-Cooper

c...

User  
0 rated :

@Cooper
Thanks for your reply. We've checked the SSL and it is working properly. The problem seems to be in the code of the plugin:

Change Line 480 - 482
if($timeout < 1) {
$url = "http://$content_mask/$path";
} else {


It will be fixed when you change this to:

if($timeout < 1) {
if(is_ssl()) {
$url = "https://$content_mask/$path";
} else {
$url = "http://$content_mask/$path";
}
} else {

Maybe JWPlayer can fix this in the WordPress plugin? Otherwise we have to modify this ourselves and won't be able to update the plugin in the future.

Looking forward to your reply. Thanks.

This question has received the maximum number of answers.