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

"No Playable Sources Found" When Embedded on Twitter


Hey JWPlayer,

Encountering a weird bug. We do iFrame embedding, and noticed that when we are embedded on Twitter we always get the bug "No Playable Sources Found" with the exclamation mark sign. I take a look at the embed, here is how twitter does it:

<iframe src="https://v.traileraddict.com/8285" data-src="https://v.traileraddict.com/8285" scrolling="no" allowtransparency="true" sandbox="allow-popups allow-same-origin allow-scripts" frameborder="0"></iframe>

That creates the error. But then there is another https site that embeds the same video, without any error:

<iframe class="movieTrailerIframe" src="https://v.traileraddict.com/8285" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true" scrolling="no" height="402" width="700"></iframe>

I can create the error here, showing how one works and one does not, the embed setups:

http://www.traileraddict.com/test-static.html

What gives?

Cheers!
Ryan


6 Community Answers

James Herrieven

User  
0 rated :

Hi Ryan

It's down to the "sandbox" parameter.

It's an added security/restrictions feature which affects content loaded in iframes. Check the following for more details: https://developer.mozilla.org/en/docs/Web/HTML/Element/iframe

James

Randy

JW Player Support Agent  
0 rated :

Hello Ryan,

James is on the mark. I think you might want to also potentially try using a Twitter card as well if that fits your needs:

https://www.jwplayer.com/blog/supporting-twitter-cards/

Kindly,

Randy Lemoine

contact

User  
0 rated :

Thanks for the feedback. So, to be clear, is it because of the "allow-same-origin" variable in the sandbox?

contact

User  
0 rated :

... Ahhh. The sandbox requires video to come from HTTPS source? Not even facebook requires that. dang it.

Randy

JW Player Support Agent  
0 rated :

Most content requires secure connects or at least heading in that direction.

contact

User  
0 rated :

It looks like that with

sandbox="allow-popups allow-same-origin allow-scripts"

You can modify the sandbox itself from within the iframe and then reload the iframe. Has anybody successfully done this? Seems like a nice temporary solution.

Cheers
Ryan

This question has received the maximum number of answers.