Foros del Web » Creando para Internet » HTML »

¿Como adapataria un repro html5 en lugar que un repro flash?

Estas en el tema de ¿Como adapataria un repro html5 en lugar que un repro flash? en el foro de HTML en Foros del Web. Hola amigos soy nuevo en estoy espero me ayuden o me orienten, el dilema es que cuento con una plantilla bloger la cual sus creadores ...
  #1 (permalink)  
Antiguo 11/01/2012, 22:19
 
Fecha de Ingreso: octubre-2010
Ubicación: Tumbes
Mensajes: 1
Antigüedad: 13 años, 6 meses
Puntos: 0
Pregunta ¿Como adapataria un repro html5 en lugar que un repro flash?

Hola amigos soy nuevo en estoy espero me ayuden o me orienten, el dilema es que cuento con una plantilla bloger la cual sus creadores la diseñaron para que al publicar una url de youtube en el post muestre la url en su reproductor de youtube, lo cual para mi gusto lo limita, mi idea es reemplazar el reproductor de youtube por uno en html5 y poder usar cualquier url de video de cualquier servicio y se vea en el reproductor de los cuales el reproductor html5 que e visto y me gustaria usar es el de "http://videojs.com/" y el codigo a adaptar seria la funcion siguinte:

<script type='text/javascript'><!--//--><![CDATA[//><!--
var thumbnail_mode = 'float' ; summary_noimg = 50; summary_img = 50; img_thumb_height = 120; img_thumb_width = 192;


function createVideoThumb(pID){
var div = document.getElementById(pID);
var summ = summary_noimg;
if (div.innerHTML.indexOf("http://www.youtube.com/watch?v=")!=-1){
var vidid = div.innerHTML.substring(div.innerHTML.indexOf("htt p://www.youtube.com/watch?v=")+31,div.innerHTML.indexOf("endofvid"));
}else {var vidid =""};

var postlink = div.innerHTML.substring(div.innerHTML.indexOf("[postlink]")+10,div.innerHTML.indexOf("[/postlink]"));
if (vidid ==""){var imgvid ='<a href="'+ postlink + '"><img class="thumbnail" src="http://i195.photobucket.com/albums/z105/dantearaujo/novideo.png" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></a>';
}else{
var imgvid ='<a href="'+ postlink + '"><img class=thumbnail src="http://i2.ytimg.com/vi/'+vidid+'/default.jpg" width="'+img_thumb_width+'px" height="'+img_thumb_height+'px"/></a>';
};

var summary = imgvid ;
div.innerHTML = summary;
}

function createVideoThumb2(pID){
var div = document.getElementById(pID);
var imgtag = "";
var summ = summary_noimg;
if (div.innerHTML.indexOf("http://www.youtube.com/watch?v=")!=-1){
var vidid = div.innerHTML.substring(div.innerHTML.indexOf("htt p://www.youtube.com/watch?v=")+31,div.innerHTML.indexOf("endofvid"));
}else {var vidid =""};

var textinside = div.innerHTML.substring(div.innerHTML.indexOf("[starttext]")+11,div.innerHTML.indexOf("[endtext]"));
var postlink = div.innerHTML.substring(div.innerHTML.indexOf("[postlink]")+10,div.innerHTML.indexOf("[/postlink]"));
var embedvid = "";
if (vidid!="") {
embedvid = '<object width="654" height="393"><param name="movie" value="http://www.youtube.com/v/'+ vidid + '&hl=en&fs=1&rel=0&autoplay=1"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/'+ vidid + '&hl=en&fs=1&rel=0&autoplay=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="654" height="393"></embed></object>'
}
var summary = embedvid + '<div class="content">' + textinside + '</div>';
div.innerHTML = summary;
}

//--><!]]></script>


la cual muestra el video solo con publicar la url de youtube pero esto me parece limitado lo que quiero e intentado hacer es colocar cualquier url de cualquier servicio y esta sea leida y reproducida en el html5 espero puedan ayudarme y orinetarme
  #2 (permalink)  
Antiguo 12/01/2012, 09:44
Avatar de Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 1 mes
Puntos: 1329
Respuesta: ¿Como adapataria un repro html5 en lugar que un repro flash?

No todos los sevicos ofrecen reproduccion en HTML5, asi que deberias mirar eso primero.

Saludos
__________________
Grupo Telegram Docker en Español
  #3 (permalink)  
Antiguo 12/01/2012, 11:14
 
Fecha de Ingreso: diciembre-2011
Ubicación: la nube
Mensajes: 88
Antigüedad: 12 años, 3 meses
Puntos: 2
Respuesta: ¿Como adapataria un repro html5 en lugar que un repro flash?

yo tambien tengo el mismo problemas necesito un reproductor en streaming pero no me sale en html5

no estoy acostumbrado a esto aun prefiero a flash
  #4 (permalink)  
Antiguo 12/01/2012, 11:35
Avatar de Carlangueitor
Moderador ლ(ಠ益ಠლ)
 
Fecha de Ingreso: marzo-2008
Ubicación: México
Mensajes: 10.037
Antigüedad: 16 años, 1 mes
Puntos: 1329
Respuesta: ¿Como adapataria un repro html5 en lugar que un repro flash?

No es el mismo problema, el Streaming es aparte. Mira este link: http://stackoverflow.com/questions/1...r-rtp-in-html5

Saludos
__________________
Grupo Telegram Docker en Español

Etiquetas: html5, reproductor, adaptador
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 08:14.