baml.media.Video

A video clip value.

Reference version

Signature

class baml.media.Video

A video clip value.

May be backed by a URL, local file path, or base64-encoded content.

Source:<builtin>/baml/ns_media/media.bamlbytes 29884331

Fields

_data

$rust_type

Static methods

function

from_base64

(base64: string, mime_type: string | null) -> video throws never

Creates a Video value from a base64-encoded string. Optionally specify mime_type.

function

from_file

(file: string, mime_type: string | null) -> video throws never

Creates a Video value from a local file path. Optionally specify mime_type.

function

from_url

(url: string, mime_type: string | null) -> video throws never

Creates a Video value from a URL. Optionally specify mime_type.

Instance methods

function

base64

(self) -> string throws never
function

file

(self) -> string | null throws never
function

mime_type

(self) -> string | null throws never
function

url

(self) -> string | null throws never

Implementations

baml.Concrete for T

Source:<builtin>/baml/core.bamlbytes 747779