---
title: "Radio Player - s&box library"
description: "A complete radio streaming solution for s&box games. Includes a RadioManager component for managing audio streams, RadioStation"
canonical: "https://sbox.watch/zh-cn/libraries/cyn/radioplayer/"
generated_at: "2026-11-27T16:45:25.376Z"
---

# Radio Player

A complete radio streaming solution for s&box games. Includes a RadioManager component for managing audio streams, RadioStation

- 类型: 库
- 标识符: cyn.radioplayer
- 创作者: Cyn
- 规范地址: https://sbox.watch/zh-cn/libraries/cyn/radioplayer/
- Markdown: https://sbox.watch/zh-cn/libraries/cyn/radioplayer/index.md
- sbox.game: https://sbox.game/cyn/radioplayer/
- 生成时间: 2026-11-27T16:45:25.376Z

## 统计

- 24小时热度: +0
- Terry 评分: 43%
- 收藏: 1
- 好评: 2
- 差评: 0
- 更新时间: 2026年4月16日
- 创建时间: 2026年4月15日
- 大小: 12.9 KB
- 文件: 9
- 标签: live, manager, player, radio, songs, stations, tracks, url

## 描述

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.



## More by Cyn

| Package | 标识符 | 玩家 | 收藏 | 好评 | 评分 | Markdown |
| --- | --- | --- | --- | --- | --- | --- |
| s&box Editor Collaboration (EXP) | cyn.sbox_editor_collab | 0 | 2 | 6 | 69% | https://sbox.watch/zh-cn/libraries/cyn/sbox_editor_collab/index.md |
