Libraries

s&box libraries list

MediaHelpers

carsonk.mediahelpers

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

About

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);
    }
}

Media

01
Razor Panel Tooltips thumbnail
Razor Panel Tooltips carsonk.razor_tooltips

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

+0 24h
6favorites
6upvotes
55%Terry score
02
RichText Razor Panels thumbnail
RichText Razor Panels carsonk.richtextpanels

Adds a <RichText/> element which can parse text into custom Razor Panels

+0 24h
3favorites
4upvotes
60%Terry score
05
Granular Pitch Audio Processor thumbnail
Granular Pitch Audio Processor carsonk.granularpitchprocessor

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

+0 24h
1favorites
0upvotes
--Terry score
06
Twitch API thumbnail
Twitch API carsonk.twitchapi

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

+0 24h
0favorites
0upvotes
--Terry score