forgejs
forgejs copied to clipboard
Adjusting playlist volume adjusts track volume actually
Description of the problem
When setting the playlist volume through the API: For example when requesting viewer.playlists.playlist.volume = 1
only the volume of the audio track currently played is executed.
Note: It is weird but cool in a way because there is no track volume supported in the JSON reference.
ForgeJS version
0.9.5
Browser
- [ ] All of them
- [x] Chrome
- [x] Firefox
- [ ] Internet Explorer
OS
- [ ] All of them
- [ ] Windows
- [x] macOS
- [ ] Linux
- [ ] Android
- [ ] iOS
How to reproduce the problem
- Add a playlist with several tracks
"playlists": {
"volume": {
"default": 0.1,
"max": 1.0
},
"lists": [
{
"uid": "playlist-1",
"name": "Playlist #1",
"default": "audiotrack-1",
"tracks": ["audiotrack-1","audiotrack-2"],
"autoPlay": false,
"volume": {
"default": 0.3,
"max": 1
}
}
],
"tracks": [
{
"uid": "audiotrack-1",
"author": "Olive",
"name": "Cat",
"url": "assets/sounds/cat.mp3"
},
{
"uid": "audiotrack-2",
"author": "Olive",
"name": "Bird",
"url": "assets/sounds/bird.mp3"
}
]
}
- When the playlist is active, request for example
viewer.playlists.playlist.volume = 1
- The audio volume request is only applied to the audio track that is currently playing