08-14-2008 08:29 AM
Hi there
I would like to control the instrument through the internet by using camera
and I have found out that LabVIEW 8.6 has done a lot on this matter since the last version 8.5.
The problem I have is related to image (or video) sending (streaming) to the client browser.
Does anybody know how to handle this thing?
I use Web services and I was thinking of using 'Write response.vi' together
with 'Set HTTP Response MIME Type.vi' but I don't know how to set it up.
Any help or experience would be most appreciated.
Thanks in advance,
Domen
09-18-2008 06:22 PM - edited 09-18-2008 06:23 PM
Hi Domen,
I apologize for this post falling through the cracks. To make it up to you, I've attached a simple example that should accomplish what you want. Please let me know if you have any other questions!
09-19-2008 06:50 AM
Dear Peter
Based on the advice of some of your colleagues I have managed to send still jpeg images.
However, sending a video is like shifting to a higher gear,
so therefore I thank you very much for the solution. This will come handy.
LV 8.6. is really a step forward in web design.
Domen
05-19-2009 02:43 PM
Hi,
is there a way to extend the MIME types for web service, like mp4?
05-20-2009 12:57 PM
Hey cosmin,
It sounds sounds like someone had a similar question. Check out this Thread.
Hope this helps.
-Ben
05-21-2009 01:30 AM
Hi,
already done that, but the new type does not apear in the Set Response MIME type.vi
05-21-2009 04:39 PM
Hey cosmin,
You can edit the combo box items to include the mp4 option. To do this, create a MIME type control on you front panel. Then right click on the control and select Advanced»Customize. Once the control edit window pops up, you can then right click on the control and select Edit Items. Then, simply add your mp4 entry to the list and you will be able to so mp4 as an option. While this will allow you to see the mp4 on the list of the available options, this step wouldn't give you the ability to use that particular data type, it would simply allow you to see it in the available options on your front panel.
I hope this helps,
-Ben
04-24-2010 09:35 AM
Hello!
Thank you for the example.
I wonder how to complete this project by embedding it in a web page.
How about connecting a camera to stream live to web page as well?
Regards,
Yehia A.
yehia@cloudypedia.com
04-27-2010 08:40 AM
Hello Yehia,
You might want to look at this KnowledgeBase talking about How Do I Use a Remote Front Panel with IMAQ?
Thanks and have a great day.
05-02-2010 01:56 PM
Hello Again,
Thank youvery much for your respond,
Now i have a problem with the HttpIdRequest.I have gone through the knowledge base and help.it says that it is an unsigned 32 bits integer.I have tried so many, It never works.What should do, what httprequest id did you use to run this example.
Best Regards,
Yehia Ahmed
yehia@cloudypedia.com