用C#连接摄像机ip [英] Connect with C# to camera ip
本文介绍了用C#连接摄像机ip的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
嗨。
请帮帮我...
如何连接到c#中的摄像头ip 。
例如这个ip:
地址:69.193.183.75/en/index.html
用户:welcome
密码:welcome
或者这个:
地址:iprobocam.marmitek.com/users/view.cgi?profile=2&language=du
用户:用户
密码:用户
解决方案
以下是使用VOIP进行视频/语音聊天的CP文章,请仔细阅读,这可能有助于你
在.NET中创建会议系统的示例,C#VOIP& ;使用H.323和TAPI 3的视频会议系统 [ ^ ]
谢谢
--RA
这取决于你想用它做什么。我看到相机支持多个流和协议。
如果你想要视频流,你应该通过RTSP附加到它,使用这里描述的URL:http://www.marmitek.com/en/support/live-demo-ip-camera.php [ ^ ]。您可以找到.net库,如下所示: http://www.streamcoders.com/products/msnet.html [ ^ ],或者您可以简单地嵌入如果这是唯一的需要,那么能够为你展示它的玩家组件。
但其他一切都取决于你想要做什么。
< blockquote>坦克很多,但这个解决方案对我来说没有答案!
我确实用相机ip显示视频!
i写下这段代码:
MjpegDecoder _mjpeg;
public MainWindow()
{
InitializeComponent();
_mjpeg = new MjpegDecoder();
_mjpeg.FrameReady + = mjpeg_FrameReady;
_mjpeg.Error + = new EventHandler< mjpegprocessor.erroreventargs>(_ mjpeg_Error);
}
private void btnMjpeg_Click( object sender,RoutedEventArgs e)
{
_mjpeg.ParseStream( new Uri( http://towercam.uu.edu/axis-cgi/mjpg/video.cgi), , 跨度>);
}
private void _mjpeg_Error( object sender,MjpegProcessor.ErrorEventArgs e)
{
MessageBox.Show(e.Message);
}
private void mjpeg_FrameReady( object sender,FrameReadyEventArgs e)
{
img.Source = e.BitmapImage;
}
但此代码仅显示mjpeg流。
请帮助我... 块引用>
Hi.
please help me...
how connect to camera ip in c#.
for example this ip :
address : 69.193.183.75/en/index.html
user : welcome
password : welcome
or this :
address : iprobocam.marmitek.com/users/view.cgi?profile=2&language=du
user : user
password : user
解决方案
Hi,
Here is the CP article with Video/Voice chat using VOIP, go through this , this may helps you
Examples to create your Conferencing System in .NET, C# VOIP & Video Conferencing Systems using H.323 and TAPI 3[^]
Thanks
--RA
It depend on what you want to do with it. As I see the the camera supports multiple streams and protocols.
If you want the video stream, you should probably attach to it via RTSP, using the url described here: http://www.marmitek.com/en/support/live-demo-ip-camera.php[^]. You can find .net libraries for that, like this one: http://www.streamcoders.com/products/msnet.html[^], or you can simply embed a player component that is able to show it for you, if that''s the only need.
But everything else is up to what you want to do.
Tanks a lot but this solutions no answer for me!
I do show video from a camera ip!
i write this code :
MjpegDecoder _mjpeg; public MainWindow() { InitializeComponent(); _mjpeg = new MjpegDecoder(); _mjpeg.FrameReady += mjpeg_FrameReady; _mjpeg.Error += new EventHandler<mjpegprocessor.erroreventargs>(_mjpeg_Error); } private void btnMjpeg_Click(object sender, RoutedEventArgs e) { _mjpeg.ParseStream(new Uri("http://towercam.uu.edu/axis-cgi/mjpg/video.cgi"), "", ""); } private void _mjpeg_Error(object sender, MjpegProcessor.ErrorEventArgs e) { MessageBox.Show(e.Message); } private void mjpeg_FrameReady(object sender, FrameReadyEventArgs e) { img.Source = e.BitmapImage; }
but this code shows only mjpeg streams.
please help me...
这篇关于用C#连接摄像机ip的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文