Title: Smart YouTube and Twitch Embed
Author: SwiftNinjaPro
Published: <strong>11. März 2019</strong>
Last modified: 14. Januar 2021

---

Plugins suchen

![](https://ps.w.org/swiftninjapro-youtube-embed/assets/banner-772x250.png?rev=2105060)

Dieses Plugin wurde **nicht mit den 3 neuesten Hauptversionen von WordPress getestet**.
Es wird möglicherweise nicht mehr gepflegt oder unterstützt und kann bei der Verwendung
mit neueren WordPress-Versionen zu Kompatibilitätsproblemen führen.

![](https://ps.w.org/swiftninjapro-youtube-embed/assets/icon-128x128.png?rev=2070213)

# Smart YouTube and Twitch Embed

 Von [SwiftNinjaPro](https://profiles.wordpress.org/swiftninjapro/)

[Herunterladen](https://downloads.wordpress.org/plugin/swiftninjapro-youtube-embed.zip)

 * [Details](https://de.wordpress.org/plugins/swiftninjapro-youtube-embed/#description)
 * [Rezensionen](https://de.wordpress.org/plugins/swiftninjapro-youtube-embed/#reviews)
 *  [Installation](https://de.wordpress.org/plugins/swiftninjapro-youtube-embed/#installation)
 * [Entwicklung](https://de.wordpress.org/plugins/swiftninjapro-youtube-embed/#developers)

 [Support](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/)

## Beschreibung

Easily embed responsive lazy loading YouTube/twitch videos, playlists, and channels
using shortcodes. Also add a secondary fallback video for when videos are unavailable/
private

## Screenshots

[⌊an example of what YouTube uploads embed from a channel looks like⌉⌊an example
of what YouTube uploads embed from a channel looks like⌉[

an example of what YouTube uploads embed from a channel looks like

[⌊an embed which is set by the url query variable ?v=youtubeVideoId⌉⌊an embed which
is set by the url query variable ?v=youtubeVideoId⌉[

an embed which is set by the url query variable ?v=youtubeVideoId

## Installation

 1. Upload plugin to the /wp-content/plugins
 2. Activate the plugin through the ‚Plugins‘ menu in WordPress
 3. Go to settings to see how shortcodes work and enjoy 😀

## FAQ

### is the size dynamic to the website size?

yes, you can set the width to anything you want, and the height can auto-adjust 
to a 16:9 ratio if not set. To make the width dynamic, set it to a %

### can this embed my youtube channel?

the plugin can embed the uploads playlist from your channel.

### can this embed twitch videos?

yes, the plugin also supports twitch embeds.

### where do I get the video/playlist/channel id

the plugin supports multiple ways of inputing the id.
 you can get the id from the
url where you would normaly find it when watching youtube videos, or going to playlists/
channels. you can also copy the full url and use that as the id. this same method
also works for twitch.

### how can the plugin tell if I’m embedding a video, playlist, or channel?

youtube and twitch both use a different algorithm for generating there random url’s.

this plugin uses thoes patterns to try and fix the url. the plugin then checks if
the url returns a 404 or 403 header (meaning the video is either unavailable or 
private) if the video does not exist, it will run the same process on your fallback
video, and won’t include the embed, if the url does not exist. note: simetimes twitch
does not return a 404 header

## Rezensionen

![](https://secure.gravatar.com/avatar/7360b5fcbf43a1a4c0c3c01de44de0f73cf74deced2f783e27d7c2677cac7bc7?
s=60&d=retro&r=g)

### 󠀁[Awesome!](https://wordpress.org/support/topic/awesome-7449/)󠁿

 [maghook](https://profiles.wordpress.org/maghook/) 19. Februar 2020

Easy, responsive, looks dope on my frontpage. Thanks!

 [ 1 Rezension lesen ](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/)

## Mitwirkende und Entwickler

„Smart YouTube and Twitch Embed“ ist Open-Source-Software. Folgende Menschen haben
an diesem Plugin mitgewirkt:

Mitwirkende

 *   [ SwiftNinjaPro ](https://profiles.wordpress.org/swiftninjapro/)

[Übersetze „Smart YouTube and Twitch Embed“ in deine Sprache.](https://translate.wordpress.org/projects/wp-plugins/swiftninjapro-youtube-embed)

### Interessiert an der Entwicklung?

[Durchstöbere den Code](https://plugins.trac.wordpress.org/browser/swiftninjapro-youtube-embed/),
sieh dir das [SVN-Repository](https://plugins.svn.wordpress.org/swiftninjapro-youtube-embed/)
an oder abonniere das [Entwicklungsprotokoll](https://plugins.trac.wordpress.org/log/swiftninjapro-youtube-embed/)
per [RSS](https://plugins.trac.wordpress.org/log/swiftninjapro-youtube-embed/?limit=100&mode=stop_on_copy&format=rss).

## Änderungsprotokoll

#### 2.3.7

replaced youtube popular uploads embed with youtube channel uploads embed (now that
YouTube fixed that url)

#### 2.3

replaced youtube channel uploads embed with youtube popular uploads embed
 added
option to disable youtube or twitch support, to improve performance if only one 
is needed added option to add alternate shortcode name added shortcode attribute„
url“ as an alias for „id“

#### 2.2

added support for youtu.be urls

#### 2.1

added a nice border radius around video iframes
 made javascript functions wait 
for DOMContentLoaded to improve page loading speeds

#### 2.0

Rebuilt Plugin
 – old shortcodes are still supported – „type“ attribute is no longer
needed (this is now auto detected) – you can now use the full url of the video as
you would normaly find it when watching a youtube/twitch video – you can now choose
to autoplay youtube videos – you can now choose to mute youtube videos – you can
now set an exact height (if not set, a 16/9 ratio will be calculated) – improved
support for youtube and twitch videos

#### 1.4

Added wordpress translation to title and description

#### 1.3

added dns-prefetch of youtube
 added prefetch url for youtube videos

#### 1.2

auto height now works
 added support for twitch videos

#### 1.1

added option type=“auto“
 auto will automatically select if the type is a video 
or playlist, based on whats available on YouTube. auto is the new default option
for type, if not set. auto also works for fallbacktype.

#### 1.0

First Version

## Meta

 *  Version **2.3.7**
 *  Zuletzt aktualisiert **vor 6 Jahren**
 *  Aktive Installationen **70+**
 *  WordPress-Version ** 3.0.1 oder höher **
 *  Getestet bis **5.5.24**
 *  PHP-Version ** 5.2.4 oder höher **
 *  Sprache
 * [English (US)](https://wordpress.org/plugins/swiftninjapro-youtube-embed/)
 * Schlagwörter
 * [embed](https://de.wordpress.org/plugins/tags/embed/)[iframe](https://de.wordpress.org/plugins/tags/iframe/)
   [twitch](https://de.wordpress.org/plugins/tags/twitch/)[video](https://de.wordpress.org/plugins/tags/video/)
   [youtube](https://de.wordpress.org/plugins/tags/youtube/)
 *  [Erweiterte Ansicht](https://de.wordpress.org/plugins/swiftninjapro-youtube-embed/advanced/)

## Bewertungen

 5 von 5 Sternen.

 *  [  1 5-Sterne-Rezension     ](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/?filter=5)
 *  [  0 4-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/?filter=4)
 *  [  0 3-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/?filter=3)
 *  [  0 2-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/?filter=2)
 *  [  0 1-Sterne-Rezensionen     ](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/?filter=1)

[Deine Rezension](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/#new-post)

[Alle Rezensionen anzeigen](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/reviews/)

## Mitwirkende

 *   [ SwiftNinjaPro ](https://profiles.wordpress.org/swiftninjapro/)

## Support

Möchtest du etwas mitteilen? Brauchst du Unterstützung?

 [Support-Forum anzeigen](https://wordpress.org/support/plugin/swiftninjapro-youtube-embed/)

## Spenden

Möchtest du die Weiterentwicklung dieses Plugins unterstützen?

 [ Für dieses Plugin spenden ](https://buymeacoffee.swiftninjapro.com)