need help with manipulating elements from a webpage

new2this

Member
Joined
Nov 20, 2009
Messages
15
Location
Durban, KwaZulu-Natal, South Africa
Programming Experience
Beginner
HI guys
i'm a newbie at programming so please bare with me :eek:

i am using a webbrowser control on a windows form to display streaming video from cameras at different locations.

i can get the image to display on the webrowser but my problem is that there are other links and texts that are displayed on the webpage.

is it possible to capture only the video element of the webpage and display it on the web browser?

or can i remove everything else on the page except for the video?


thanks in advance
 
I think you would have to read the html and take everything out.

However, you could try creating a custom html page that only loads the videos and load it into the web browser control.

It would look something like this:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>Untitled 1</title>
</head>

<body>

<table style="width: 55%">
<tr>
<td style="width: 220px">
<object id="media1" height="200" type="video/x-ms-wmv" width="200">
<param name="filename" value="URLOFTHEVIDEOHERE.wmv" />
</object>
</td>
<td>
<object id="media2" height="200" type="video/x-ms-wmv" width="200">
<param name="filename" value="URLOFTHEVIDEOHERE.wmv" />
</object>
</td>
</tr>
<tr>
<td style="width: 220px">
<object id="media3" height="200" type="video/x-ms-wmv" width="200">
<param name="filename" value="URLOFTHEVIDEOHERE,wmv" />
</object>
</td>
<td>
<object id="media4" height="200" type="video/x-ms-wmv" width="200">
<param name="filename" value="URLOFTHEVIDEOHERE.wmv" />
</object>
</td>
</tr>
</table>

</body>

</html>
 
Back
Top