ScnLib_SetStreamingBitrate()

ScnLib_SetStreamingBitrate()

Std EditionPro EditionMax EditionUltra Edition
C++ __declspec(dllimport) void __stdcall ScnLib_SetStreamingBitrate(int nKbps);
C# [DllImport("ScnLib.dll")] public static extern void ScnLib_SetStreamingBitrate(int Kbps);
Basic Public Declare Sub ScnLib_SetStreamingBitrate Lib "ScnLib.dll" (ByVal Kbps As Int32)
Delphi procedure ScnLib_SetStreamingBitrate(Kbps: Integer); stdcall; external 'ScnLib.dll';
  • Description
    Set the live streaming bitrate.

  • Parameters
    • Kbps [in]
      The live streaming bitrate, quantified in Kbps (kilobits per second).
  • Return Value
    None.

  • Remarks
    Use this function set the live streaming bitrate. Higher bitrate values generally yield better quality but higher bandwidth requirements, while lower bitrates increase compression and may lead to noticeable quality degradation.

    By default, the live streaming bitrate is set to 1500kbps. If you're unsure about the ideal bitrate, start with the default and adjust based on your assessment of the output. If the live video quality seems inadequate, increase the bitrate. Conversely, if the live video playback is buffering too often, decrease the bitrate. Typically, halving the bitrate should result in approximately half the bandwidth requirement, and vice versa.

    Note that altering the live streaming bitrate during the recording process is not permitted. To check the current live streaming bitrate setting, call ScnLib_GetStreamingBitrate().

    Furthermore, streaming bitrate overrides video recording bitrate; if both video recording and streaming bitrates are set, the SDK will use the streaming bitrate for both purposes.

  • See Also
    ScnLib_SetStreamingUrl()
    ScnLib_GetStreamingBitrate()
    ScnLib_SetVideoBitrate()

Try the SDK for FREE SDK APIs overview