API using youtube.googleapis.com seems broken - youtube

Since couple of days, youtube.googleapis.com seems completely broken.
Until that moment, embedding video, like https://youtube.googleapis.com/v/dQw4w9WgXcQ worked with no problem. Right now, Player seems to be completely broken on chrome, firefox, and any device I can put my hands on.
Is there something I'm not knowning that is obvious, or is there some great conspiracy on the subject?

I am having the same issue. It seems that to embed videos, we have to use this format, with "embed".
<iframe width="560" height="315" src="https://www.youtube.com/embed/We1o204XYGw?rel=0" frameborder="0" allowfullscreen></iframe>
I think they may have depreciated the other format.
Which leaves me with hundreds of misformed videos on my site!

Related

how to loop two videos using youtube iframe code

I use the following code in my web page to successfully autoplay and loop one video. Now, I'd like to add another video, essentially looping two videos. So, after one video is finished playing, the second video will start to play, and then the first video, and so on, and so froth. How should the code be modified to do that?
<iframe width="560" height="315" src=
"https://www.youtube.com/embed/51xS4yXbryc?
rel=0&version=3&playlist=51xS4yXbryc&loop=1
&autoplay=1" frameborder="0" allowfullscreen=""></iframe>
That is a one-line code. I break it into four lines so it's easier to read.
For add more than one video in your iframe, you can use the following code:
https://www.youtube.com/embed/<VIDEO_ID_1>?rel=0&version=3&playlist=<VIDEO_ID_2>,<VIDEO_ID_3>,<VIDEO_ID_N>&loop=1&autoplay=1
Where:
VIDEO_ID_1: is the first videoId to reproduce.
VIDEO_ID_2, VIDEO_ID_3, VIDEO_ID_N and so on will be the videoIds you want include.
In this way, you can include a max of 196 or 200 videos in the same iframe1 that will autoplay and loop once the final videoId is reached.
This is a small sample with 4 videos on it.
This is another sample with 93 videos on it.
If you check this playlist, you'll see that it has more than 1000 videos on it - (1653 videos to be exact), but, the iframe resets the threshold to 196 or 200 videos approximately.
1 I discover this threshold when I tried to answer this question in Stack Overflow and you can check it by yourself if you enter to the Youtube website - this playlist and check that it will show only the first 200 videos on it.
This might be a threshold set (and undocumented) by YouTube.
A similar question was asked before about iframe and looping. I found this from another question on stackoverflow, a youtube link has a special ? parameter: autoplay. For example in this link
src="https://www.youtube.com/embed/M7lc1UVf-VE ?&autoplay=1& loop=1&rel=0&showinfo=0&color=white&iv_load_policy=3&playlist=M7lc1UVf-VE"
Try adding ?&autoplay=1& considering that worked for someone else.
I found it from
here
Update
If you wanna play multiple videos you can do it simply and embed a
playlist. You can find how to do so in this article at the
Embed a playlist section. Hope this helps.

Change language for YouTube embed

Does anyone know if it's possible to change the language of the Youtube embed player. For example, to change things like "Full Screen", "Change Quality" etc into German?
Thank you.
How are you embedding it? If it's simply with the embed url, you can do something like adding the parameters "hl=de" and "persist_hl=1" to the url. Like so:
<iframe id="ytplayer" type="text/html" width="640" height="360" src="https://www.youtube.com/embed/M7lc1UVf-VE?hl=de&persist_hl=1" frameborder="0" allowfullscreen>
I've only found out about "persist_hl" by adding "hl=de" to a basic youtube page and checking what the url to display youtube in german was. I haven't found any info about it and what it does.
Edit:
I doubt my answer is valid. The "persist_hl" parameter will change the user's cookies for youtube's site and force the new language.
Edit 2:
Looks like you shouldn't force the language anyways as it should depend on the user's preference: https://stackoverflow.com/a/12696747/1372543
The answer's from Jeff Posnick, who works for Google. I feel it applies to your question.

