2017 © Pedro Peláez
 

craft-plugin craft-video-embed

Generate an embed URL from a YouTube or Vimeo URL

image

viget/craft-video-embed

Generate an embed URL from a YouTube or Vimeo URL

  • Thursday, January 18, 2018
  • by viget
  • Repository
  • 20 Watchers
  • 19 Stars
  • 113 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 1 Open issues
  • 3 Versions
  • 18 % Grown

The README.md

Video Embed plugin for Craft CMS 3.x

Generate an embed URL from a YouTube or Vimeo URL., (*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 viget/craft-video-embed
  3. In the Control Panel, go to Settings → Plugins and click the “Install” button for Video Embed., (*6)

Using Video Embed

Pass a YouTube or Vimeo URL to the getEmbedUrl method and an embed URL will be returned., (*7)

<iframe src="{{ craft.videoEmbed.getEmbedUrl('https://www.youtube.com/watch?v=6xWpo5Dn254') }}"></iframe>

Output:, (*8)

<iframe src="//www.youtube.com/embed/6xWpo5Dn254"></iframe>

Code At Viget , (*9)

Visit code.viget.com to see more projects from Viget., (*10)

The Versions

18/01 2018

dev-settings

dev-settings

Generate an embed URL from a YouTube or Vimeo URL

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft video embed

13/09 2017

dev-master

9999999-dev

Generate an embed URL from a YouTube or Vimeo URL

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft video embed

13/09 2017

1.2.0

1.2.0.0

Generate an embed URL from a YouTube or Vimeo URL

  Sources   Download

MIT

The Requires

 

cms craftcms craft-plugin craft video embed