Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjusting playlist volume adjusts track volume actually #169

Open
3 of 10 tasks
oblanc-gpsw opened this issue Mar 29, 2018 · 0 comments
Open
3 of 10 tasks

Adjusting playlist volume adjusts track volume actually #169

oblanc-gpsw opened this issue Mar 29, 2018 · 0 comments

Comments

@oblanc-gpsw
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants