Tag: youtube

How do I control the playback of multiple Youtube Videos with the Youtube JS api?

Here’s the problem: I have multiple youtube videos in a slider, and I want the videos to stop playing when a link that controls the slider is clicked. It’s really annoying to have the videos just keep playing when you can’t see it. I used this code: <div id=”ytapiplayer2″> You need Flash player 8+ and […]

An embedded Youtube video won't fullscreen

I have embedded a youtube video into a website via a drupal module (I’m not sure if that’s relevant here). Everything works fine and I’m able to interact with the video via javascript and do everything I need, however, fullscreen no longer works. Here is the string I’m using to embed the video: orientation.start_id = […]

Div is covered by youtube embed, how do I fix that?

Code: http://jsfiddle.net/DerNalia/vmNP4/ The gray menu in the top right is supposed to be above the videos. Why isn’t it? How do I make it so the div is always on top of the videos, regardless of positions?

Fancybox 2.0 and Youtube Video

I want to open a youtube video in the new fancybox. I don’t get it to work. It always goes directly to the page instead of opening it in the fancybox. Here is the code: <!doctype html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>youtube video</title> <link rel=”stylesheet” href=”css/jquery.fancybox.css” /> <script src=”./js/jquery-1.9.1.min.js”></script> <script src=”./js/jquery.fancybox.pack.js”></script> <script> $(document).ready(function(){ $(“.fancybox-media”).fancybox({ […]

How can I check if a YouTube channel name exists?

I own a website that generates YouTube names, how can I show the user if a channel is already taken or not?

how to display youtube thumbnail image from url with Angularjs

I just start to using angularjs and I want to display youtube thumbnail image from the youtube video url … is there a way to display video thumbnail when people insert url in input and then click the button, PLUNKER

swfobject not working?

hey guys, i wonder what i’m doing wrong. index.html <script src=”swfobject/swfobject.js”type=”text/javascript”></script> <div class=”post”> <script type=”text/javascript”> var params = { allowScriptAccess: “always” }; var atts = { id: “myytplayer” }; swfobject.embedSWF(“http://www.youtube.com/e/GfugtAWxooU?enablejsapi=1&playerapiid=ytplayer”, “ytapiplayer”, “425”, “356”, “8”, null, null, params, atts); </script> </div> my swfobject folder is in the same directory as my index.html. Why can’t i see […]

Can't Stop YouTube Video in Hidden DIV Playing in the background

I’ve tried various things but can’t get a YouTube video in a hidden DIV to stop playing in the background before the DIV toggle is even clicked. visibility:hidden didn’t seem to solve the issue. Here’s the code I’m using. Hope someone can help! I can turn off autoplay to solve it, but then it means […]

Youtube embedded video start / stop event

I was wondering, does embedding a youtube video via iframe expose certain events, like onStart or onStop, where you can specify some callback?

Mobile iframe youtube viewing trying to download and not show video

I have the following code working for desktop but not mobile. The code displays an image and if that image is clicked it will then replace it with an iframe holding the youtube video assigned to it.. <img src=”/image/background/ph_shop.jpg” alt=”Shop Directions” class=”video-placeholder img-force shadow-box pointer” data-video=”https://www.youtube.com/v/m8qcEilvdMQ&rel=0&autoplay=1″ /> <script> $(“.video-placeholder”).click(function(){ var video = \'<iframe frameborder=”0″ class=”width-100 […]