All Projects â†’ corbindavenport â†’ Superembed.js

corbindavenport / Superembed.js

Licence: mit
Fluid width for YouTube, Vimeo, Vine, VideoPress, DailyMotion, and more embedded videos.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Superembed.js

Rssbox
📰 I consume the world via RSS feeds, and this is my attempt to keep it that way.
Stars: ✭ 492 (-20%)
Mutual labels:  twitch, vimeo, youtube
Pylivestream
Pure Python FFmpeg-based live video / audio streaming to YouTube, Facebook, Periscope, Twitch, and more
Stars: ✭ 442 (-28.13%)
Mutual labels:  twitch, vimeo, youtube
React Player
A React component for playing a variety of URLs, including file paths, YouTube, Facebook, Twitch, SoundCloud, Streamable, Vimeo, Wistia and DailyMotion
Stars: ✭ 5,931 (+864.39%)
Mutual labels:  twitch, vimeo, youtube
Openwhyd
💎 Like Pinterest, for Music
Stars: ✭ 287 (-53.33%)
Mutual labels:  vimeo, youtube
Live Stream Recorder
Monitor and record live streams from YouTube, OPENREC, TwitCasting, etc. Made for VTuber fans. (VTuber 盎播è‡ȘćŠšćœ•ćƒè„šæœŹ)
Stars: ✭ 260 (-57.72%)
Mutual labels:  twitch, youtube
Embera
A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.
Stars: ✭ 268 (-56.42%)
Mutual labels:  vimeo, youtube
laravel-video-api
Laravel (Youtube/Vimeo) Video Data API
Stars: ✭ 53 (-91.38%)
Mutual labels:  youtube, vimeo
Sonatamediabundle
Symfony SonataMediaBundle
Stars: ✭ 415 (-32.52%)
Mutual labels:  vimeo, youtube
Electronplayer
An Electron Based Web Video Services Player. Supporting Netflix, Youtube, Twitch, Floatplane, Hulu And More
Stars: ✭ 292 (-52.52%)
Mutual labels:  twitch, youtube
Lightgallery
A customizable, modular, responsive, lightbox gallery plugin.
Stars: ✭ 4,829 (+685.2%)
Mutual labels:  vimeo, youtube
Fastocloud
Self-hosted IPTV/NVR/CCTV/Video service (Community version)
Stars: ✭ 464 (-24.55%)
Mutual labels:  twitch, youtube
php-video-url-parser
A Simple and efficient PHP Video URL Parser that provides you thumbnails and embed codes for various video streaming websites
Stars: ✭ 57 (-90.73%)
Mutual labels:  youtube, vimeo
SharpGrabber
Download from YouTube, Vimeo, PornHub, HLS (M3U8 files) with .NET and JavaScript, Library and desktop app for downloading high quality media
Stars: ✭ 138 (-77.56%)
Mutual labels:  youtube, vimeo
Multistreamer
[discontinued] A webapp for publishing video to multiple streaming services at once.
Stars: ✭ 281 (-54.31%)
Mutual labels:  twitch, youtube
live-stream-recorder
Monitor and record live streams from YouTube, OPENREC, TwitCasting, etc. Made for VTuber fans. (VTuber 盎播è‡ȘćŠšćœ•ćƒè„šæœŹ)
Stars: ✭ 297 (-51.71%)
Mutual labels:  youtube, twitch
Plyr
A simple HTML5, YouTube and Vimeo player
Stars: ✭ 20,859 (+3291.71%)
Mutual labels:  vimeo, youtube
Cracking The Coding Interview Rust
Cracking the Coding Interview problem solutions in Rust
Stars: ✭ 246 (-60%)
Mutual labels:  twitch, youtube
oembed
PHP OEmbed wrapper for well-known video platforms and services
Stars: ✭ 26 (-95.77%)
Mutual labels:  vimeo, twitch
Android Dev Sources
All those Android development sources that you need to be and stay awesome!
Stars: ✭ 434 (-29.43%)
Mutual labels:  library, youtube
Lightgallery.js
Full featured JavaScript image & video gallery. No dependencies
Stars: ✭ 5,168 (+740.33%)
Mutual labels:  vimeo, youtube

SuperEmbed.js

Live demo now available here.

SuperEmbed.js detects embedded videos from YouTube, Vimeo, Vine, VideoPress, DailyMotion, and more on webpages and makes them responsive. Essentially, this means they stretch to fill their container while still maintaining the content's original aspect ratio.

I created SuperEmbed to fix all my issues with existing solutions, including (but not limited to) unnecessary reliance on other libraries, bloated code, and poor fallback support.

Features

  • Works without external libraries like JQuery
  • Responsive videos maintain their original aspect ratio
  • Responsive layout can be forced or blocked with classes applied to the embed code
  • Extremely tiny, the minified version is only 3 KB

Supported Services

SuperEmbed can automatically detect and resize embedded content from these sites:

  • YouTube
  • Vimeo
  • SoundCloud
  • Kickstarter
  • CollegeHumor
  • Hulu
  • Flickr
  • Vine
  • VideoPress
  • DailyMotion
  • Twitch.tv
  • Vid.me
  • Facebook
  • Gfycat
  • LiveLeak
  • MSDN Channel 9
  • MySpace
  • Archive.org

Browser support

Chrome Internet Explorer Firefox Safari Opera
4.0+ 9.0+ (see note) 3.5+ 3.2+ 10+

IE9 compatibility requires classList.js, included in the 'extras' folder, to be loaded before SuperEmbed.js. This is not needed for IE10 and up.

How to use

You can put the SuperEmbed script wherever you want on the page:

<script src="superembed.min.js"></script>

Then it will automatically resize any supported embedded videos. That's it.

Note: If you already use JQuery, and you load SuperEmbed sometime after it, SuperEmbed will use JQuery to detect when the page is loaded and the window is resized (instead of DOM JavaScript).

Advanced features

If you want to make an embedded video (or really any element) responsive, but it's not automatically detected by SuperEmbed, you can add the .superembed-force class to it like this:

<iframe src="http://www.example.com/video" class="superembed-force"></iframe>

You can also tell SuperEmbed to not resize a specific embed by adding the .superembed-ignore class, like this:

<iframe src="http://www.example.com/video" class="superembed-ignore"></iframe>

And finally, you can force a 1:1 aspect ratio by adding the .superembed-square class, like this:

<iframe src="http://www.example.com/video" class="superembed-square"></iframe>

New in SuperEmbed.js 3.1:

  • Added support for SoundCloud and MSDN Channel 9 embeds

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].