<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.master" Inherits="System.Web.Mvc.ViewPage<FotbalPortal.Models.Video>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Video
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2><%: Html.Raw(Model.name) %></h2>

<fieldset>
    <legend><%: Html.Raw(Model.name) %></legend>

    <% 
       Uri myUri = new Uri(Model.videoLink);
       string videoId = HttpUtility.ParseQueryString(myUri.Query).Get("v");
    %>
    <iframe title="YouTube video player" class="youtube-player" type="text/html" 
    width="640" height="390" src="http://www.youtube.com/embed/<%: Html.Raw(videoId) %>"
    frameborder="0" allowFullScreen></iframe>    

</fieldset>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="ScriptsSection" runat="server">
</asp:Content>
