Module adcp.types.generated_poc.video_asset

Classes

class VideoAsset (**data: Any)
Expand source code
class VideoAsset(AdCPBaseModel):
    model_config = ConfigDict(
        extra='forbid',
    )
    bitrate_kbps: Annotated[
        int | None, Field(description='Video bitrate in kilobits per second', ge=1)
    ] = None
    duration_ms: Annotated[
        int | None, Field(description='Video duration in milliseconds', ge=0)
    ] = None
    format: Annotated[str | None, Field(description='Video file format (mp4, webm, mov, etc.)')] = (
        None
    )
    height: Annotated[int | None, Field(description='Video height in pixels', ge=1)] = None
    url: Annotated[AnyUrl, Field(description='URL to the video asset')]
    width: Annotated[int | None, Field(description='Video width in pixels', ge=1)] = None

Base model for AdCP types with spec-compliant serialization.

AdCP JSON schemas use additionalProperties: false and do not allow null for optional fields. Therefore, optional fields must be omitted entirely when not present (not sent as null).

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

Ancestors

Class variables

var bitrate_kbps : int | None
var duration_ms : int | None
var format : str | None
var height : int | None
var model_config
var url : pydantic.networks.AnyUrl
var width : int | None

Inherited members