---
title: "Video Panel - s&box library"
description: "A Panel that plays videos"
canonical: "https://sbox.watch/zh-cn/libraries/duccsoft/videopanel/"
generated_at: "2026-11-27T17:40:25.565Z"
---

# Video Panel

A Panel that plays videos

- 类型: 库
- 标识符: duccsoft.videopanel
- 创作者: duccsoft
- 规范地址: https://sbox.watch/zh-cn/libraries/duccsoft/videopanel/
- Markdown: https://sbox.watch/zh-cn/libraries/duccsoft/videopanel/index.md
- sbox.game: https://sbox.game/duccsoft/videopanel/
- 生成时间: 2026-11-27T17:40:25.565Z

## 统计

- 24小时热度: +0
- Terry 评分: 53%
- 收藏: 6
- 好评: 3
- 差评: 0
- 更新时间: 2024年11月1日
- 创建时间: 2024年11月1日
- 大小: 151.0 KB
- 文件: 21
- 标签: ui, razor, panel, video, videoplayer, media

## 描述

Source code: https://github.com/chrisspieler/sbox-tips-videoplayer/tree/main/Libraries/videopanel

VideoPanel is a UI Panel that manages the playback of a VideoPlayer instance. You can create it like this:

<VideoPanel VideoPath="ui/video/ducks.mp4" width="640" height="360" ShowControls=@true/>

By default, ShowControls is set to false. When true, video playback controls will appear over the video.

You can set AutoHide to false to keep the controls always visible, and set AutoHideDelay to adjust how much time passes between when the video is no longer hovered and when the controls are hidden.

If you set VideoRoot to VideoRoot.WebStream, you may use a direct video stream URL in VideoPath.



## More by duccsoft

| Package | 标识符 | 玩家 | 收藏 | 好评 | 评分 | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| Freecam | duccsoft.libfreecam | 0 | 6 | 5 | 65% | https://sbox.watch/zh-cn/libraries/duccsoft/libfreecam/index.md |
| (WIP) Dear ImGui Clone | duccsoft.imgui | 0 | 2 | 2 | 43% | https://sbox.watch/zh-cn/libraries/duccsoft/imgui/index.md |
