-
Sean Anderson
flash error-handling google-chrome-extension youtube-javascript-api
I’ve been working on a Google Chrome extension for a while now. I’ve noticed that Flash has been crashing quite commonly lately and I would like to have my extension gracefully recover from such an event.I found a post talking about testing a Flash element directly, but I am using YouTube’s iFrame API. When I try to call SetVariable on the iFrame, not surprisingly, it always fails.Any ideas on other ways I could detect my player having crashed so that I may respond accordingly?
-
datakun
google-chrome-extension youtube youtube-api youtube-javascript-api
I’m newbie at chrome extension. I’m making chrome extension that play youtube chromeless player.It worked on chrome web browser. But, it isn’t working on chrome extension.I tested local .swf file. That is worked on chrome extension.I think, chrome extension can’t call onYouTubePlayerReady().So I called window.onYouTubePlayerReady() after swfobject.embedSWF(). But, it isn’t worked at ytplayer.loadVideoById(“xa8TBfPw3u0”, 0); with error message.The error message was Uncaught TypeError: Object #<
-
crs1138
javascript jquery api scope youtube-javascript-api
I’ve got following code, that is suppose to pause Slidedeck’s autoscroll whenever there is a mouseover event. For mouseout event, the autoscroll should resume working unless the youtobe video in the Slidedeck is currently playing or buffering. I got it working fine if there wasn’t the condition for the Youtube video. I believe there’s a problem with the scope for the object player, but can’t work it out, how to fix this problem.The error I get in console on mouseout is:Uncaught TypeError: Object
-
ceasar
youtube-api google-plus youtube-javascript-api
I saw this thread Embed Youtube subscribe counter? and I am wondering where does this button come from ?I asked it on that thread but I don’t think anyone noticed thatI tried some code for myself but this gives a js error Uncaught Error: Bad hint <iframe data-gapiattached=”true” frameborder=”0″ scrolling=”no”src=”http://www.youtube.com/subscribe_embed?bsv&usegapi=1&channel=HERE CHANNELNAME”style=”overflow: hidden; height: 24px; width: 170px; border: 0;”> </iframe>It l
-
Stefano
jquery youtube-api embedding youtube-javascript-api
I have embedded a YouTube video in a website, but I want to start playing it by clicking on a custom button outside the player.After some research on the web I’ve tried with this piece of js:$(document).ready(function() {$.getScript(‘http://www.youtube.com/player_api’);$(‘#playvideo’).click( function() {thevid=document.getElementById(‘thevideo’); thevid.style.display=’block’; this.style.display=’none’; $(‘#video’).playVideo();}); });where #playvideo is the button and #video is the YouTube iframe
-
Sean Anderson
youtube youtube-api youtube-javascript-api
I’m currently loading the YouTube API like so:$(function () {// This code will trigger onYouTubePlayerAPIReady$(‘<script>’, {src: ‘https://s.ytimg.com/yts/jsbin/www-widgetapi-vflwt8QCF.js’,async: true}).insertBefore($(‘script:first’)); });I was looking at the YouTube demo page, https://developers.google.com/youtube/youtube_player_demo, and I noticed in their source that they were using a different URL to load their widget API:<script src=”https://s.ytimg.com/yts/jsbin/www-widgetapi-vfl
-
Fal-Cone
javascript youtube youtube-javascript-api
Have a youtube player being setup, but the player dies with the following error (and traceback) if I click on the div where the video’s embed’s div is getting setup. Uncaught TypeError: Cannot read property ‘assets’ of null [www-embed-player-vfl1tzrOK.js:133] g.cancel Sh g.u tc.dispose (anonymous function) L.h setupVideo [videosetup.js:260]And here’s the line that setupVideo is wonking on:document.getElementById(“video_div”).innerHTML = ‘<div style=”position:absolute;left:’ + video_x +
-
Tahtakafa
javascript internet-explorer cross-browser youtube-api youtube-javascript-api
On demo I am trying to develop a chromeless Youtube player. Control links on that link works fine on Firefox and Chrome but doesn’t work on Internet Explorer. How can i fix this problem? I think problem is related with id’s but maybe i am confused because nothing that i have tried is not solve my problem.var ytplayer_playlist = [ ];var ytplayer_playitem = 0;swfobject.addLoadEvent( ytplayer_render_player );swfobject.addLoadEvent( ytplayer_render_playlist );function ytplayer_render_player( ){swfob
-
dinesh babu
youtube-javascript-api
The below fiddle when opened in chrome,fox and iE its working fine’http://jsfiddle.net/wmdPN/’When i copy the code from the fiddle and use it in my machine,its not working i m getting error as o.loadVideoById is not a function. why is that so ? what am i doing wrong?The code i used is as follows( the same as fiddle)<html> <body> <script src=”http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js”> </script><a name=”ytplayer”></a> <div
-
Tahtakafa
javascript youtube-api youtube-javascript-api
There is a Youtube chromeless Javascript player in demo. Unless user clicks playlist pictures below player, title and time don’t shown. To show title and time user has to click some playlist image or has to wait cahanging to the next video. I want title and time to be written without clicking anything after first video autoload. There might be a problem javascript function order. Nothing comes to my mind apart from this.All codes are below to help next people in future<!DOCTYPE html PUBLIC “-
-
bhan
javascript ajax post youtube-api youtube-javascript-api
I’m trying to send the metadata for the about-to-be uploaded video to Youtube according to the documentation by way of a POST request. However, I’m having some trouble understanding completely what to do. My questions are how exactly do I sent the parameters and the ATOM XML entry with the actual metadata at the same time? How do I figure out the Content-Length? And is there an easy way to see if my POST request matches the example given in the Youtube documentation? Here’s what I have so far. T
-
Sean Anderson
html5 iframe google-chrome-extension youtube-api youtube-javascript-api
I am attempting to render the image being displayed inside of YouTube’s HTML5 <video> on a <canvas> located outside of the <iframe>, but on a page created by my extension. I understand that there are cross-origin security policies which come into play here. I am curious if the elevated privileges of a Google Chrome Extension change anything.If I have a <video> element on my own domain, I am able to pipe the image into a <canvas> like so:this.context = this.el.getCon
-
pandaPowder
swfobject youtube-javascript-api
Does anyone have experience embedding flash with swfobject? Dynamic publishing worked as expected, but using their static publishing method, I couldn’t control the player programmatically. Here’s a description of what I tried What steps will reproduce the problem?Embed video using static publishing method from here: http://code.google.com/p/swfobject/wiki/documentation use registerObject with a callback to capture the reference to the object try to use any of the methods from the youtube api suc
-
user1516606
javascript jquery youtube youtube-api youtube-javascript-api
Currently fetching the first video from a search on YouTube using the code below, but when docready is called, the ids are not set. The code does not wait for the ajax results to be returned, instead it continues and returns nothing.I’ve tried the async:false with the ajax thinking it might make it ‘wait’ but still nothing is returned. How would I fix this so all the ids will be set?$(document).ready(function () {docready(); });function docready() {var id1 = grabid(“cat”);var id2 = grabid(“dog”)
-
Peter Mortensen
javascript youtube-api youtube-javascript-api
I want to be able to control iframe based YouTube players. This players will be already in the HTML, but I want to control them via the JavaScript API.I’ve been reading the documentation for the iframe API which explain how to add a new video to the page with the API, and then control it with the YouTube player functions:var player; function onYouTubePlayerAPIReady() {player = new YT.Player(‘container’, {height: ‘390’,width: ‘640’,videoId: ‘u1zgFlCw8Aw’,events: {‘onReady’: onPlayerReady,’onState
-
user1912023
javascript youtube-api youtube-javascript-api youtube-channels
I want to request all of my view counts from my youtube-channel in Javascript. I also show the value in gauge. But I get a “undefined”. If I use the URL in the browser, I get all datas. I´ve tried a lot of callback-Versions, but nothing works. What is wrong? Thank you very much!$(document).ready(function() {$.getJSON(‘http://gdata.youtube.com/feeds/api/users/Google?alt=json’,function(data8){views = data8.totalUploadViews;callbackFunction(views);});})var callbackFunction = function(data8) {var g
-
h1px0
youtube fancybox youtube-api jwplayer youtube-javascript-api
I have youtube link into JW player. Everything works well. now how to put this player (this code) into fancybox? <div id=”player_779″><embed type=”application/x-shockwave-flash” src=”http://teodore.ge/site/content/scripts/mediaplayer/player.swf”width=”640″ height=”383″style=”undefined” id=”player_779″ name=”player_779″ quality=”high” allowfullscreen=”true”allowscriptaccess=”always” wmode=”opaque”flashvars=”file=http://youtu.be/VHcrPImvWlk&skin=http://teodore.ge/site/content/
-
avetis.kazarian
youtube-api youtube-javascript-api
Which events are fired when a TrueView InStreams ad starts and ends?The YouTube iFrame API reference does not give any hint about it.I need to know when the real video starts.As these ads are shown “randomly”, I cannot make any test.One possible answer could be a way to systematically show these ads (and thus allow testing).
-
Jags
javascript asynchronous youtube-javascript-api
Youtube’s Videobar is an outdated widget. Google is still serving the js but the documentation and links have been taken off from their site. You can see a running example of this over at: sicmaui.com (right side, youtube tab)Its currently being loaded using a script tag on html <script src=”http://www.google.com/uds/api?file=uds.js&v=1.0&source=uds-vbw” type=”text/javascript”></script> GSearch.setOnLoadCallback(somefunction); //worksBut it doesn’t work when I try to load thi
-
Ron
javascript youtube youtube-api youtube-javascript-api
I got the following jsfiddle, which basically has 2 imgs and 2 iframes. each img and iframe are in a different div (as pair).the iframe is hidden while the img is not. When you click on the img, the img disappear, and the iframe become visible instead (and starts immediately to play the video)if I click on the second img, the first one should be visible again instead of the iframe, and the video should pause, while the video of the second one starts to playmy fiddle above works as I want just fo
-
Andres
javascript html firefox youtube-javascript-api
If you open this site in chrome, it loads and runs ok but I tried loading it in firefox 19.0.2 and I keep getting a Script error asking me if I want to continue or stop. After doing some searching around I found the about:config setting, but that doesn’t help. I installed firebug and I see an error about “Permission denied to access property ‘toString'” but I have no clue as to what it wants or needs. And the weird part is that if you go to another page in the same site like this one it works
-
Salman A
javascript youtube youtube-api duration youtube-javascript-api
I’m not able to get the correct video duration/length (in seconds) of a loaded/cued video via the getDuration() method of the YouTube Player API; the same method, however, returns a valid value once the video starts playing! Wondering how YouTube is able to show the valid duration of a loaded/cued video.When I load this HTML page with a 15 second video clip, I get the following debug output:state = 5 duration = -0.000025 When I hit the Play button, I get the following debug output:state = 3 dura