title: Play video URL links stored in database MVC
body: <p>Hi I'm currently developing a web Application In MVC3. I have created a database called PlayLink and have integrated a media player lean-back www.leanbackplayer.com into a view.</p>
  
  <p>From my view the user can add a URL link to the database and the link appears in the main View. I now need to link the player to the url's stored the database so that when the url is clicked the associated url media file will play in the player.</p>
  
  <p>This is my code for Lean Back player it currently only plays the URL the is pre coded.</p>
  
  <pre><code>  &lt;div class="leanback-player-video"&gt;
   &lt;video width="500" height="250" preload="auto" controls    p oster="http://dl.dropbox.com/u/46705018/sintel.mp4.mp4"&gt;
       &lt;source src="http://dl.dropbox.com/u/46705018/sintel.mp4.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' /&gt;
  
      &lt;object class="leanback-player-flash-fallback" width="500" height="250" type="application/x-shockwave-flash" data="http://player.longtailvideo.com/player.swf"&gt;
          &lt;param name="movie" value="http://player.longtailvideo.com/player.swf" /&gt;
          &lt;param name="allowFullScreen" value="true" /&gt;
          &lt;param name="wmode" value="opaque" /&gt;
          &lt;param name="bgcolor" value="#000000" /&gt;
          &lt;param name="flashVars" value="controlbar=over&amp;amp;file=http://dl.dropbox.com/u/46705018/sintel.mp4.mp4
                  &amp;amp;image=http://dl.dropbox.com/u/46705018/sintel.mp4.mp4" /&gt;
      &lt;/object&gt;
  
      &lt;div class="leanback-player-html-fallback" style="width: 500px; height: 250px;"&gt;
          &lt;img src="http://dl.dropbox.com/u/46705018/sintel.mp4.mp4" width="500" height="250" alt="Poster Image" 
              title="No HTML5-Video playback capabilities found. Please download the video(s) below." /&gt;
          &lt;div&gt;
              &lt;strong&gt;Download Video:&lt;/strong&gt;
              &lt;a href="http://dl.dropbox.com/u/46705018/sintel.mp4.mp4"&gt;.mp4&lt;/a&gt;
          &lt;/div&gt;
      &lt;/div&gt;
    &lt;/video&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>MVC Model structure:</p>
  
  <pre><code>    using System;
   using System.Data.Entity;
   using System.Collections.Generic;
   using System.Linq;
   using System.Web;
  
   namespace ProjectNCI.Models
    {
      public class PlayLink
     {
      public int ID { get; set; }
      public string Title { get; set; }
      public DateTime Date { get; set; }
  
     }
     public class PlayLinkDBContext : DbContext
     {
         public DbSet&lt;PlayLink&gt; PlayLink { get; set; }
     }
  }
  </code></pre>