Presentación
WP Youtube Player es un plugin para WordPress que facilita la publicación de vídeos de Youtube, además permite configurar las propiedades del player a utilizar. Permite mostrar correctamente los vídeos en los feeds y es compatible con iPhone e iPad.

Características
- Publicar vídeos de youtube con una línea de código.
- Panel de configuración para personalizar el player.
- Soporte para seleccionar versiones del player (AS2 y AS3).
- Soporte para utilizar tubePlayer como reproductor por defecto.
- Tres métodos para incluir los vídeos, incluyendo <iframe>.
- Muestra los vídeos en los feeds utilizando <object>.
- Compatibilidad para mostrar vídeos en iPhone.

Instalación Automática
WP Youtube Player esta alojado en el directorio oficial de plugins: WP Youtube Player. Para instalar el plugin, acceder al menú Plugins y buscar wp-youtube-player y proceden a la instalación automática haciendo click en el botón Install.
Instalación Manual
Para instalar WP Youtube Player debes seguir los siguientes pasos:
- Descarga la ultima versión de WP Youtube Player
- Descomprime del archivo wp-youtube-player-x.y.zip
- Copiar la carpeta: wp-youtube-player a la carpeta de plugins de WordPress, típicamente la carpeta es wp-content/plugins/
- En el panel de administración, en la opción 'Plugins', activa WP Youtube Player.
- En el panel de administración, en el opción 'Settings', encontrarás una nueva opción llamada WP Youtube Player para configurar las opciones del plugin
Configuración
WP Youtube Player permite configurar fácilmente el modo en que se mostrará el vídeo player.
- Embed Method, permite elegir la forma de insertar el player. (<object>, <iframe> y SWFObject).
- Player Version es la versión del player (AS2 es la versión antigua y AS3 es la nueva versión)
- Player width ancho del player expresado en pixels
- Player height alto del player expresado en pixels
Además de estos parámetros permite configurar opciones como habilitar el botón en fullscreen y bloquear las anotaciones de los usuarios en los botones.
Como Utilizar WP Youtube Player
Una vez instalado el plugin se puede utilizar el quicktag [ tube][/ tube] para incluir vídeos de youtube en el contenido de nuestros posts o en widgets de texto. Para ello puedes utilizar las siguiente formas:
Utilizando el URL del vídeo:
- [tube]http://www.youtube.com/watch?v=AFVlJAi3Cso[/tube]
Utilizando el URL para embeber el vídeo:
- [tube]http://www.youtube.com/v/AFVlJAi3Cso[/tube]
Utilizando el identificador del video:
- [tube]AFVlJAi3Cso[/tube]
Con cualquiera de estas versiones obtenemos el siguiente resultado.
Por defecto todos los vídeos toman las dimensiones del panel de configuración del plugin, si deseas incluir un vídeo con con dimensiones diferentes puedes utilizar dos parámetros adicionales.
- [tube]http://www.youtube.com/watch?v=AFVlJAi3Cso, ancho, alto[/tube]
Si deseas incluir videos de youtube en tu template puedes utilizar la función PHP wp_youtubeplayer de la siguiente forma:
- <?php wp_youtubeplayer("http://www.youtube.com/watch?v=AFVlJAi3Cso"); ?>
Mas Información
Este plugin fue escrito en base a los métodos para embeber videos de Youtube basados en la documentación oficial.
Si tienen preguntas o sugerencias pueden dejar su comentarios.


