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

JWPlayer 7 in instant articles


Hi Guys! I'm trying to embeed JWPlayer 7 in a Facebook Instant Articles.

my code:

<figure class="op-interactive">
<iframe>
<script type="text/javascript" src="https://content.jwplatform.com/libraries/LE62Tg8L.js"></script>

<script>jwplayer.key="abcd";</script>

<div id="player"></div>

<script type="text/javascript">

var playerInstance = jwplayer('player');
playerInstance.setup({
file: 'http://videos-f.jwpsrv.com/content/conversions/zWLy8Jer/videos/Wf8BfcSt-1753142.mp4',
aspectratio: '16:9',
width: '100%'
});

</script>
</iframe>
</figure>


It doesnt work :(. Any body knows how make it?

3 Community Answers

Donni

JW Player Support Agent  
0 rated :

You shouldn’t reference the key because it is already included in the cloud-hosted player that you reference. Also, you should not be referencing that URL – use the links in the SOURCES tab of the content in the j"JW Dashboard()":https://account.jwplayer.com/#/home.

John

User  
0 rated :

Thanks for your answer. I think the problem is with the Instant Articles format, becuase if I put the code outside the iframe the video works fine :/

Donni

JW Player Support Agent  
0 rated :

Cool, but my other recommendations still apply – don’t do those things ^

This question has received the maximum number of answers.