diff --git a/CHANGELOG.md b/CHANGELOG.md index 0e5d8b78..aa55d9b1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Display issues for 720p devices - Attempt to fix session data fetch errors +- Remove volume handing from cast, to avoid a possible "mute softlock" - feature will be added back later. ## [0.48.2] - 2026-07-11 diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs index 5ff9aace..608cb02b 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeApi.bs @@ -58,6 +58,7 @@ class LoungeApi commandHandlers = {} commandHandlers[COMMAND_TYPE_NOOP] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_VOLUME] = m.HandleIgnoreCommand + commandHandlers[COMMAND_TYPE_SET_VOLUME] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_GET_SUBTITLES_TRACK] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_SET_SUBTITLES] = m.HandleIgnoreCommand commandHandlers[COMMAND_TYPE_SET_AUDIO_TRACK] = m.HandleIgnoreCommand @@ -78,7 +79,6 @@ class LoungeApi commandHandlers[COMMAND_TYPE_G_SESSION_ID] = m.HandleGSessionId commandHandlers[COMMAND_TYPE_LOUNGE_STATUS] = m.HandleLoungeStatus commandHandlers[COMMAND_TYPE_REMOTE_CONNECTED] = m.HandleRemoteConnected - commandHandlers[COMMAND_TYPE_SET_VOLUME] = m.HandleSetVolume commandHandlers[COMMAND_TYPE_SET_PLAYLIST] = m.HandleSetPlaylist commandHandlers[COMMAND_TYPE_UPDATE_PLAYLIST] = m.HandleUpdatePlaylist commandHandlers[COMMAND_TYPE_PAUSE] = m.HandlePause @@ -422,20 +422,6 @@ class LoungeApi LoungeDeviceConnected.ShowNotifcation(m.notificationsNode, deviceName, userName, userAvatarUri) end function - function HandleSetVolume(_commandId as integer, _commandType as string, commandArgs as object, _messagesToSend as object) as void - player = m.videoQueueNode.player - if player = invalid - return - end if - - volume = Val(commandArgs["volume"]) - isMute = volume = 0 - LogInfo("Setting volume is not supported:", volume, "but can mute:", isMute) - ' TODO:P2 volume should be set to the lounge state. - ' Also the state needs to be separate from the player, since SponsorBlock can mute sections. - player.mute = isMute - end function - function HandleSetPlaylist(_commandId as integer, commandType as string, commandArgs as object, _messagesToSend as object) LogDebug(commandType, commandArgs) ' TODO:P2 ctt: credentialTransferToken diff --git a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs index 8ba91315..9383dc6f 100644 --- a/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs +++ b/playlet-lib/src/components/Services/LoungeService/LoungeConstants.bs @@ -1,7 +1,6 @@ ' Outgoing commands const COMMAND_NOW_PLAYING = "nowPlaying" const COMMAND_ON_STATE_CHANGE = "onStateChange" -const COMMAND_ON_VOLUME_CHANGED = "onVolumeChanged" const COMMAND_ON_PREVIOUS_NEXT_CHANGE = "onHasPreviousNextChanged" const COMMAND_ON_PLAYBACK_SPEED_CHANGED = "onPlaybackSpeedChanged" const COMMAND_LOUNGE_SCREEN_DISCONNECTED = "loungeScreenDisconnected" @@ -58,8 +57,6 @@ const FIELD_LIST_ID = "listId" const FIELD_MDX_EXPANDED_RECEIVER_VIDEO_ID_LIST = "mdxExpandedReceiverVideoIdList" const FIELD_CURRENT_TIME = "currentTime" const FIELD_DURATION = "duration" -const FIELD_VOLUME = "volume" -const FIELD_MUTED = "muted" const FIELD_CPN = "cpn" const FIELD_CTT = "ctt" const FIELD_CURRENT_INDEX = "currentIndex"