NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
Adi_
Posts: 10
0 Kudos
Accepted Solution

Connect a camera to media player

I have a NI 1764 camera. Is there any way to connect to media player from web builder? Like an webcam.

Thx

Active Participant
Peñata
Posts: 214
0 Kudos

Re: Connect a camera to media player

Hi Adi_,

 

Unfortunately, at this point the Media Player control can only show videos that are being hosted on a web server.

 

What sort of application are you working on? How would a "webcam"-like video feed be used in your application?

 

Aaron P

National Instruments

Applications Engineer

http://www.ni.com/support

Member
Adi_
Posts: 10
0 Kudos

Re: Connect a camera to media player

I have a system with a conveyer belt and some sensors commanded by cRIO and I want to  see my system from web application with a camera.

How can I do that? Is possible?

Thx!

Member
malcolmsmith
Posts: 38
0 Kudos

Re: Connect a camera to media player

[ Edited ]

Instead of using the media player control, I think it should be possible to use the Web UI Builder image control instead, with a LabVIEW web service (in streaming mode) that will stream out an image. I'm not sure if there's any example / tutorial that demonstrates something like this, though.

Active Participant
Peñata
Posts: 214
0 Kudos

Re: Connect a camera to media player

Hi Adi_,

 

At this point, the Media control and the Image control can only display videos and images that are hosted on a web server. So streaming video is not possible at this point. You may be able to simulate streaming by using a camera to capture images and save those images to a directory that is hosted by a web server. Then from your Web UI Builder application you could programmatically load the images in order at a desired rate (assuming the naming scheme of the image files are known). Depending on your application, this may or may not suffice.

 

I apologize for the inconvenience, but your feedback is much appreciated.

 

Aaron P

National Instruments

Applications Engineer

http://www.ni.com/support

Member
Adi_
Posts: 10
0 Kudos

Re: Connect a camera to media player

Thanks. It works, but the rate for each frame is very low so the quality of my streaming it's not so god. 

Member
jpeters
Posts: 149
0 Kudos

Re: Connect a camera to media player

[ Edited ]

I have been able to connect my webcam up to the Media Viewer control using Expression Encoder and publishing an mms stream.  I assume there is other software out there that can accomplish the task, but this is what I had handy.  I don't have much experience with building live video streams, but I did want to point out that it is possible.

 

Jeff Peters

LabVIEW R & D

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page