2017 © Pedro Peláez
 

craft-plugin embedder

Embed videos (YouTube, Vimeo, Facebook) easily!

image

tibemolde/embedder

Embed videos (YouTube, Vimeo, Facebook) easily!

  • Tuesday, May 15, 2018
  • by tibemolde
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 89 % Grown

The README.md

Embedder plugin for Craft CMS 3.x

Embed videos (YouTube, Vimeo, Facebook) easily!, (*1)

Requirements

This plugin requires Craft CMS 3.0.0-beta.23 or later., (*2)

Installation

To install the plugin, follow these instructions., (*3)

  1. Open your terminal and go to your Craft project:, (*4)

    cd /path/to/project
  2. Then tell Composer to load the plugin:, (*5)

    composer require tibemolde/embedder
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Embedder., (*6)

Embedder Overview

Embed videos easily!, (*7)

Configuring Embedder

No configuration is needed outside of runtime-options, however you can tweak where video-posters are stored locally through the plugin-settings, (*8)

Using Embedder

Basic usage:, (*9)

<div class="embed embed--{{ craft.embedder.getVideoType(videoUrl) }}">
  <iframe src="{{ craft.embedder.getVideoEmbedUrl(videoUrl) }}" title="{{ 'Watch video'|t }}"></iframe>
</div>

Style as you please (this is just an example):, (*10)

.embed {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    padding-bottom: 56.25%; /* ratio for 16:9 embed */

    iframe,
    object,
    embed {
        position: absolute;
        top: 0;
        left: 0;
        width: 100% !important;
        height: 100% !important;
        border: 0;
    }
}

Embedder Roadmap

Some things to do, and ideas for potential features:, (*11)

  • Support oEmbed
  • Support audio-playlists (Spotify, Soundcloud etc)

Brought to you by TIBE Molde, (*12)

The Versions

15/05 2018

dev-master

9999999-dev

Embed videos (YouTube, Vimeo, Facebook) easily!

  Sources   Download

MIT

The Requires

 

The Development Requires

cms craftcms craft-plugin craft embedder

15/05 2018

1.0.4

1.0.4.0

Embed videos (YouTube, Vimeo, Facebook) easily!

  Sources   Download

MIT

The Requires

 

The Development Requires

cms craftcms craft-plugin craft embedder

04/04 2018

1.0.3

1.0.3.0

Embed videos (YouTube, Vimeo, Facebook) easily!

  Sources   Download

MIT

The Requires

 

The Development Requires

cms craftcms craft-plugin craft embedder

03/04 2018

1.0.0

1.0.0.0

Embed videos (YouTube, Vimeo, Facebook) or playlists (Spotify, Soundcloud) easily!

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft embedder