Loom Embedded videos not playing/loading (it was working fine before)

My understanding is when you paste https://www.loom.com/share/eb54c7d0d6f2417e9b56c3bc36b2d0d3,
the actual video file (mp4) is being figured out with a different strategy like:

https://www.loom.com/share/eb54c7d0d6f2417e9b56c3bc36b2d0d3

https://www.loom.com/v1/oembed?url=https%3A%2F%2Fwww.loom.com%2Fshare%2Feb54c7d0d6f2417e9b56c3bc36b2d0d3&format=json

https://www.loom.com/embed/eb54c7d0d6f2417e9b56c3bc36b2d0d3

https://cdn.loom.com/sessions/transcoded/eb54c7d0d6f2417e9b56c3bc36b2d0d3.mp4?Policy=eyJTdGF0ZW1lbnQiOlt7IlJlc291cmNlIjoiaHR0cHM6Ly9jZG4ubG9vbS5jb20vc2Vzc2lvbnMvdHJhbnNjb2RlZC9lYjU0YzdkMGQ2ZjI0MTdlOWI1NmMzYmMzNmIyZDBkMy5tcDQiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE3MDk1OTE0NDJ9fX1dfQ__&Key-Pair-Id=KQOSYIR44AIC0&Signature=SJYPMsuWnmbkoqXt0iKu%7EblkXNrLYaYxwbvKfvBdYP8yvBcDj0Q9rLSBHRQE9lGBRNNXHFs42t7%7EEKnLqoyGIqLfCMghwbYuKjRdVgxNLDCm1o19FCp5lEPEvJ7%7ElemdrZKcMSS9M86U5Y3kpELJfprqVVXMonyjflVGolOgs00Rw2kCKZvX9zMheBfONmilqwLybVa1sD3U5urvtjfQO2Pe%7EnO5K9YSCVg4tTBZumExVj%7EpNd-IT679gSxrDoEorz5O6VS8TScUbB4SYVLhnO2dbVhPWuJKFyPelKu6bj8eCSSo4t2ZH7ZiNbdyrEY8TYSqpMPVtymwf1JtQA0SiA__

The issue is that the final .mp4 file, loom attaches session attributes.

In the Brave topic, where the video freezes, the credential attached is not the same as the one attached on this topic. I’m talking about Policy=, Key-Pair-Id and Key-Pair-Id=.

My wild guess is that the session got invalidated, possibly each session has an expiration time (or for some others reasons). So, unless you refresh the post to generate a link with fresh credentials, you might get invalid links at some point.


One solution would be to use loom inside an iframe.
That’s could be a feature request to make a rule for loom, for sure! :slight_smile:
You can retrieve the data from the embed URL:

{
"type": "video",
"version": "1.0",
"html": "<iframe src=\"https://www.loom.com/embed/eb54c7d0d6f2417e9b56c3bc36b2d0d3\" frameborder=\"0\" width=\"1920\" height=\"1440\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>",
"height": 1440,
"width": 1920,
"provider_name": "Loom",
"provider_url": "https://www.loom.com",
"thumbnail_height": 1440,
"thumbnail_width": 1920,
"thumbnail_url": "https://cdn.loom.com/sessions/thumbnails/eb54c7d0d6f2417e9b56c3bc36b2d0d3-00001.gif",
"duration": 180.957,
"title": "Google - 8 January 2024",
"description": ""
}

Note: there is a rake command to re-generate the onebox: rake posts:refresh_oneboxes if it can help.

3 Likes