On july 2013 our player cards were approved by Twitter and worked fine for almost 2 years, until last week.
For the last days we have been debugging this issue to find out the exact cause and these are our results:
STEPS TO REPRODUCE
- Post http://teveo.com.co/AAMAAAAX on your twitter account
- If you are on a PC, refresh the page to see the card
- Click the thumbnail to play the video
ACTUAL RESULTS
- If you are seeing the card from your PC you will see an empty space
- If you are seeing the card from Android or iOS device, the card will work just fine
EXPECTED RESULTS
Player card should be rendered in every platform
CAUSE:
We don’t know why, but since last week, our cards are being placed within an iframe’s sandbox as this line shows:
<iframe frameborder="0" sandbox="allow-popups allow-same-origin allow-scripts" allowtransparency="true" scrolling="no" src="https://teveo.com.co/AAMAAAAX"></iframe>
With this restriction, Flash player will never work because the sandbox attribute "prevent content from using plugins (through embed, object, applet, or other)" according to this W3 article
This restriction is not applied to big players like Youtube, as you can see in theirs cards:
<iframe frameborder="0" allowtransparency="true" scrolling="no" src="https://www.youtube.com/embed/h5l4Rt4Ol7M"></iframe>