Streamable videos onebox are broken

Recently, when I share streamable videos as onebox, They don’t show at all. while the link is ok.

https://try.discourse.org/t/testing-streamable-videos/825

https://streamable.com/iqph4

Any idea?

This doesn’t look like a Discourse bug: Streamable returns a 403, so they refuse to send the video for some reason. I’d guess that this is an issue on their side.

Possibly related:

https://meta.discourse.org/t/onebox-is-broken-for-some-old-links/70193?u=fefrei

3 Likes

Actually looking into it a bit more, streamable appears to be blocking embedding. The links to the video files work if loading them directly in a new tab, but if a referer header is sent it will give a 403.

You can verify this yourself by copying the network request in chrome dev tools network tab as a curl command. As the straight request it will return a 403 but if you remove the referer header it will succeed by sending the binary data.

Embedly actually handles it by embedding it within an iframe. If you go to the streamable link you can copy the embed code which provides a link that is embeddable.

<div style="width: 100%; height: 0px; position: relative; padding-bottom: 62.500%;">
  <iframe
    src="https://streamable.com/s/xxxx"
    frameborder="0" width="100%" height="100%" allowfullscreen style="width: 100%; height: 100%; position: absolute;"
  ></iframe>
</div>

I would say that onebox needs to be updated to handle streamable as an iframe with the correct url structure like so.

6 Likes

Has anyone tried modding the oneboxer to use the expanded URL? Not sure that it would need to use an i-frame at all, but its the full video + player.

Currently experiencing this issue over the last 3-4 days with streamable.com. Anyone else manage to fix this?

Streamable is not working for us on beta6 of tests-pass. Is it possible to resolve this by adjusting CSP? Tried applying @chapel’s fix unsuccessfully. Thanks.