473,387 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Check if mms:// or rtsp:// url exists

Hello,

I need to verify if mms:// or rtsp:// urls exists.

I do like this for http:// :

public static bool GetPage(String url)
{
try
{
// Creates an HttpWebRequest for the specified URL.
HttpWebRequest myHttpWebRequest =
(HttpWebRequest)WebRequest.Create(url);
// Sends the HttpWebRequest and waits for a
response.
HttpWebResponse myHttpWebResponse =
(HttpWebResponse)myHttpWebRequest.GetResponse();
if (myHttpWebResponse.StatusCode ==
HttpStatusCode.OK)
return true;

// Releases the resources of the response.
myHttpWebResponse.Close();

}
catch(WebException e)
{
Console.WriteLine("\r\nWebException Raised. The
following error occured : {0}",e.Status);
}
catch(Exception e)
{
Console.WriteLine("\nThe following Exception was raised
: {0}",e.Message);
}
return false;
}

But the same code doesn't work for mms or rtsp protocols.

Thanks in advance for your help.
*** Sent via Developersdex http://www.developersdex.com ***
Nov 17 '05 #1
1 5749
Do these protocols work in IE? If so, you could use monikers in COM
(through a call to CreateUrlMonikerEx through the P/Invoke layer and then a
call to BindToStorage). Unless someone has written it, there really isn't a
managed way to handle this. You will have to use interop. Unfortunately,
the interop you would have to use would be quite complicated.

I'd take a look at the documentation for the BindToStorage method on the
IMoniker interface in the MSDN documentation, since this is what you will
need to call.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Noulouk" <no****@devdex.com> wrote in message
news:uq**************@TK2MSFTNGP12.phx.gbl...
Hello,

I need to verify if mms:// or rtsp:// urls exists.

I do like this for http:// :

public static bool GetPage(String url)
{
try
{
// Creates an HttpWebRequest for the specified URL.
HttpWebRequest myHttpWebRequest =
(HttpWebRequest)WebRequest.Create(url);
// Sends the HttpWebRequest and waits for a
response.
HttpWebResponse myHttpWebResponse =
(HttpWebResponse)myHttpWebRequest.GetResponse();
if (myHttpWebResponse.StatusCode ==
HttpStatusCode.OK)
return true;

// Releases the resources of the response.
myHttpWebResponse.Close();

}
catch(WebException e)
{
Console.WriteLine("\r\nWebException Raised. The
following error occured : {0}",e.Status);
}
catch(Exception e)
{
Console.WriteLine("\nThe following Exception was raised
: {0}",e.Message);
}
return false;
}

But the same code doesn't work for mms or rtsp protocols.

Thanks in advance for your help.
*** Sent via Developersdex http://www.developersdex.com ***

Nov 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: torbs | last post by:
I have a problem when I use javascript to get the length and position of a movie I recieve from a rtsp stream. The length and position is extremely high and not the actual length and position of...
3
MMS
by: Kate Luu | last post by:
Hi all, Is it .NET Frame Work support MMS( Multimedia Messaging Service ) ? As I did research, Open Wave did have a SDK to develop MMS but the language to use for develop is JAVA base. Any help...
1
by: Dennieku | last post by:
Hi, I want to check streaming media URL's (like MMS and RTSP) if these are still available and if so, the average bandwidth. Does anybody have ideas for this? Thx, Denneiku
1
by: David Morgan | last post by:
Hello Apologies for the cross-post, but I am not sure where the problem lies. We have an ASP based website where we redirect users to MMS Publishing Points. So, guy clicks on http:// .asp...
3
by: rather | last post by:
Hi all, I want to check if a remote mms:// stream exists. Just if it exists: not even use it. i cant get it to work so far with php socket/fopen/exists...... this one exists:...
0
by: vinayece04 | last post by:
Hello all.. How we can extract the detail of multimedia ptotocols URL like rtsp and mms using network packet and capture anlaysis(winpcap). I can extract the simple URL using Http...
0
by: PankajMhatre | last post by:
want to check the "mms" url format validation in ASP.NET C# i.e mms://10.3.19.129/DRMTest/ & not like any other format
0
by: princy | last post by:
hi, I am using vlc 0.8.6d to connect Axis 210 camera when enabling "anonymous viewer" in the camera interface the rtsp request given below is working fine The rtsp request is : ...
5
by: kalpesh | last post by:
Hi, I am working on streaming video I need to RTSP structure information and Is there any RTSP free source is available in C or C++. Thanks in Advance
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.