Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6568607
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:30:00+00:00 2026-05-25T14:30:00+00:00

I have some video embedding code generated for one of the videos on a

  • 0

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 “http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.m4v” and place it in a string:

<script type="text/javascript" src="http://play.op.ac.nz/js/embed.js.php?key=beb431bc59587dc71e10939d214e9515"></script>
<noscript>
  <!-- Version SVN: $Id: _playerVideo.php 19008 2011-05-17 19:06:32Z sven $ -->
  <div id="flash">
    <div id="flashcontent">
      <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;">
        <param name="movie" value="http://play.op.ac.nz/flash/vimp.swf" />
        <param name="flashvars" value="hosturl=http%3A%2F%2Fplay.op.ac.nz%2Fmedia%2Fflashcomm&amp;mediaid=195&amp;context=embeded&amp;skin=http%3A%2F%2Fplay.op.ac.nz%2Fflash%2Fskins%2Fice_white.swf&amp;autohidesidebaronplay=true" />
        <param name="scale" value="true" />
        <param name="allowfullscreen" value="true" />
        <param name="allowscriptaccess" value="always" />
        <param name="wmode" value="opaque" />
        <!--[if !IE]>-->
        <object type="application/x-shockwave-flash" data="http://play.op.ac.nz/flash/vimp.swf" width="720" height="406" wmode="opaque">
          <param name="flashvars" value="hosturl=http%3A%2F%2Fplay.op.ac.nz%2Fmedia%2Fflashcomm&amp;mediaid=195&amp;context=embeded&amp;skin=http%3A%2F%2Fplay.op.ac.nz%2Fflash%2Fskins%2Fice_white.swf&amp;autohidesidebaronplay=true" />
          <param name="scale" value="true" />
          <param name="allowfullscreen" value="true" />
          <param name="allowscriptaccess" value="always" />
          <param name="wmode" value="opaque" />
          <!--<![endif]-->
          <div class="leanback-player-video">
            <video id="index_video" width="720" height="406" preload="metadata" controls="" poster="http://play.op.ac.nz/cache/99590fa59570e38b09e63000c99a6859.jpg">
              <source src="http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.m4v" type="video/mp4" />
              <source src="http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.webm" type="video/webm" />
              <source src="http://play.op.ac.nz/images/media/beb431bc59587dc71e10939d214e9515_1315897772.ogv" type="video/ogg" />
              <p style="margin: 15px;">
                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. <a href="http://www.macromedia.com/go/getflashplayer">Download Flash Player</a>
              </p>
              <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" />
            </video>
          </div>
          <!--[if !IE]>-->
        </object>
        <!--<![endif]-->
      </object>
    </div>
  </div>
</noscript>

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.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:30:00+00:00Added an answer on May 25, 2026 at 2:30 pm

    The best way is to use HTML Agility Pack. Parse the HTML to a string, search the string for the first occurrence of

     '<source src="' 
    

    and terminate at

      '"'. 
    

    Take your findings and put that into your variable.

    Here is a URL with an example: http://olussier.net/2010/03/30/easily-parse-html-documents-in-csharp/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some site where I am embedding a couple of youtube videos in
I have some code that works fine to show YouTube Video. What I want
I have some jQuery tabs one of which holds a flash video. When I
I have some video files.I need to show every video file as a ImageView
I have some audio and video files stored in a server. I need to
I have some large files (images and video) which I need to store in
I have some videos in a site, which has music playing in the background.
hallo, i have found some iphone-camera-video-saving avfoundation code examples over the net (and also
I've got some YouTube embedding code (I will paste only code which is causing
I have some code with the a structure similar to this function bbcode($Text) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.