How would I extract the direct video URL from video embedding code in C#?
<p>I have some video embedding code generated for one of the videos on a video hosting site similar to Youtube. I need to extract the direct link to the video source (*.m4v). For this example below I want to extract the value <strong>"http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.m4v"</strong> and place it in a string:</p>

<pre><code>&lt;script type="text/javascript" src="http://play.op.ac.nz/js/embed.js.php?key=beb431bc59587dc71e10939d214e9515"&gt;&lt;/script&gt;
&lt;noscript&gt;
  &lt;!-- Version SVN: $Id: _playerVideo.php 19008 2011-05-17 19:06:32Z sven $ --&gt;
  &lt;div id="flash"&gt;
    &lt;div id="flashcontent"&gt;
      &lt;object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="flvplayer_4e71fa175218d" name="c6a80378-3eb2-47e7-8415-ba1f7cff037e" width="720" height="406" style="position:relative;top:0;left:0;z-index:9999;"&gt;
        &lt;param name="movie" value="http://play.op.ac.nz/flash/vimp.swf" /&gt;
        &lt;param name="flashvars" value="hosturl=http%3A%2F%2Fplay.op.ac.nz%2Fmedia%2Fflashcomm&amp;amp;mediaid=195&amp;amp;context=embeded&amp;amp;skin=http%3A%2F%2Fplay.op.ac.nz%2Fflash%2Fskins%2Fice_white.swf&amp;amp;autohidesidebaronplay=true" /&gt;
        &lt;param name="scale" value="true" /&gt;
        &lt;param name="allowfullscreen" value="true" /&gt;
        &lt;param name="allowscriptaccess" value="always" /&gt;
        &lt;param name="wmode" value="opaque" /&gt;
        &lt;!--[if !IE]&gt;--&gt;
        &lt;object type="application/x-shockwave-flash" data="http://play.op.ac.nz/flash/vimp.swf" width="720" height="406" wmode="opaque"&gt;
          &lt;param name="flashvars" value="hosturl=http%3A%2F%2Fplay.op.ac.nz%2Fmedia%2Fflashcomm&amp;amp;mediaid=195&amp;amp;context=embeded&amp;amp;skin=http%3A%2F%2Fplay.op.ac.nz%2Fflash%2Fskins%2Fice_white.swf&amp;amp;autohidesidebaronplay=true" /&gt;
          &lt;param name="scale" value="true" /&gt;
          &lt;param name="allowfullscreen" value="true" /&gt;
          &lt;param name="allowscriptaccess" value="always" /&gt;
          &lt;param name="wmode" value="opaque" /&gt;
          &lt;!--&lt;![endif]--&gt;
          &lt;div class="leanback-player-video"&gt;
            &lt;video id="index_video" width="720" height="406" preload="metadata" controls="" poster="http://play.op.ac.nz/cache/99590fa59570e38b09e63000c99a6859.jpg"&gt;
              &lt;source src="http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.m4v" type="video/mp4" /&gt;
              &lt;source src="http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.webm" type="video/webm" /&gt;
              &lt;source src="http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.ogv" type="video/ogg" /&gt;
              &lt;p style="margin: 15px;"&gt;
                Hint: Unfortunately your browser does not have Flash Player installed or the Flash Player version is outdated. You need Flash Player to view media in this community. &lt;a href="http://www.macromedia.com/go/getflashplayer"&gt;Download Flash Player&lt;/a&gt;
              &lt;/p&gt;
              &lt;img alt="How to safely operate a power actuated nail gun" title="How to safely operate a power actuated nail gun" src="http://play.op.ac.nz/cache/99590fa59570e38b09e63000c99a6859.jpg" /&gt;
            &lt;/video&gt;
          &lt;/div&gt;
          &lt;!--[if !IE]&gt;--&gt;
        &lt;/object&gt;
        &lt;!--&lt;![endif]--&gt;
      &lt;/object&gt;
    &lt;/div&gt;
  &lt;/div&gt;
&lt;/noscript&gt;
</code></pre>

<p>I've already done a search and found plenty of solutions in PHP and Python, but nothing I can decipher. I haven't touched C# in a while, so any help would be appreciated.</p>
