All Projects → sricharankrishnan → click-image-play-youtube-video

sricharankrishnan / click-image-play-youtube-video

Licence: MIT license
Jquery based plugin to help render and play youtube embed videos on an modal/overlay in your web apps. Responsive build.

Programming Languages

SCSS
7915 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects
ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to click-image-play-youtube-video

youtube discussion tree
This is a python API that allows you to obtain the discusion that occurs on the comments of a Youtube video as a tree structure. It also controls the quota usage that consumes your implementation over Youtube Data Api through this library, and allows you to represent and serialize the discusion tree.
Stars: ✭ 16 (-15.79%)
Mutual labels:  youtube-video
EntityFrameworkCore.Triggered
Triggers for EFCore. Respond to changes in your DbContext before and after they are committed to the database.
Stars: ✭ 361 (+1800%)
Mutual labels:  trigger
awesome-jekyll-websites
Awesome list of jekyll website and awesome resources. Create a pull request and add your jekyll website!
Stars: ✭ 39 (+105.26%)
Mutual labels:  jekyll-website
AutoPlayVideoRecyclerView
Android library to auto play video from url in Recyclerview.
Stars: ✭ 44 (+131.58%)
Mutual labels:  autoplay
distube-music-bot
An advanced music bot based on distube.js.org with filters and more
Stars: ✭ 24 (+26.32%)
Mutual labels:  autoplay
Reactor
Reactor (for Vera and openLuup) is a Vera Home Automation plugin that provides advanced programmable logic.
Stars: ✭ 17 (-10.53%)
Mutual labels:  trigger
Yturl
YouTube videos on the command line
Stars: ✭ 218 (+1047.37%)
Mutual labels:  youtube-video
ARVI
Android library designed to simplify the implementation of the video autoplay in the RecyclerView
Stars: ✭ 69 (+263.16%)
Mutual labels:  autoplay
iOS-Geofence-Demo
Setup Geofences and get notifications when the device enters or leaves the geofence.
Stars: ✭ 71 (+273.68%)
Mutual labels:  trigger
paulrobertlloyd-v3
My personal website. There are many like it, but this was mine. (2015-2018)
Stars: ✭ 34 (+78.95%)
Mutual labels:  jekyll-website
grantmakers.github.io
Grantmakers.io is a free, open source project built to help nonprofits utilize the incredible IRS electronic 990-PF dataset.
Stars: ✭ 41 (+115.79%)
Mutual labels:  jekyll-website
ModernSimpleProfileUI
Design a Modern Simple Profile UI with Constraint Layout in Android Studio 3.1 Canary 6
Stars: ✭ 24 (+26.32%)
Mutual labels:  youtube-video
WhatATheme
A customizable Jekyll Portfolio theme which supports blogging.
Stars: ✭ 162 (+752.63%)
Mutual labels:  jekyll-website
twitchtube
Twitch YouTube bot. Automatically make video compilations of the most viewed Twitch clips and upload them to YouTube using Python 3.
Stars: ✭ 398 (+1994.74%)
Mutual labels:  youtube-video
ioBroker.smartcontrol
Control devices smarter: by grouping, including triggers like motion, opening window, etc. and set target devices accordingly
Stars: ✭ 20 (+5.26%)
Mutual labels:  trigger
React Native Youtube Iframe
A wrapper of the Youtube-iframe API built for react native.
Stars: ✭ 221 (+1063.16%)
Mutual labels:  youtube-video
SparkChamber
An event tracking framework for iOS
Stars: ✭ 44 (+131.58%)
Mutual labels:  trigger
Ext.ux.form.trigger.Clear
Ext JS 5 trigger implementation. Adds a clear icon to textfields and comboboxes
Stars: ✭ 22 (+15.79%)
Mutual labels:  trigger
stateless
Finite State Machine porting from Stateless C#
Stars: ✭ 25 (+31.58%)
Mutual labels:  trigger
react-scroll-trigger
📜 React component that monitors scroll events to trigger callbacks when it enters, exits and progresses through the viewport. All callback include the progress and velocity of the scrolling, in the event you want to manipulate stuff based on those values.
Stars: ✭ 126 (+563.16%)
Mutual labels:  trigger

