This is a sample Unity3D Project to Mjpg streaming it runs a server at given port.
To use:
-
Open "/Assets/Scenes/SampleScene.unity" in Unity3D.
-
Change the port in GameObject "StreamingServer".
-
Play the scene and wait a few seconds.
-
Access the mjpeg stream of the game at http://localhost:8080
Instructions
- Create sterming server instance in the Start()
- Push the texture2d to as stream in the update method using _server.WriteToStream(_jpgTexture);
You may also download StreamingServer.unitypackage and use it.
Enjoy!