RenderAreaListenerOnRequestedFrame Method |
Triggered when a new frame is requested by a connection.
Namespace: OIV.RemoteViz.Rendering
public virtual void OnRequestedFrame( RenderArea renderArea, Connection sender, SbRasterImage rasterImage, out bool isInteractive )
: pointer to the RenderArea
: pointer to the connection that send the event
: contains the RGB raster image to render.
: This value can be modified to indicate if an user interaction is in progress. Default value is true. If true (interactive frame), the frame will be compressed with the interactive frame encoder and a quality adapted to the bandwidth setting. If false (still frame), the frame will be compressed with the still frame encoder and the best available quality.
To send a new frame to the client, set the pixel buffer of the raster image using a buffer object. If the buffer object of the raster image is NULL, no frame will be sent to the client. This method only works when the ServiceSettings.INDEPENDENT_SERVICE mode is enabled. IMPORTANT: This callback is executed in a separate thread for each connection requesting a frame.
ServiceSettings.setRunMode