<%@ page language="C#" masterpagefile="~/Pages/Common/MasterPages/MainMasterPage_new.master" autoeventwireup="true" inherits="Pages_Communication_Video, App_Web_wph5lwvr" uiculture="auto" meta:resourcekey="PageResource1" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControls/GridViewPager/GridViewPager.ascx" TagName="GridViewPager" TagPrefix="uc1" %>
<%@ Register Src="~/UserControls/Common/ScreenGroup/ScreenGroup.ascx" TagName="ScreenGroupControl" TagPrefix="ScreenGroup" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CP" runat="Server">
    <asp:UpdatePanel ID="HREmployeeMasterSearchUpdatePanel" runat="server">
        <ContentTemplate>
            <div id="divContentPage" class="divcontentpagemargin">
               
                            <div class="dashBoardLeftCont" valign="top" runat="server" id="ScreenGroupTableId">
                                <div class="himssuHeader3WireBox">
                                    <table>
                                        <tr>
                                            <td>
                                                <div class="himsBoxContent">
                                                    <div class="leftUlMenu">
                                                        <ScreenGroup:ScreenGroupControl EnableViewState="true" ID="ScreenGroupControl" ScreenGroupId="114"
                                                            Visible="true" runat="server" />
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </div>
                            </div>
                            <div class="whiteboxpaddingleft row">
                                <div class="himssuHeader5WireBox card card-box">
                                    <div class="himsBoxHeader card-head">
                                        <asp:Panel ID="Panel1" runat="server">
                                            <div class="leftdiv">
                                            </div>
                                            <div class="himsBoxTitle">
                                                <div class="headerText">
                                                    <header>
                                                        <i class="fas fa-video"></i>
                                                    <asp:Label ID="MainLabel" runat="server" Text="Video"></asp:Label>
                                                    </header>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                    <div class="himsBoxContent card-body">
                                        <asp:Panel ID="DetailPanel" runat="Server">
                                            <div class="contentHolder">
                                                 <div style="margin: 0 auto; width: 600px" id="PlayListDiv" runat="server" visible="true">
                                                      <asp:GridView ID="PlaylistGridView" runat="server" AutoGenerateColumns="false">
                                                            <Columns>
                                                                  <asp:BoundField DataField="Title" HeaderText="Title">
                                                                        <HeaderStyle HorizontalAlign="Center"/>
                                                                        <ItemStyle Width="30%" HorizontalAlign="Center"/>
                                                                    </asp:BoundField>
                                                                <asp:TemplateField HeaderText = "">
                                                                    <ItemTemplate>
                                                                        <%-- <iframe id="video" width="200" height="200" frameborder="0" allowscriptaccess="always" allowfullscreen="true" wmode="opaque" src='<%# "http://www.youtube.com/embed/" + Eval("URL").ToString().Split(new string[] { "v=" }, StringSplitOptions.None)[1] %>'>
                                                                         </iframe>--%>
                                                                         <embed src="https://www.youtube.com/v/<%# Eval("URL").ToString().Split(new string[] { "v=" }, StringSplitOptions.None)[1] %>?" type="application/x-shockwave-flash"
                                                                          width="427" height="258" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed>
                                                                      <%--  <iframe class="youtube-player" id="player" type="text/html" src="<%# Eval("URL") %>" frameborder="0"><br /></iframe>--%>
                                                                    </ItemTemplate>
                                                                </asp:TemplateField>
                                                            </Columns>
                                                      </asp:GridView>
                                                 </div>
                                                <div style="margin: 0 auto; width: 500px" id="VideoDiv" runat="server" visible="false">
                                                    <asp:Repeater ID="VideosRepeater" runat="server">
                                                        <ItemTemplate>
                                                            <%# Eval("Title") %>"
                                                            <br />
                                                            <object width="427" height="258">
                                                                <param name="movie" value="https://www.youtube.com/v/<%# Eval("VideoId") %>"></param>
                                                                <param name="allowFullScreen" value="true"></param>
                                                                <param name="allowscriptaccess" value="always"></param>
                                                                <param name="wmode" value="opaque"></param>
                                                                <embed src="https://www.youtube.com/v/<%# Eval("VideoId") %>?" type="application/x-shockwave-flash"
                                                                    width="427" height="258" allowscriptaccess="always" allowfullscreen="true" wmode="opaque"></embed>
                                                            </object>
                                                        </ItemTemplate>
                                                        <SeparatorTemplate>
                                                            <br />
                                                        </SeparatorTemplate>
                                                    </asp:Repeater>
                                                </div>
                                                <div id="MsgDiv" runat="server" visible="false">
                                                    <b>&nbsp;no any video for you</b>
                                                </div>
                                            </div>
                                        </asp:Panel>
                                    </div>
                                </div>
                            </div>                        
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
   <%-- <script data-main="../../JavaScript/rjs/encrypt/assign-organization-encrypt" src="../../JavaScript/rjs/require.js"></script>--%>
      <script data-main='<%=ResolveUrl("~/JavaScript/rjs/assign-organization")%>' src='<%=ResolveUrl("~/JavaScript/rjs/require.js")%>'></script>
</asp:Content>