Comentarios Total 40 comentarios
Publicado: 01/09/2010 11:12 am
[...] This post was mentioned on Twitter by Webtorio, Jim Peñaloza. Jim Peñaloza said: WP Youtube Player http://t.co/krk7Fez via @unijimpe [...]
Publicado: 02/09/2010 12:21 am
[...] WP Youtube Player es un plugin de WordPress que te permitirá insertar videos de youtube de manera sencilla utilizando el quicktag [tube][/tube], además de ello tiene un panel de configuración para personalizar los parámetros para mostrar el reproductor. Características WP Youtube Player te facilita la publicación de vídeos en tu blog, para ello puedes:Publicar vídeos utilizando una línea de código.Configurar las dimensiones y el tipo de player a utilizar.Configurar el método para embeber el player, incluyendo mediante iframePermite configurar los parámetros del player.Genera el código necesario para compatibilidad con los Feeds.Genera el código necesario para compatibilidad con iPhone[...]
Publicado: 03/09/2010 5:39 am
Muy interesante.
Lo voy a probar.
Publicado: 03/09/2010 6:15 am
¿Puede ser que no funcione con campos personalizados?
Publicado: 02/11/2010 9:43 am
Hi!
I’ve found a small bug at your plugin. At line 167 of ‘wp-youtube-player.php’ the string ‘$v.’ has to be changed to ‘$wptube_text.’
Tino
Publicado: 02/11/2010 10:55 pm
Tine, gracias por reportar el error, he corregido el bug y ya esta disponible la nueva versión 1.3 del plugin.
Publicado: 04/11/2010 1:39 am
Por mas que selecciono la opción TubePlayer, no consigo que este aparezca,,, los vídeos siguen apareciendo con la carátula antigua…
¿como puedo arreglarlo?
ejemplo: http://www.adsltodo.com/2010/11/02/en-un-mes-podria-salir-el-primer-netbook-con-chrome-os/
Publicado: 04/11/2010 10:49 am
Hola antonio3407, el problema es que has seleccionado HTML5 como Embed Method por lo que fuerza a colocar el player como HTML5. Prueba cambiando a cualquier otra opción.
De todas formas es un error del plugin, si seleccionas tubPlayer debe mostrarlo. Voy a preparar una actualización del plugin en los siguientes dias. Gracias por tu aporte.
Publicado: 17/11/2010 4:48 am
Hi!
I like this plugin but there is one thing I would like to add in the settings page and that is an option for the “wmode” parameter on the embed tag.
I use a javascript toolbar at the bottom on all pages and the player gets on top of the toolbar if the wmode parameter is not set to transparent.
I changed this in the code of the plugin but then I have to remember this every time I update it.
This is the code snippet:
case “object”:
….
$wptube_text.= “”;
…..
Publicado: 17/11/2010 4:51 am
The code snippet got broken, trying again:
$wptube_text.= "";Publicado: 17/11/2010 4:52 am
$wptube_text.= “<embed src=\”".$wptube_path.”\” type=\”application/x-shockwave-flash\” allowfullscreen=\”true\” wmode=\”transparent\” allowScriptAccess=\”always\” width=\”".$wptube_width.”\” height=\”".$wptube_height.”\”>”;
Publicado: 17/11/2010 10:29 am
Hol Niklas gracias por tu observación, voy a agregar esta nueva opción en el plugin y pronto estará disponible para una actualización.
Publicado: 18/11/2010 3:04 pm
I also found a bug:
if (get_option(‘wptube_method’) != “swfobject”) {
echo “\n\n”;
}
The ‘!=’ is wrong, it should be ‘==’. Otherwise it loads the .js even if I specified other method.
Publicado: 20/11/2010 8:15 pm
Gracias por sus observaciones y comentarios. Ya esta lista la nueva versión (1.4) disponible para descargar. Los cambios en esta nueva versión son:
- Corregido el metodo para embeber HTML 5 que solo es soportada para el player en AS3.
- Corregido la inclusión del archivo SWFObject.
- Ahora hay un nuevo parámetro de configuración wmode.
Publicado: 27/11/2010 1:40 am
The pluging fails to work for codes with two dashes. For example, 69r9W95–F8
Publicado: 27/11/2010 10:41 am
Hola Steven lo he probado con el codigo que indicas, para lo cual he puesto el siguiente código.
[tube]http://www.youtube.com/watch?v=69r9W95--F8[/tube]Esto funciona correctamente.
Publicado: 29/01/2011 1:17 pm
Yo!
I think the “Enable default HD playback” isn’t working because I made some tests and the videos aways start at the lowest resolution, for example, videos from youtube with the option to watch in 360p and 480p, it’s run in 360p. Videos with the options, 240p, 360p, 480p and 720p, it start in 240p.
Great plugin though
Publicado: 31/01/2011 8:48 am
Hola, hemos instalado este plugin en nuestra web, y la verdad que de aspecto, sencillez y funcionalidades lo vemos estupendo… unicamente, NO FUNCIONA NI CON IPAD NI CON IPHONE… ¿Como podemos solucionar esto?
muchas gracias por resolvernos la duda
Publicado: 04/02/2011 5:52 am
How can we use custome field such as autoplay, change thumbnail etc?
Publicado: 04/02/2011 11:22 am
Hi!
we are using this plugin in our website (www.treintayunacanciones.com) *, but still isn´t working in iPhone /iPads… but this plugingsaid this works with apple devices… How can I custome for this?
Please We need help!
* please, This is not spam, just for checking the place
Publicado: 01/03/2011 9:34 pm
great youtube plugin, easy to use
Publicado: 03/04/2011 9:44 pm
Tomas: It does work on the iPad/iPhone, use A3 and iFrame options to make it work. See above for more detail.
Publicado: 12/04/2011 7:05 pm
how i can adjust the video to appear at the center of the screen?
Publicado: 13/04/2011 10:18 am
[...] WP Youtube Player ist ein echt schickes Plugin für WordPress – allerdings ist er sogar in der [...]
Publicado: 26/04/2011 2:17 pm
It would be great to add scrolling=”no” in the iframe declaration, to make it work right on ipad and iphone, due to a new bug:
http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/861d5605093fdd7b?pli=1
Thanks! the plugin is great
Publicado: 19/06/2011 7:06 am
[...] WP YouTube Player [...]
Publicado: 19/06/2011 11:38 am
Thanks a lot for this useful PlugIn!
Publicado: 28/06/2011 3:35 pm
hi
I just installed your plugin on one of my sites. it works perfectly when used within the main content area, meaning within a page or post. When i attempt to use it within a sidebar it does not work. could you maybe tell me how i can use the shortcode within a sidebar maybe?
Publicado: 17/10/2011 7:28 pm
This plug in is dumping the following W3C errors into our site:
Line 596, column 12: there is no attribute “src”
Line 596, column 250: there is no attribute “height”
…e” allowScriptAccess=”always” wmode=”window” width=”300″ height=”250″>
although we liked the plugin originally we will be forced to remove it unless the errors are corrected. please make sure that your plugins are W3C validation compliant.
Publicado: 17/10/2011 7:29 pm
Line 596, column 12: there is no attribute “src”
Line 596, column 250: there is no attribute “height”
…e” allowScriptAccess=”always” wmode=”window” width=”300″ height=”250″>
Publicado: 25/10/2011 8:17 pm
[...] plugin WP Youtube Player para visualizar videos en tus artículos. El método es muy sencillo para publicarlos, de lo [...]
Publicado: 27/10/2011 2:00 pm
What [tube] [/tube] code would I use to:
set autohide=2
when the video ends, I’d like to remove the four thumbnails that link to other videos.
Publicado: 19/11/2011 4:15 am
Nice Plug-in and Thanks for share WP Youtube Player
Publicado: 29/11/2011 12:41 am
I too would like to remove/hide the related videos. I set related videos False. I am using AS3 player and iframe embed. I also added the &rel=0 to try and suppress the related videos, however they still show after the videos end. Here’s my code I enter into my posts:
[tube]http://www.youtube.com/watch?v=g4hpMvO320A&rel=0[/tube]
Publicado: 29/11/2011 6:07 pm
Found my problem, I was using the ampersand (&) instead of the question mark ?rel=0 Using the ?rel=0 suppressed the related videos at the end of each video.
Publicado: 02/12/2011 12:31 pm
Excelente plugin!
Podrias tomar en cuenta para una futura actualizacion, el poder insertar el video por medio de un boton en la paleta de herramientas del editor? esto para simplicar el proceso de tener que incluir “a pie” el codigo [tube]
Gracias!
Publicado: 02/01/2012 6:36 am
hey,
when I try to play the video I get an error:
Embedding disabled by request.
how can I make it work?
Publicado: 02/01/2012 7:01 am
by the way’ its my video and embedding is allowed…
Publicado: 02/01/2012 2:00 pm
Hi, inbal, i try access your page and your video is playing ok.
For more info about “Embedding disable by request” you can read: http://www.google.com/support/forum/p/youtube/thread?tid=42147850298e1f43&hl=en
Publicado: 13/01/2012 11:37 am
hi
It’s the best plug in to see video from youtube to all the apple device.
So i’ve a problem to check the validating code.
Line 176, Column 12: there is no attribute “src”
Line 176, Column 164: there is no attribute “type”
Line 176, Column 212: there is no attribute “allowfullscreen”
Error Line 176, Column 237: there is no attribute “allowScriptAccess”
Line 176, Column 252: there is no attribute “wmode”
Line 176, Column 267: there is no attribute “width”
Line 176, Column 280: there is no attribute “height”
Line 176, Column 285: element “embed” undefined
Error Line 176, Column 294: end tag for “embed” omitted, but OMITTAG NO was specified
So somebody can help me?