Click here to Skip to main content
15,891,951 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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 :
JavaScript
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
JavaScript
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 :)
Posted

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900