Muting does not change the volume level, and VolumeChanged carried nothing but that level — so pressing M silenced playback and left the indicator showing the volume it still had. The UI had nothing to react to. Mute rides on its own event rather than widening the volume payload, since the two are genuinely independent: a muted player at 40% is a different state from a player at 0%, and only one of them comes back when you unmute. The icon crosses out and dims, and the popup gains an explicit Mute/Unmute so the keyboard shortcut is not the only way in. MuteToggle also now takes the speaker lock (it was mutating the effects chain from outside it) and refuses politely rather than dereferencing a nil streamer when nothing has been loaded yet.
48 lines
1.3 KiB
TypeScript
Executable File
48 lines
1.3 KiB
TypeScript
Executable File
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
|
|
// This file is automatically generated. DO NOT EDIT
|
|
import {player} from '../models';
|
|
import {context} from '../models';
|
|
import {mediacontrols} from '../models';
|
|
|
|
export function ChangeVolume(arg1:number):Promise<void>;
|
|
|
|
export function CurrentPosition():Promise<number>;
|
|
|
|
export function CurrentPositionSeconds():Promise<number>;
|
|
|
|
export function EmitCurrentState():Promise<void>;
|
|
|
|
export function GetCurrentTrackInfo():Promise<player.TrackInfo>;
|
|
|
|
export function InitSpeaker():Promise<void>;
|
|
|
|
export function IsPlaying():Promise<boolean>;
|
|
|
|
export function LoadFile(arg1:string):Promise<void>;
|
|
|
|
export function MuteToggle():Promise<void>;
|
|
|
|
export function Muted():Promise<boolean>;
|
|
|
|
export function Pause():Promise<void>;
|
|
|
|
export function Play():Promise<void>;
|
|
|
|
export function RestoreState():Promise<void>;
|
|
|
|
export function SaveState():Promise<void>;
|
|
|
|
export function Seek(arg1:number):Promise<void>;
|
|
|
|
export function SetContext(arg1:context.Context):Promise<void>;
|
|
|
|
export function SetMediaControls(arg1:mediacontrols.Handler):Promise<void>;
|
|
|
|
export function SetPlaybackFinishedHandler(arg1:any):Promise<void>;
|
|
|
|
export function SetVolume(arg1:player.UserVolume):Promise<void>;
|
|
|
|
export function TrackLengthInSeconds():Promise<number>;
|
|
|
|
export function UnloadTrack():Promise<void>;
|