WordPress.org

Ready to get started?Download WordPress

Forums

YouTube embed fails when video URL has "dash" in it (9 posts)

  1. DougJoseph
    Member
    Posted 1 year ago #

    Using a plugin so I can use iframes. Standard iframe for embedding a YouTube video:

    [iframe width="640" height="360" src="http://www.youtube.com/watch?v=Inl-rsy2EEI?feature=player_embedded&rel=0" frameborder="0" allowfullscreen]

    Notice the video file name has dash (hyphen) in it.

    That video is the only one that won't display. All others that don't have a dash in the file name do just fine.

    Anyone have any idea why? How to fix?

  2. Pauliecricket1
    Member
    Posted 1 year ago #

    I would like to know the same answer if you have it

  3. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    Can you post the original YouTube video link here?

  4. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    it's in the url above : http://www.youtube.com/watch?v=Inl-rsy2EEI

    my thought is that they are a news content provider with Google/Youtube and embedding is disabled.

  5. Krishna
    Volunteer Moderator
    Posted 1 year ago #

    @Seacoast Web Design,

    The embed is not disabled. I think the link just does not work.

    Try this:
    [embed]http://youtu.be/Inl-rsy2EEI[/embed]

  6. DougJoseph
    Member
    Posted 1 year ago #

    Krishna:
    Thanks. Indeed, the exact URL is in my original post.

    Seacoast:
    I uploaded the video, used according to "fair use" laws, and embedding is not disabled.

    Krishna:
    The normal "embed" method works. Is there a way to control the size of the resulting output that way? I think the whole reason I switched to the "iframe" method was the size was different on every video and some were too large for the page.

    To all:
    Thank you for helping!

  7. DougJoseph
    Member
    Posted 1 year ago #

    Krishna:
    I found another reason why I need to use the iframe method. The "rel=0" part of the query string seems to stop the embed method from working. I need that part to stop unwanted videos that are somehow deemed as "related" from showing up after the video.

  8. Pioneer Valley Web Design
    Member
    Posted 1 year ago #

    Remove the video, re-upload, should get a new url?

  9. DougJoseph
    Member
    Posted 1 year ago #

    Seacoast
    Thanks. That is the only way I could think of too, short of rooting around in some strange code that powers the iframe plugin. It is a clunky and undesirable way of solving it, but in the end that is what I did.

Topic Closed

This topic has been closed to new replies.

About this Topic