Click-Image-Play-Youtube-Video

Version Open Issues Closed Issues License Maintenance

About

This is a javascript/jquery plugin that can be easily integrated into your web app. The main purpose of this plugin is to provide a simple yet effect user interface, in the form of an overlay, to help play youtube embeded videos, based on a click event. This click event can be bound to all clickable HTML elements and is not restricted to images.

If you would like to see a Demo or visit the Webiste, click here. Otherwise, lets get you started on the installations and downloads.

Discussions

A discussions channel has been opened up for this plugin. If you have any questions about this particular plugin, do feel free to write in and I would do my best to help you out. You can access the discussions page by clicking on the 'Discussion' tab above or go to https://github.com/sricharankrishnan/click-image-play-youtube-video/discussions

Getting Started

Before you start coding, download the required files. Click here to proceed to the section for downloading. The javascript file youtube-overlay.js is required. When it comes to stylesheets, you can either download the SCSS file which is youtube-overlay.scss or the raw CSS file which is youtube-overlay.css.

I'm guessing you know how to place a script tag and a link tag referencing to the location of the above files for your web app. Once you've got your files, lets get to work with code.

Prerequisites

Javascript. Jquery. HTML. CSS. Sass(optional)

Built Using

  • HTML
  • CSS (Sass Preprocessor)
  • Jquery

Usage

  1. If you have downloaded and placed your files properly, refresh your browser and open up the console. You should be able to see the Javascript Constructor when you type

    new YoutubeOverlayModule
  2. The click event can be bound to any element in the html file. Although you don't need to register a click event, you would need to initialize this setup by using the javascript constructor. Lets say you have an image:

      <img src="https://github.com/some/example/path/to/image" class="img-responsive center-block" alt="Example" title="Example" id="exampleImage"/>
    
  3. Placing an id for the element is important and mandatory for this to work. Please remember this. If you have multiple elements grouped similarly, I could suggest looping them with javascript and then writing the code that helps to trigger the youtube overlay.

  4. Next you've got to place the required embed code src onto the element. So, in a youtube video, click on the Share button, choose embed and copy paste the src value. Now your image element above would look like this:

      <img src="https://github.com/some/example/path/to/image" class="img-responsive center-block" alt="Example" title="Example" id="exampleImage"
      data-videourl="https://www.youtube.com/embed/1Q8fG0TtVAY"/>
    
  5. Now write the javascript as shown below:

    var img = $("#exampleImage");
    var configObject = {
      sourceUrl: img.attr("data-videourl"),
      triggerElement: "#" + img.attr("id"),
      progressCallback: function() {
        console.log("Callback Invoked.");
      }
    };
    
    var videoBuild = new YoutubeOverlayModule(configObject);
  6. After writing the code in the way shown above, you've got to deploy it into your web app (otherwise its not going to work). Use the available deployment method as shown below:

      videoBuild.activateDeployment();
  7. You're all set and good to go! Refresh your browser and see this working. If you've been able to understand things, I'm sure you can build different patterns that suit different scenarios. If you click on the example image that you've inserted following this documentation, things should be working fine.

Raising Issues for the Project

I don't consider this a superhero project but as of May 2021, its nice to see some appreciation and support coming in. If you do have any issues I'd definetly try to see what I can do help support. Please go ahead and raise a good ol' Github issue and would write back to you depending upon how it could be resolved.

Support

If you like this project, I would really appreciate you placing a star on the github project. This would really help encourage me to become a better developer. Speak to your friends and colleagues about this project too if you can and seek their support.

Here is wishing you a nice day and happy coding. Cheers!

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].