How to use the @aws-amplify/xr.setMuted function in @aws-amplify/xr

To help you get started, we’ve selected a few @aws-amplify/xr examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws-amplify / amplify-js / packages / aws-amplify-react / src / XR / SumerianScene.jsx View on Github external
setMuted(muted) {
    if (this.state.showEnableAudio) {
      XR.enableAudio(this.props.sceneName);
      this.setState({showEnableAudio: false});
    }

    XR.setMuted(this.props.sceneName, muted);
    this.setState({ muted: muted });
  }
github aws-amplify / amplify-js / packages / aws-amplify-react / src / XR / SumerianScene.tsx View on Github external
setMuted(muted) {
    if (this.state.showEnableAudio) {
      XR.enableAudio(this.props.sceneName);
      this.setState({showEnableAudio: false});
    }

    XR.setMuted(this.props.sceneName, muted);
    this.setState({ muted: muted });
  }
github aws-amplify / amplify-js / packages / amplify-ui-components / src / components / amplify-scene / amplify-scene.tsx View on Github external
setMuted(muted) {
    if (this.showEnableAudio) {
      XR.enableAudio(this.sceneName);
      this.showEnableAudio = false;
    }

    XR.setMuted(this.sceneName, muted);
    this.muted = muted;
  }