Michsky – Docs Michsky – Docs
  • Home
  • Documentation
    • Reach UI
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact
Michsky – Docs Michsky – Docs
Michsky – Docs
  • Home
  • Documentation
    • Reach UI
    • DreamOS
    • Modern UI Pack
    • Motion Titles Pack
    • Dark UI
    • Loading Screen Studio
  • Contact

DreamOS

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Changing Content
    • DreamOS UI Elements
  • Apps & Windows
    • App Library
    • Creating New Apps
    • Deleting Apps
    • Commander
    • Mail
    • Messaging
    • Music Player
    • Notepad
    • Photo Gallery
    • Reminder
    • Settings
    • Video Player
    • Web Browser
  • Managers
    • Audio Manager
    • Boot Manager
    • Date & Time
    • Events
    • Mod Manager
    • Multi Instance Manager
    • Network Manager
    • Notification Manager
    • User Manager
    • Widget Manager
    • World Space Manager
    • Window Manager
    • Wallpaper Manager
  • Others & Add-ons
    • Steam Messaging
  1. Home
  2. Docs
  3. DreamOS
  4. Apps & Windows
  5. Music Player
Updated on April 3, 2022

DreamOS

  • Quick Start
  • How To (FAQs)
  • UI Elements
    • Changing Content
    • DreamOS UI Elements
  • Apps & Windows
    • App Library
    • Creating New Apps
    • Deleting Apps
    • Commander
    • Mail
    • Messaging
    • Music Player
    • Notepad
    • Photo Gallery
    • Reminder
    • Settings
    • Video Player
    • Web Browser
  • Managers
    • Audio Manager
    • Boot Manager
    • Date & Time
    • Events
    • Mod Manager
    • Multi Instance Manager
    • Network Manager
    • Notification Manager
    • User Manager
    • Widget Manager
    • World Space Manager
    • Window Manager
    • Wallpaper Manager
  • Others & Add-ons
    • Steam Messaging

Music Player

Author: admin 145 views

Functional music player app which supports essential player features, including playlists, shuffle, repeat and so on.

Workflow

Music Player app depends on its manager and scriptable objects. It supports multiple playlists which you can manage by using the manager. You can add new music by using Tools > DreamOS > Show Music Playlists. All of the playlists and their items will be generated at runtime. Items can be edited by selecting and opening the main prefab from Managers > Music Player > Resources tab.

Properties

Property Type Function

repeat

bool

Plays the current item again when the track ends.

shuffle

bool

Jumps to a randomly selected item when the track ends.

sortListByName

bool

Sorts the playlist from A to Z when enabled.

enableLyrics

bool

Starts the lyrics playback if there's a .lrc file that matches with the song.

enablePopupNotification

bool

Creates a popup notification when the track ends.

Scripting

				
					using Michsky.DreamOS; // namespace

public MusicPlayerManager musicPlayer; // Your mp variable

void YourFunction()
{
   musicPlayer.PlayMusic(); // Start playback
   musicPlayer.PauseMusic(); // Pause playback
   musicPlayer.StopMusic(); // Stop playback
   musicPlayer.MuteMusic(); // Mute or unmute audio
   musicPlayer.NextTitle(); // Next track from the current playlist
   musicPlayer.PrevTitle(); // Next track from the current playlist
   musicPlayer.PlayCustomMusic(index); // Play specific music from the current playlist
   musicPlayer.PlayCustomClip(audioClip, spriteCover, "name", "author"); // Play specific track
   musicPlayer.shuffle = true; // Change shuffle state
   musicPlayer.repeat = false; // Change repeat state
}				
			

How can we help?

A premium WordPress theme with an integrated Knowledge Base,
providing 24/7 community-based support.

Content

© 2023 Michsky