Youtube design change for iframe videos - full srceen button vanished

my colleauge and I created a website for a customer last month with several Youtube videos.
http://www.doepfner.de/filme.html
It worked very well and the customer was happy. Then I was 2 weeks on vacation. Now the design of the player has changed slightly. Biggest problem: the full screen button vanished. I tried to use the fs parameter to force it but nothing happend.
Can somebody tell me if it is possible to get the full screen button back or the other design?
This is most likely caused by you getting the HTML5 video player over Flash. This could have happened a couple ways. The most likely is you don't have Flash installed(or didn't at one point) and were opted into an experiment. You can opt out of the HTML5 experiment by going to http://www.youtube.com/html5. This will only effect your browser and not your users, but my guess is they're not having the same issues(assuming they have flash installed).
The other option is a bit of a hack(sort of). If you add webkitallowfullscreen and mozallowfullscreen as attributes to the iframe. This will allow the js fullscreen api to work in Firefox and Chrome. This api is not yet a finalized standard but should be soon.

URL length problems on iFrame

Hello everyone I'm having some problems when a calling an iframe that has an specific URL length: The complete URL is as follows:
http://localhost:8080/autorizaciones/pages/administracion/autorizaciones/solicitarAutorizacion.jsf?nkttxms=6175141345567386080&nosjxms =%7B%22formActionURL%22%3A%22crearCotizacion.do%22%2C%22renderSection%22%3A%5B%22%27div_pagina%27%22%2C%22%27mensajes%27%22%5D%2C%22formName%22%3A%22cotizarRecotizarReservarForm%22%2C%22loadMenu%22%3Afalse%2C%22scriptParameters%22%3A%7B%22evalScripts%22%3Atrue%7D%2C%22viewParameters%22%3A%7B%22autorizaciones%22%3A%22%5B%7B%5C%22codigoSistema%5C%22%3A%5C%22SISPE%5C%22%2C%5C%22descripcion%5C%22%3A%5C%22Solicito+autorizacion+descuento+variable+del+5.0%25+para+la%28s%29+clasificacion%28es%29%3A+2226-PAVOS+CONGELADOS+%5C%22%2C%5C%22areaTrabajo%5C%22%3A%5C%22MULTICENTRO%5C%22%2C%5C%22tituloAutorizacion%5C%22%3A%5C%22AUTORIZACION+DESCUENTO+VARIABLE+GERENTE+COMERCIAL+5.0%5C%22%2C%5C%22filtroTipoAutorizacion%5C%22%3A%7B%5C%227%5C%22%3A%5B%7B%5C%22codigoComponente%5C%22%3A23%2C%5C%22valorComponente%5C%22%3A%5C%225.0%5C%22%2C%5C%22soloLectura%5C%22%3Atrue%7D%5D%7D%2C%5C%22filtroUsuariosAutorizadores%5C%22%3A%5B%5C%22FRM1458%5C%22%5D%2C%5C%22dataKeys%5C%22%3A%5B%7B%5C%22label%5C%22%3A%5C%22AREA+TRABAJO%5C%22%2C%5C%22value%5C%22%3A%5C%22101%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22TOTAL+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22925.6999999999999%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22VALOR+APLICAR+DESCUENTO%5C%22%2C%5C%22value%5C%22%3A%5C%22253.4%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+DOCUMENTO%5C%22%2C%5C%22value%5C%22%3A%5C%221104627169%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NOMBRE+CONTACTO%5C%22%2C%5C%22value%5C%22%3A%5C%22OCHOA+VASQUEZ+PABLO+IVAN%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%5D%2C%5C%22secuencial%5C%22%3A1%7D%2C%7B%5C%22codigoSistema%5C%22%3A%5C%22SISPE%5C%22%2C%5C%22descripcion%5C%22%3A%5C%22Solicito+autorizacion+descuento+variable+del+5.0%25+para+la%28s%29+clasificacion%28es%29%3A+1602-CANASTAS+%5C%22%2C%5C%22areaTrabajo%5C%22%3A%5C%22MULTICENTRO%5C%22%2C%5C%22tituloAutorizacion%5C%22%3A%5C%22AUTORIZACION+DESCUENTO+VARIABLE+GERENTE+COMERCIAL+5.0%5C%22%2C%5C%22filtroTipoAutorizacion%5C%22%3A%7B%5C%227%5C%22%3A%5B%7B%5C%22codigoComponente%5C%22%3A23%2C%5C%22valorComponente%5C%22%3A%5C%225.0%5C%22%2C%5C%22soloLectura%5C%22%3Atrue%7D%5D%7D%2C%5C%22filtroUsuariosAutorizadores%5C%22%3A%5B%5C%22KFLOW100%5C%22%5D%2C%5C%22dataKeys%5C%22%3A%5B%7B%5C%22label%5C%22%3A%5C%22AREA+TRABAJO%5C%22%2C%5C%22value%5C%22%3A%5C%22101%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22TOTAL+PEDIDO%5C%22%2C%5C%22value%5C%22%3A%5C%22925.6999999999999%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22VALOR+APLICAR+DESCUENTO%5C%22%2C%5C%22value%5C%22%3A%5C%22600.3%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NUMERO+DOCUMENTO%5C%22%2C%5C%22value%5C%22%3A%5C%221104627169%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%2C%7B%5C%22label%5C%22%3A%5C%22NOMBRE+CONTACTO%5C%22%2C%5C%22value%5C%22%3A%5C%22OCHOA+VASQUEZ+PABLO+IVAN%5C%22%2C%5C%22hasAction%5C%22%3Afalse%2C%5C%22isVisibleInManageTaskDescription%5C%22%3Atrue%7D%5D%2C%5C%22secuencial%5C%22%3A2%7D%5D%22%2C%22backgroundColor%22%3A%22%23F4F5EB%22%2
I know that it has a lot of data on it's query string, and that I should use POST when transferring large quantities of data. However, that's the way the system creates them... that was already done before I found the problem.
The main problem is that a lot of modules have dependencies on this, and changing it would make it impossible to accomplish deadlines (next week).
Now we use that URL in the following iframe:
<iframe name="Contactos" width="100%" height="100%" align="middle" class="tabla_informacion" src="urlAbove" frameBorder="0">
</iframe>
However when the frame appears it just shows a blank screen, no callbacks at all are triggered on the server....
Now if we reduce the url length it works correctly. At first glance I thought it was a problem related to header lengths on jBOSS AS 6 (by default 8KB), so I changed it on the server.conf file and increased it to 64KB. No luck at all...
But then when I used Firefox's Poster plugin to create a GET request with the whole URL, it worked correctly and server breakpoints where triggered, meaning that it's not a server's problem, at least at the current URL length....
Maybe is a browser limitation? (We are using Internet Explorer...) is it a know problem? Or maybe there is something that I'm missing when calling iFrames?
It's quite possibly a browser limit. The fact that the page loads (or at least the request gets to the server) in Firefox is a good hint.
Your URL is 4,097 characters, and the limit in IE is 2,083.

Can someone explain the difference between these two Youtube URLs?

Im building a site which opens Youtube videos onsite using Shadowbox.
I have found out that linking to a video this way ...
http://www.youtube.com/watch?v=wDZFf0pm0SE
..doesn't work (Shadowbox opens, video doesnt play). But linking this way...
http://www.youtube.com/v/wDZFf0pm0SE
.. does.
Can someone explain to me what is going on here?
The /v/ link is a direct link to the video, which is used for embedding it. You use it like this:
<embed src="http://www.youtube.com/v/wDZFf0pm0SE&autoplay=1" type="application/x-shockwave-flash" wmode="transparent" width="800" height="600"></embed>
However, due to licensing restrictions some videos will fail to play in the /v/ format.
The &autoplay=1 part just tells it to start the video on page-load. (Remove it to not do that).
The normal link is used to watch the video from Youtube itself.
Hope this helps.

Resources