17 #ifndef AGXOSG_VIDEOSTREAM_H
18 #define AGXOSG_VIDEOSTREAM_H
28 class ExampleApplication;
41 virtual ~VideoStream();
45 void clientConnected(agxNet::WebSocket *socket);
46 void clientDisconnected(agxNet::WebSocket *socket);
47 void writeVideoData(
agx::UInt8 *data,
size_t size);
48 void receiveClientData(agxNet::WebSocket *socket,
agx::UInt8* data,
size_t size);
51 agxNet::WebSocketServerRef m_server;
52 agxNet::WebSocketServer::SocketCallback m_socketConnectedCallback;
53 agxNet::WebSocketServer::SocketCallback m_socketDisconnectedCallback;
54 agxNet::WebSocket::ReceiveCallback m_socketReceiveCallback;
57 ExampleApplication *m_app;
#define AGX_DECLARE_POINTER_TYPES(type)
Base class providing referencing counted objects.
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
agx::ref_ptr< RenderToTexture > RenderToTextureRef
agx::ref_ptr< VideoCapture > VideoCaptureRef