private void ChangeSettings() { //Settings need to be changed because they might change how the player interacts with chromecast. //These settings get reverted back to their original settings after mbApiInterface.Player_SetMute(true); mbApiInterface.Player_SetCrossfade(false); }
/// <inheritdoc /> public bool SetVolume(int volume) { var success = false; if (volume >= 0) { success = _api.Player_SetVolume((float)volume / 100); if (_api.Player_GetMute()) { _api.Player_SetMute(false); } } return(success); }