百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
U

UnityYoutubePlayer

> 编程语言
开源

在 Unity 中播放 YouTube 视频

366 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

在 Unity 中播放 YouTube 视频

UnityYoutubePlayer

Play YouTube videos in Unity. Uses Invidious to fetch the video metadata and Unity's VideoPlayer to play the video.

Important: The package is now at version 3 and contains breaking changes. If you want to know why this package evolved this way, please see this document

⚠️ This package v3 does not work "out of the box" for a few reasons.

  • There might be no public Invidious instances that support API access https://api.invidious.io
  • If Invidious instance is setup with invidious-companion, API support might not be available yet.

Preview

How To Install

This package uses the scoped registry feature to import dependent packages. Please add the following sections to the package manifest file (Packages/manifest.json).

To the scopedRegistries section:

json
{
  "name": "iBicha",
  "url": "https://registry.npmjs.com",
  "scopes": [ "com.ibicha" ]
}

To the dependencies section:

json
"com.ibicha.youtube-player": "3.3.2"

After changes, the manifest file should look like below:

json
{
  "scopedRegistries": [
    {
      "name": "iBicha",
      "url": "https://registry.npmjs.com",
      "scopes": [ "com.ibicha" ]
    }
  ],
  "dependencies": {
    "com.ibicha.youtube-player": "3.3.2",
    ...

Usage

See the package samples for more usage examples. They can be imported from the package manager.

Invidious instances

Starting with UnityYoutubePlayer 3.0.0, we're using https://github.com/iv-org/invidious, a self-hosted alternative front-end to YouTube.

Invidious has a community of volenteers who provided public instances, which can be found at https://api.invidious.io. These are great for getting familiar with Invidious, and for testing, prototyping, and demos. Once you're ready for scaling your game and anticipate a lot of traffic, please consider hosting your own instances to avoid abusing these resources. This will also allow you to be in control of your Invidious instance(s), and generally have a better performance by isolating your game users from other users.

Older versions

For the version used with YoutubeExplode, see the legacy/youtube-explode branch. Please note that it has a different license than the current version.

For other versions, see the git tags. Starting with 1.5.1, this package downloads and uses youtube-dl locally on Desktop platforms. Starting with 1.7.0, this package downloads and uses yt-dlp locally on Desktop platforms, in addition to youtube-dl.

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

C#

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言