473,587 Members | 2,579 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 myHttpWebReques t =
(HttpWebRequest )WebRequest.Cre ate(url);
// Sends the HttpWebRequest and waits for a
response.
HttpWebResponse myHttpWebRespon se =
(HttpWebRespons e)myHttpWebRequ est.GetResponse ();
if (myHttpWebRespo nse.StatusCode ==
HttpStatusCode. OK)
return true;

// Releases the resources of the response.
myHttpWebRespon se.Close();

}
catch(WebExcept ion e)
{
Console.WriteLi ne("\r\nWebExce ption Raised. The
following error occured : {0}",e.Status) ;
}
catch(Exception e)
{
Console.WriteLi ne("\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 5777
Do these protocols work in IE? If so, you could use monikers in COM
(through a call to CreateUrlMonike rEx 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.co m

"Noulouk" <no****@devdex. com> wrote in message
news:uq******** ******@TK2MSFTN GP12.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 myHttpWebReques t =
(HttpWebRequest )WebRequest.Cre ate(url);
// Sends the HttpWebRequest and waits for a
response.
HttpWebResponse myHttpWebRespon se =
(HttpWebRespons e)myHttpWebRequ est.GetResponse ();
if (myHttpWebRespo nse.StatusCode ==
HttpStatusCode. OK)
return true;

// Releases the resources of the response.
myHttpWebRespon se.Close();

}
catch(WebExcept ion e)
{
Console.WriteLi ne("\r\nWebExce ption Raised. The
following error occured : {0}",e.Status) ;
}
catch(Exception e)
{
Console.WriteLi ne("\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
3312
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 the movie. When I try Real Player and it's methods I recieve a length and position of 0.
3
3407
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 is greatly appreciated. Kate
1
1488
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
4919
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 link, we do a db update, then use Response.Redirect to redirect them to a mms:// URL.
3
3030
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: mms://streams3.omroep.nl/tv/vara/najiblooptwarm/bb.20060603.asf this one doesnt:
0
4756
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 filtering to determine the referer property ..But in case of streaming server how we can determine the streaming server URL location. Thanks in...
0
1136
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
2283
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 : rtsp://user:pwd@192.168.1.111:554/mpeg4/media.amp but i need a rtsp request without enabling "Anonymous viewer in the camera interface
5
14998
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
8206
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7967
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5713
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1452
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.