PublisherKit.PreferredVideoCodecs
public static final class PreferredVideoCodecs
Enclosing class: PublisherKit
Defines codec preferences for video publishing.
This class allows you to specify whether the SDK should automatically select the best codec or use an explicit ordered list of preferred codecs. If not specified, the priority video codec will be determined by the project settings.
Nested types: PublisherKit.PreferredVideoCodecs.Codec
Methods
| Name | Description |
|---|---|
(static) automatic() → {PublisherKit.PreferredVideoCodecs} |
Creates a codec preference where the SDK automatically selects the codec. |
getCodecs() → {ArrayList<PublisherKit.PreferredVideoCodecs.Codec>} |
Returns the ordered list of preferred codecs. |
isAutomatic() → {boolean} |
Indicates whether codec selection is automatic. |
(static) manual(codecs) → {PublisherKit.PreferredVideoCodecs} |
Creates a codec preference with an explicit list of codecs. |
(static) automatic() → {PublisherKit.PreferredVideoCodecs}
Creates a codec preference where the SDK automatically selects the codec.
Returns:
a new PreferredVideoCodecs instance configured for automatic selection
getCodecs() → {ArrayList<PublisherKit.PreferredVideoCodecs.Codec>}
Returns the ordered list of preferred codecs.
Returns:
a list of Codec values, or null if automatic
isAutomatic() → {boolean}
Indicates whether codec selection is automatic.
Returns:
true if the SDK chooses the codec automatically,
false if manual codecs are provided
(static) manual(codecs) → {PublisherKit.PreferredVideoCodecs}
Creates a codec preference with an explicit list of codecs.
Parameters:
| Name | Type | Description |
|---|---|---|
codecs |
ArrayList<PublisherKit.PreferredVideoCodecs.Codec> | ordered list of preferred codecs; must not be null or empty |
See:
: - Throws IllegalArgumentException — if codecs is null or empty
Returns:
a new PreferredVideoCodecs instance configured with the given codecs