Radio Player

thumb
Identcyn.radioplayer
Typelibrary
Created
Updated
Latest Version 199883 8 KB ~4
Tags live manager player radio songs stations tracks url
Links s&box
SummaryA complete radio streaming solution for s&box games. Includes a RadioManager component for managing audio streams, RadioStation
Description
Radio System 📻 Manages streaming audio playback with support for multiple stations, shuffle, and loop modes. RadioStation 📻 Data class defining a radio station. var station = new RadioStation( "Station Name", "https://stream.url", "Source" ); RadioManager 🎵 Component that handles playback of radio stations. Properties • Stations - List<RadioStation> (List of available stations). • AutoPlay - bool (Play on scene start). • DefaultVolume - float (Initial volume (0-1)). • Shuffle - bool (Randomize track order). • LoopStations - bool (Loop to first station after last). Playback Methods • Play() - Start playback • Stop() - Stop playback • PlayTrack(index) - Play specific station • PlayNext() - Skip to next station • PlayPrevious() - Go to previous station • TogglePlayPause() - Pause/resume current track Some has [button] so they can be used in the inspector Events 📢 • OnPlayStateChanged - Fired when play/pause/stop changes • OnTrackChanged - Fired when track changes Usage ⚙️ Add a RadioManager.cs component to a GameObject, configure stations in the inspector, and call playback methods from UI or code.
Radio System 📻 Manages streaming audio playback with support for multiple stations, shuffle, and loop modes. RadioStation 📻 Data class defining a radio station. var station = new RadioStation( "Station Name", "https://stream.url", "Source" ); RadioManager 🎵 Component that handles playback of radio stations. Properties • Stations - List<RadioStation> (List of available stations). • AutoPlay - bool (Play on scene start). • DefaultVolume - float (Initial volume (0-1)). • Shuffle - bool (Randomize track order). • LoopStations - bool (Loop to first station after last). Playback Methods • Play() - Start playback • Stop() - Stop playback • PlayTrack(index) - Play specific station • PlayNext() - Skip to next station • PlayPrevious() - Go to previous station • TogglePlayPause() - Pause/resume current track Some has [button] so they can be used in the inspector Events 📢 • OnPlayStateChanged - Fired when play/pause/stop changes • OnTrackChanged - Fired when track changes Usage ⚙️ Add a RadioManager.cs component to a GameObject, configure stations in the inspector, and call playback methods from UI or code.
Votes 2 0 1
Error Rate0%
Data
{}