---
title: "loadVideo"
sidebar_label: "loadVideo"
description: "Kotlin binding reference: loadVideo."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Io](index.md)/[loadVideo](loadVideo.md)

# loadVideo

[common]\
fun [loadVideo](loadVideo.md)(path: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)): [VideoData](../VideoData/index.md)

Decode a whole video file: every frame as `[T, H, W, 3]` UInt8 on the host plus the stream facts. A large clip reads through [VideoReader](../VideoReader/index.md) instead, which decodes the frames it is asked for.

[common]\
fun [loadVideo](loadVideo.md)(bytes: [ByteArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-byte-array/index.html)): [VideoData](../VideoData/index.md)

Decode a whole video from encoded bytes in memory.