Tuesday, September 20, 2011

[YouTube-API] Re: Latest videos on webpage?

Hello, I have a similar problem. I am using the Google API to show
YouTube videos bar filtering by the #mundofinanciero (channel), the
problem is that I show the latest videos uploaded, which shows are old
videos. The web link is http://www.euroamerica.cl/euroamerica/media-center.aspx
How I can display a list of videos sorted by date (date of upload on
youtube)?

code I use is this:


<%@ Control Language="C#" AutoEventWireup="true"
CodeFile="CanalNoticias.ascx.cs"
Inherits="Custom_Modules_MediaCenter_Frontend_Controls_CanalNoticias"
%>

<p runat="server" id="pHidden" style="color: #FFFFFF"></p>
<div id="CanalYoutube">

<!-- ++Begin Video Bar Wizard Generated Code++ -->
<!--
// Created with a Google AJAX Search Wizard
// http://code.google.com/apis/ajaxsearch/wizards.html
-->

<!--
// The Following div element will end up holding the actual
videobar.
// You can place this anywhere on your page.
-->
<div id="videoBar-bar">
<span style="color:#676767;font-size:11px;margin:10px;padding:
4px;">Cargando...</span>
</div>

<!-- Ajax Search Api and Stylesheet
// Note: If you are already using the AJAX Search API, then do not
include it
// or its stylesheet again
-->
<script src="http://www.google.com/uds/api?
file=uds.js&v=1.0&source=uds-vbw
"
type="text/javascript"></script>

<!-- Video Bar Code and Stylesheet -->
<script type="text/javascript">
window._uds_vbw_donotrepair = true;
</script>
<script src="http://www.google.com/uds/solutions/videobar/
gsvideobar.js?mode=new
"
type="text/javascript"></script>


<style type="text/css">
.playerInnerBox_gsvb .player_gsvb {
width : 320px;
height : 260px;
}
</style>
<script type="text/javascript">
function LoadVideoBar() {
var CanalYoutube =
document.getElementById("ctl00_ContentPrincipalHolderRight_ctl00_pHidden");
var videoBar;
var options = {
largeResultSet: !false,
horizontal: false,

autoExecuteList: {
cycleTime: GSvideoBar.CYCLE_TIME_SHORT,
cycleMode: GSvideoBar.CYCLE_MODE_LINEAR,
executeList: ["ytchannel:" + "mundofinanciero"]
}
}

videoBar = new GSvideoBar(document.getElementById("videoBar-
bar"),
document.getElementById("videoPlayer"),
options);


}
// arrange for this function to be called during body.onload
// event processing
GSearch.setOnLoadCallback(LoadVideoBar);
</script>
<!-- ++End Video Bar Wizard Generated Code++ -->
<div id="estasviendo"><h2 class="type">Estas viendo:</h2></div>
<div id="videoPlayer"></div>
<div id="recomendamos"><h2 class="type">Te recomendamos</h2></div>
<div class="clear"></div>
</div>

thanks.


On 16 sep, 13:36, Shannon -jj Behrens <jji...@google.com> wrote:
> El Jue, Sep 15, 2011 a las 5:43 AM, Bahula <karl.p...@ gmail.com> escribió:
> > ¿Es posible cargar el laetest videos de un canal con miniaturas en una
> > Página web y con un clic en los pulgares para ver éste video en los pulgares?
>
> Sí, estoy seguro de que es posible que el código.
>
> > La barra de vídeo theems enlace ya no funciona.
>
> ¿Me puede decir más? Le puede proporcionar una simple página HTML que se reproduce
> el problema?
>
> Gracias,
> -Jj
>
> -
> Shannon-jj Behrens | Abogado de desarrollo para la API de YouTube |
> apiblog.youtube.com | @ YouTubeDev

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment