Skip to content
Advertisement

Tag: youtube

Youtube’s custom right click menu options

I was using youtube and realized that if you right-click a video twice (once to bring up youtube’s right-click menu, and a second time while its menu is already up) it opens the browser’s right-click menu with additional options. Specifically, on Firefox, it has the added options: Play, Mute, Speed (expands to speed options), Loop, Full Screen, and Show Controls.

Remove unused Javascript base.js (Youtube iframe api)

Google PageSpeedInsights flags Base.js as unused Javascript in my report. It’s pretty substantial at 487kb. Appears to come from including the Youtube player iframe api. Is this file needed and if so, does anyone know why it is being flagged as unused JS in the report? Iframe API: https://developers.google.com/youtube/iframe_api_reference Large file that gets flagged on PageSpeedInsights as unused JS: https://www.youtube.com/s/player/c88a8657/player_ias.vflset/en_US/base.js

Embedded YouTube videos won’t replay

Strange one: embedded YouTube videos, once played (either by clicking ‘play’ or autoplaying on page load) will not play again. I’m using the standard iFrame embed copied straight from YouTube. This happens with several different short videos and across all browser/OS combinations I’ve tested (Chrome/Safari/Firefox/IE on Windows/Mac). Here’s the code: and you can see it in action at this fiddle.

how to get youtube video id from url

I am trying to check whether a url is a valid youtube video URL and get the youtube video ID from it, so far I am using a simple javascript split function in order to achieve this, however this has some minor disadvantages as youtube has multiple URL’s. I have been viewing other stackoverflow threads however all of them only

Preloading a youtube embed

I want to have an embedded chromeless youtube video preload its video WITHOUT playing when the page loads. Right now I’m using an awkward “play then quickly pause” script which causes small problems (half-second audio leaks and fails quite a bit). For this seemingly simple functionality, is there a better/more elegant way to preload? Answer I had the same question

Improving regex for parsing YouTube / Vimeo URLs

I’ve made a function (in JavaScript) that takes an URL from either YouTube or Vimeo. It figures out the provider and ID for that particular video (demo: http://jsfiddle.net/csjwf/). It works, however as a regex Novice, I’m looking for ways to improve it. The input I’m dealing with, typically looks like this: 1) Right now I’m doing three separate matches, would

jQuery Youtube URL Validation with regex

I know there is plenty of question answered over here https://stackoverflow.com/questions/tagged/youtube+regex, but not able find a question similar to me. Any body has the JavaScript Regular expression for validating the YouTube VIDEO URL’s line below listed. Just want to know where such a URL can be possible — update 1– — update 2– This one worked almost fine, but failed

Advertisement