Ready to get started?Download WordPress


Video Thumbnails
Sometimes the last video is thumbnailed, sometimes first (3 posts)

  1. Daedalon
    Posted 2 years ago #

    Related to my previous suggestion of applying the oEmbed filters to posts before processing, I noticed that the links in a post are proceeded in a certain order, yielding undesirable results. This is because some embedding methods are parsed before others.

    For example a post that contains first a video embedded with a youtu.be URL and then later a different one embedded with a youtube.com URL, would show the later video's thumbnail, as youtube.com URLs are searched for first.

    What's more, the current regexps don't differentiate between Youtube links that are to be auto-embedded, and hyperlinks to Youtube pages. For example <a href="http://youtube.com/watch?v=EXAMPLE">For more information, see this video's comments on Youtube</a> is treated by Video Thumbnails 1.8.1 as an embedded video.

    This second issue should be easily fixed by a proper prefix and suffix to the URLs that can be meaningfully used for hyperlinks. Either we could require that before the URL there is either the beginning of the post, a blank space or a line break, and similar for after the URL, or we could just make sure that the URL is not immediately prefixed by href=".

    The first issue, having different types of links be processed with different priority, would be best solved by making all the links equal by running the post through oEmbed filters.

    Sutherland: What do you think?


  2. Sutherland Boswell
    Plugin Author

    Posted 2 years ago #

    Theoretically I like the idea of video links being discovered, but could see it being annoying in some situations. Usually I'd assume if you're only including a link to a video that you might want a thumbnail for it. If anyone else would like to weigh in on this it'd be great to know how people would like it to work.

  3. Daedalon
    Posted 2 years ago #

    The expected behavior for me is that if a video is shown in a post, it makes for a meaningful official post thumbnail, but if it's only a text link, then not.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic