It's better to separate playlist and controller. Currently, it's playlist that handle the player control command, but how the player is controlled actually isn't related to the playlist.
Controller will receive commands for either modifying playlist or controlling the frontend player, modify the playlist, and send command to dispatcher. Modules will only interact with controller.
It's better to separate playlist and controller. Currently, it's playlist that handle the player control command, but how the player is controlled actually isn't related to the playlist.
Controller will receive commands for either modifying playlist or controlling the frontend player, modify the playlist, and send command to dispatcher. Modules will only interact with controller.