Click or drag to resize
RenderAreaListenerOnRefusedEncoder Method

Triggered when a frame encoder cannot be initialized.

Namespace: OIV.RemoteViz.Rendering
Assembly: OIV.RemoteViz (in OIV.RemoteViz.dll) Version: 2024.2.0.0 (2024.2.0)
Syntax
public virtual void OnRefusedEncoder(
	RenderArea renderArea,
	Connection sender,
	FrameEncoders encoders
)

Parameters

renderArea
Type: OIV.RemoteViz.RenderingRenderArea

: the OIV.RemoteViz.Rendering.RenderArea of the OIV.RemoteViz.Rendering.Connection

sender
Type: OIV.RemoteViz.RenderingConnection

: the connection that requests frame encoders

encoders
Type: OIV.RemoteViz.RenderingFrameEncoders

: frame encoders refused by the connection

Remarks

If this case occurs, set another frame encoder. The status of encoders explains the reason for refusal.

Default behavior: Try to load other encoders automatically (fallback): H264_NVENC/H264_NVENC => VP9_VPX/VP9_VPX => H264_OPENH264/H264_OPENH264 => PNG/JPEG => JPEG/JPEG Fallback directly to JPEG/JPEG if the pair of frame encoders are incompatible. If none of frame encoders can be initialized, the connection will be closed.

See Also