Skip to content

Adjusting playlist volume adjusts track volume actually #169

@oblanc-gpsw

Description

@oblanc-gpsw

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
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions