Bibliothèques

liste des bibliothèques s&box

MediaHelpers

carsonk.mediahelpers

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

À propos

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

Médias

01
Vignette de Razor Panel Tooltips
Razor Panel Tooltipscarsonk.razor_tooltips

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

+024 h
6favoris
6votes positifs
55%Terry Score
02
Vignette de RichText Razor Panels
RichText Razor Panelscarsonk.richtextpanels

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

+024 h
3favoris
4votes positifs
60%Terry Score
05
Vignette de 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 h
1favoris
0votes positifs
--Terry Score
06
Vignette de 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 h
0favoris
0votes positifs
--Terry Score