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

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

//[clika-runtime](../../../../index.md)/[io.clika.runtime](../../index.md)/[VideoReader](../index.md)/[Companion](index.md)/[open](open.md)

# open

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

Open a reader over a file; the header is read now, frames on demand.

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

Open a reader over encoded bytes in memory (copied into the reader).