Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Briant Diehl 2 posts 72 karma points
    1 week ago
    Briant Diehl
    0

    I'm having a problem embedding videos using the umbraco grid editor (umbraco v 7.7.4).

    When working locally everything seems to be working fine. I copy the youtube url into the embed input, press "Retrieve" and the youtube video is retrieved correctly. The problem only seems to be present once I've published and I'm working with a live site. I follow the same steps, but once I click "Retrieve" it comes back with the message "Could not embed media - please ensure the URL is valid".

    Here is a look at the different responses I get when I look at my network requests. Locally I get:

    {
    "Status":2,
    "SupportsDimensions":true,
    "Markup":"<iframe width=\"360\" height=\"203\" src=\"https://www.youtube.com/embed/7oPUIX8vPkY?feature=oembed\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe>"}
    

    Live I get:

    {
    "Status":1,
    "SupportsDimensions":true,
    "Markup":null }
    

    I was wondering if anyone has run across similar errors when trying to embed videos. If not, does anyone know what the status codes mean from the responses I've received?

Please Sign in or register to post replies

Write your reply to:

Draft