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

Volume slider busted, new website code #18

Open
NYPD opened this issue Nov 13, 2019 · 2 comments
Open

Volume slider busted, new website code #18

NYPD opened this issue Nov 13, 2019 · 2 comments
Assignees
Labels
Milestone

Comments

@NYPD
Copy link
Owner

NYPD commented Nov 13, 2019

VM595 stratus-inject.js:6 Uncaught TypeError: webpackJsonp is not a function at VM37 stratus-inject.js:6

@NYPD NYPD added the bug label Nov 13, 2019
@NYPD NYPD self-assigned this Nov 13, 2019
@NYPD
Copy link
Owner Author

NYPD commented Nov 13, 2019

volUp: {
                    keyCode: ["shiftKey+38"],
                    keyName: ["↑", "⇧"],
                    description: n(1).t("Increase volume"),
                    allowKeyHold: !0,
                    fn: function() {
                        n(81).changeVolume(.1)
                    }
                },
                volDown: {
                    keyCode: ["shiftKey+40"],
                    keyName: ["↓", "⇧"],
                    description: n(1).t("Decrease volume"),
                    allowKeyHold: !0,
                    fn: function() {
                        n(81).changeVolume(-.1)
                    }
                },

Maybe?

@NYPD
Copy link
Owner Author

NYPD commented Nov 13, 2019

setVolumeAndMuted: function(e) {
                l({
                    volume: e.volume,
                    muted: e.muted,
                    triggers: {
                        broadcast: !0
                    }
                })
            },
            updateRemoteVolumeAndMuted: function(e) {
                l({
                    volume: e.volume,
                    muted: e.muted,
                    updateRemote: !0
                })
            },
            getVolume: function() {
                return s ? o : e
            },
            getMuted: function() {
                return s ? a : t
            },
            changeVolume: function(e) {
                var t = n(58).clamp(u.getVolume() + e, 0, 1);
                u.setVolumeAndMuted({
                    volume: t,
                    muted: 0 === t
                })
            },
            toggleMuted: function() {
                u.setMuted(!u.getMuted())
            },
            setMuted: function(e) {
                u.setVolumeAndMuted({
                    volume: u.getVolume(),
                    muted: e
                })
            },
            setVolume: function(e) {
                u.setVolumeAndMuted({
                    volume: e,
                    muted: u.getMuted()
                })
            },

Or here

@NYPD NYPD added this to the v0.2.2 milestone Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant