-
1. Re: how to show stream , using realsense,javascript
MartyG Jan 29, 2017 8:17 AM (in response to hyunjiRa)If I understand correctly, you would like to show both a captured image and a blob view next to each other, and only one of these is showing?
Are you using this page?
And you would like to combine the two example programs together so that both the color stream and the depth view appear together in the same program?
I found a clue to your problem, I think. On the Color Stream sample, when I selected the Javascript version of it, it said "To protect user privacy, it is not allowed to stream raw or processed images in JavaScript."
So with Javascript, you could show a blob view but not a color stream.
Please let me know if I have interpreted your needs wrongly. Thanks!
-
2. Re: how to show stream , using realsense,javascript
hyunjiRa Jan 29, 2017 10:42 PM (in response to hyunjiRa)oh,, i did not know the message ("To protect user privacy, it is not allowed to stream raw or processed images in JavaScript." )
...so is there any way how to color stream..?
i want to show both color stream and detph steam in html5(video tag or canvas tag..)
I really appreciate your reply. Thanks!
-
3. Re: how to show stream , using realsense,javascript
MartyG Jan 30, 2017 1:29 AM (in response to hyunjiRa)HTML5 in RealSense makes use of Javascript. So even if you made an HTML5 page, it would still have the limitations of Javascript. Here is Intel's guide for integrating Javascript in HTML5.
https://software.intel.com/sites/default/files/Browser_Support.pdf
Maybe you could do a workaround where you could record the color stream to a file, and then play that file in your application.
Again though, RealSense's Javascript does not support file playback, apparently. Java does though, so maybe you could do it as a Java web application.
Edit: on the page with the color stream example, where it said "To protect user privacy, it is not allowed to stream raw or processed images in JavaScript", there is Java code for the color stream if you click on the 'Java' tag. So that would be a more direct way of doing it with Java than recording the data to a file.
A third option would be to record the color stream as a live video, perhaps using external video recording software such as Xsplit, and stream that live video onto your web page as a URL.
-
4. Re: how to show stream , using realsense,javascript
Feb 1, 2017 1:17 PM (in response to hyunjiRa)This message was posted on behalf of Intel CorporationHi HyunjiRa,
Did you check the information provided by MartyG? (Thanks by the way MartyG) I think that his last reply is very helpful.
Have a nice day.
Regards,
Leonardo R.