![]() |
VR-Forces Developer's Guide
|
A DtWebSocketTaskElement instance will create a pipeline element that can listen for an web connection and stream video to the client. Note: LWS is not thread safe.

Public Member Functions | |
| virtual | ~DtWebSocketTaskElement () |
| virtual void | setFromRecord (const makArchives::DtImageTaskRecord &config) |
| virtual bool | configure () |
| DtLocklessQueue< std::string > & | queue () |
| virtual const int | port () const |
| virtual const std::string & | htmlFileNameToServe () const |
| virtual void | setTxPacketSize (unsigned int size) |
| virtual unsigned int | txPacketSize () |
Public Member Functions inherited from makVrv::DtImageTaskElement | |
| virtual | ~DtImageTaskElement () |
| void | preFrame () |
| void | processFrame (DtVideoFrameBuffer *frame) |
| void | postFrame () |
| virtual void | attach (DtImageTaskElement *next) |
Protected Member Functions | |
| DtWebSocketTaskElement (DtDe &de, DtProcessImageTask *owningTask) | |
| void | handlePreFrame () |
| void | handleProcessFrame (DtVideoFrameBuffer *frame) |
| bool | generateAndWriteHtml () |
| void | buildProtocols () |
Protected Member Functions inherited from makVrv::DtImageTaskElement | |
| DtImageTaskElement (DtDe &de, DtProcessImageTask *owningTask) | |
| virtual void | handlePostFrame () |
Protected Attributes | |
| lws_context * | myContext |
| lws_vhost * | myVHost |
| struct lws_protocols | myProtocols [3] |
| DtLocklessQueue< std::string > * | myCommandQueue |
| int | myPort |
| unsigned int | myTxPacketSize |
| std::string | myHTMLFileNameToServe |
Protected Attributes inherited from makVrv::DtImageTaskElement | |
| DtDe & | myDe |
| DtProcessImageTask * | myOwningTask |
| DtImageTaskElement * | myNextElement |
Friends | |
| class | DtWebSocketTaskElementCreator |
|
virtual |
|
protected |
CTOR (protected)
|
virtual |
Initialize the websocket image task element from a task record.
Reimplemented from makVrv::DtImageTaskElement.
|
virtual |
Configure the websocket image task element.
Reimplemented from makVrv::DtImageTaskElement.
|
inline |
|
virtual |
Get the port.
|
virtual |
Name of the html file stored in bin64/html Format : videoOnPort myPort .html.
The tx_packet_size for the image stream callback Set higher if the pipe is choking Default 600000.
|
protectedvirtual |
Call lws_service.
Reimplemented from makVrv::DtImageTaskElement.
|
protectedvirtual |
Pass a frame to the callbakcs.
Implements makVrv::DtImageTaskElement.
|
protected |
Generate html files under bin64/html.
|
protected |
Populate myProtocols.
|
friend |
Friend creator class, the only class that can construct an instance of this DtGStreamerTaskElement.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |