forgejs icon indicating copy to clipboard operation
forgejs copied to clipboard

Adjusting playlist volume adjusts track volume actually

Open oblanc-gpsw opened this issue 6 years ago • 0 comments

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

  1. 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"
        }
    ]
}
  1. When the playlist is active, request for example viewer.playlists.playlist.volume = 1
  2. The audio volume request is only applied to the audio track that is currently playing

oblanc-gpsw avatar Mar 29 '18 07:03 oblanc-gpsw