API to queue multiple tracks at a time

Feature description

A new API endpoint to queue multiple songs at a time, such as a new action of app.symfonium.api.QUEUE_MEDIA with extra FILES being a string array.

Problem solved

Currently, the only way to queue individual files is through MEDIA_START API using FILE and QUEUE: 2. When queueing many files, this endpoint is invoked many times which seems rather inefficient. Also it seems when a lot of broadcasts are sent in a burst, some of them would get lost, so I had to add an arbitrary delay (100ms) to ensure all the songs are properly enqueued. But this adds unnecessary latency and the reliability of such delay is also unclear.

Brought benefits

This would allow external app to create a play queue more easily. It can be helpful if one wants to queue songs in a way that isn’t built into the player itself.

Device type

All

I searched existing feature requests

on