• I store my videos on Amazon S3 cloud service and want to have them on my site. When I click “Add Media” at the top of the page/post editor, I can easily add using “Insert from URL.” Works fine for embedding the video… except there’s no video cover.

    It uses the [embed]Vid-Amazon-S3-URL[/embed] code. However, I can’t figure out how to get it to show a video cover instead of the boring, generic black screen.

    URL: http://www.johnrothra.com/countdowns (page still in progress).

    WP version: 4.1

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Your URL goes to a 404 page and doesn’t show any video.

    Also, WordPress does not have built-in “embed” support for videos on Amazon S3 hosting systems.

    You could try using the [video] shortcode instead. That will let you define an image as the “poster” for the video.

    http://codex.wordpress.org/Video_Shortcode

    Thread Starter jrothra

    (@jrothra)

    Oops, I forgot it’s still in “draft.” I just published it so it’s live.

    As to the video shortcode idea, I tried that and the video loaded extremely slow compared to [embed]...[/embed] that is used when I click “Add Media” and choose from a URL. Also, the S3 system does embed fine, just without the cover.

    Moderator Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Actually, no, it’s a bit simpler than that.

    Like I said, the embed shortcode doesn’t handle Amazon links. Really. What it does handle is generic video links, when it can recognize them. In your case, it’s doing exactly that and basically converting to the video shortcode to display the player.

    The embed code is pretty smart. It has a lot of special cases for things like YouTube and Vimeo and so on, for a big whitelist of sites. But it can also recognize generic video and audio links, and will essentially convert to the built in other-shortcodes for those when it doesn’t have a special case for them. It’s one of those why-reinvent-the-wheel things, just use the code elsewhere to accomplish the same job.

    In other words, using the video shortcode is the exact same thing you’re already doing, just indirectly. It really won’t be any slower, because it’s actually the same code.

    You can verify this yourself on your site. View the Source of that page, and notice that your player is wrapped in a div with the wp-video-shortcode class, which comes from the video shortcode.

    Using the video shortcode explicitly will give you more control over what it displays. Using embed and relying on the automatic recognition is actually slightly slower (not so much as you’d notice though), and uses all the default settings instead of letting you choose them yourself, like the poster image.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Add Media Embeds Vid, but I want to Add Video Cover’ is closed to new replies.