|
Vonage Video API Windows SDK
|
Defines a preferred video codec configuration for a Publisher's stream. More...
Public Types | |
| enum | Codec { VP8 = 1 , H264 = 2 , VP9 = 3 } |
| Available video codec options. More... | |
Public Member Functions | |
| PreferredVideoCodecs (List< Codec > codecs) | |
| Creates a new manual codec preference configuration. More... | |
Static Public Member Functions | |
| static PreferredVideoCodecs | Automatic () |
| Enables automatic codec selection mode. More... | |
Properties | |
| List< Codec > | Codecs [get] |
| The list of codecs to prioritize (in order). | |
| bool | UseAutomatic [get] |
| Whether to use automatic codec selection (instead of manual ordering). | |
Defines a preferred video codec configuration for a Publisher's stream.
This class lets you specify an explicit codec priority order or opt into automatic codec selection. Use this to control which codecs are prioritized during negotiation, or let the SDK decide based on internal heuristics.
To use manual ordering:
To use automatic selection:
If null is passed instead, the SDK uses the default behavior defined by project settings.
| OpenTok.PreferredVideoCodecs.PreferredVideoCodecs | ( | List< Codec > | codecs | ) |
Creates a new manual codec preference configuration.
| codecs | A non-empty list of codecs in order of preference. |
|
static |
Enables automatic codec selection mode.