Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET Javascript Ajax jQuery , +
hiiiii
I used this code to embed a videoBar feeding from my YouTube channel
and it worked fine
now all what i need is to feeding the videobar from a playlist in place of the channel
_________________________________________________________________________________
_________________________________________________________________________________
This is the part what I want to modify :
  cycleTime: GSvideoBar.CYCLE_TIME_MEDIUM,
                  cycleMode: GSvideoBar.CYCLE_MODE_LINEAR,
                  executeList: ["ytchannel:egyptioncoder"]
 
_________________________________________________________________________________
_________________________________________________________________________________
I have tried something like this:
 
<pre lang="Javascript">  cycleTime: GSvideoBar.CYCLE_TIME_MEDIUM,
                  cycleMode: GSvideoBar.CYCLE_MODE_LINEAR,
                  executeList: ["ytchannel:myplaylist"]
 
or
  cycleTime: GSvideoBar.CYCLE_TIME_MEDIUM,
                  cycleMode: GSvideoBar.CYCLE_MODE_LINEAR,
                  executeList: ["ytplaylists:myplaylist"]
 
but it did not worked
_________________________________________________________________________________
_________________________________________________________________________________
the whole page code :
<pre lang="Javascript"><%@ Page Title="" Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="vedio2.aspx.vb" Inherits="vedio2" %>
 
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
 
 <script src="http://www.google.com/uds/api?file=uds.js&v=1.0"
    type="text/javascript"></script>
<link href="http://www.google.com/uds/css/gsearch.css"
    rel="stylesheet" type="text/css"/>
<script src="http://www.google.com/uds/solutions/videobar/gsvideobar.js"
    type="text/javascript"></script>
<link href="http://www.google.com/uds/solutions/videobar/gsvideobar.css"
   
 <%-- ______________________________________________________________________ --%>
 
    rel="stylesheet" type="text/css"/>
   <style type="text/css">
    body, table, p{
      background-color: white;
      font-family: Arial, sans-serif;
      font-size: 13px;
    }
 
    td { vertical-align : top; }
 
    #videoBar {
      width : 150px;
      margin-right: 5px;
      margin-left: 5px;
      padding-top : 5px;
      padding-right : 4px;
      padding-left : 4px;
      padding-bottom : 0px;
    } 
  </style>
  <style type="text/css">
    .playerInnerBox_gsvb .player_gsvb {
      width : 420px;
      height : 280px;
      background-color:Gray;
    }
  </style>
 
 <%-- _________________________________________________________________--%>
  
  <script type="text/javascript">
     
      function LoadVideoBar() {
          var videoBar;
          var barContainer = document.getElementById("videoBar");
 
          var options = {
              largeResultSet: true,
              autoExecuteList: {
                  cycleTime: GSvideoBar.CYCLE_TIME_MEDIUM,
                  cycleMode: GSvideoBar.CYCLE_MODE_LINEAR,
                  executeList: ["ytchannel:egyptioncoder"]
              }
          }
          videoBar = new GSvideoBar(barContainer, GSvideoBar.PLAYER_ROOT_FLOATING, options);
      }
      GSearch.setOnLoadCallback(LoadVideoBar);
  </script>
</head>
 
<%--________________________________________________________________--%>
 
<body>
<div><br /> <br /> <br /> <br /></div>
    <div id="videoBar">Loading...</div>
</body>
 

</asp:Content>
 
 
i hope you can help me Smile | :)
Posted 1-May-12 23:34pm

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web02 | 2.8.140827.1 | Last Updated 2 May 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100