库

s&box 库列表

MediaHelpers

carsonk.mediahelpers

A library used to retrieve video stream urls for use with the VideoPlayer class.

关于

MediaHelpers

A library used to retrieve video stream urls for use with the VideoPlayer class.

How to use

Add the following package to your game/addon: 

Make sure your class is  and you're good to go!

Here's some example code:

public void PlayVideo(string url)
{
    if(MediaHelper.IsYoutubeUrl(url))
    {
        string streamUrl = MediaHelper.GetUrlFromYoutubeUrl(url);
        videoPlayer.Play(streamUrl);
    }
    else
    {
        videoPlayer.Play(url);
    }
}

更多作品,作者: Carson Kompon

查看创作团队分析 →
01
Razor Panel Tooltips 缩略图
Razor Panel Tooltipscarsonk.razor_tooltips

A custom tooltip system that lets you use razor panels instead of a string

+024小时
6收藏
6好评
55%Terry 评分
05
Granular Pitch Audio Processor 缩略图
Granular Pitch Audio Processorcarsonk.granularpitchprocessor

A basic audio processor that lets you change the pitch of a sound live without changing its speed.

+024小时
1收藏
0好评
--Terry 评分
06
Twitch API 缩略图
Twitch APIcarsonk.twitchapi

A stupid simple Library that allows you to subscribe to events from Twitch Chat, with additional metadata for users/messages.

+024小时
0收藏
0好评
--Terry 评分