baml.media.Video
A video clip value.
Reference version
Signature
class baml.media.VideoA video clip value.
May be backed by a URL, local file path, or base64-encoded content.
Source:<builtin>/baml/ns_media/media.bamlbytes 2988–4331
Fields
_data
$rust_typeStatic methods
function
from_base64
(base64: string, mime_type: string | null) -> video throws neverCreates a Video value from a base64-encoded string. Optionally specify mime_type.
function
from_file
(file: string, mime_type: string | null) -> video throws neverCreates a Video value from a local file path. Optionally specify mime_type.
function
from_url
(url: string, mime_type: string | null) -> video throws neverCreates a Video value from a URL. Optionally specify mime_type.
Instance methods
function
base64
(self) -> string throws neverfunction
file
(self) -> string | null throws neverfunction
mime_type
(self) -> string | null throws neverfunction
url
(self) -> string | null throws neverImplementations
baml.Concrete for T
Source:<builtin>/baml/core.bamlbytes 747–779