1.1.4 • Published 10 months ago

@joinbox/youtubepreviewimage v1.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

YouTube Preview Image

  • Displays the highest resolution preview (poster) image for a given YouTube identifier
  • Supports a fallback image

Example

    <script type="module">
        import @joinbox/youtubepreviewimage;
    </script>
    <youtube-preview-image data-video-id="m7MtIv9a0A4">
        <img src="https://picsum.photos/200/300">
    </youtube-preview-image>

Components

YouTubePreviewImage

Exposed Element

<youtube-preview-image></youtube-preview-image>

Attributes

  • data-video-id: ID of the YouTube video whose poster image should be displayed.

Structure

  • Make sure that <youtube-preview-image> contains an image. Its source will be replaced with the highest resolution YouTube poster image.
1.1.4

10 months ago

1.1.3

10 months ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

3 years ago