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

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

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

# peekVideo

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

Read a video file's header without decoding a frame.

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

Read a video header from encoded bytes in memory.