| foundry_video_download | R Documentation |
foundry_video_download(
generation_id,
path,
content = c("video", "thumbnail"),
overwrite = FALSE,
api_key = NULL,
token = NULL,
endpoint = NULL,
api_version = "preview"
)
generation_id |
Character. Video generation ID. |
path |
Character. Local file path for the downloaded content. |
content |
Character. |
overwrite |
Logical. Whether to overwrite an existing file. |
api_key |
Character. Optional API key override. |
token |
Character. Optional bearer token override. |
endpoint |
Character. Optional endpoint override. |
api_version |
Character. Optional API version. Defaults to |
A tibble with the local path, bytes written, generation ID, and content type.
## Not run:
# Requires a configured Azure endpoint and credentials,
# plus a completed video generation ID.
local({
path <- tempfile(fileext = ".mp4")
on.exit(unlink(path))
foundry_video_download("vidgen_abc123", path)
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.