We are working in Unity 3D on pro licence and we are faced with the task to display streaming video as a dynamic texture in out Unity3D web project. We have a standard IP-camera , which is capable of delivering a stream h.264 format via RTSP, and mjpeg via HTTP.

How can we display this stream on a texture in our scene?

  • \$\begingroup\$ Discussion of 5 different possible solutions makes this question too broad. If you want to try one of those solutions and ask specific questions about the troubles you have implementing them, you should do that. I've removed that part of your question. \$\endgroup\$ – MichaelHouse May 21 '14 at 14:31
  • \$\begingroup\$ Http://net7mma.codeplex.com has a rtp and rtsp implementation without any external dependencies. The codebase is written completely in c# and performance and memory is almost twice as good as competing solutions in c++. \$\endgroup\$ – Jay Dec 16 '14 at 3:04

Unity Pro has movie textures built in for streaming different types of movie files to an in-world texture.

If that doesn't work for you, you can build a custom solution around RTT, also a Pro feature.

AFAIK, there are already video streaming solutions available in the Unity Asset Store. A quick google search will do wonders for you.

| improve this answer | |
  • \$\begingroup\$ MovieTexture work's only with ogg streams, and not perfectly as I know. Hm, on assets store I didn't see any solutions for streaming video. Unfortunately any custom solutions wrote on c++ not work for us, cause Unity web player builds not support native code dll's \$\endgroup\$ – Saiful May 21 '14 at 15:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.