fix playback speed message in lounge
This commit is contained in:
1 parent
105b9ab12c
commit
4d047909fc
4 files changed
+38
-7
No files matched your search
@@ -15,16 +15,18 @@ namespace LoungeMessages
|
||||
return message
|
||||
end function
|
||||
|
||||
function OnPlaybackSpeedChanged(speed as float, isContentSupportVSP as boolean) as object
|
||||
function OnPlaybackSpeedChanged(speed as float, isContentSupportVSP = invalid as dynamic) as object
|
||||
message = {
|
||||
commandType: COMMAND_ON_PLAYBACK_SPEED_CHANGED
|
||||
}
|
||||
commandArgs = {}
|
||||
commandArgs[FIELD_PLAYBACK_SPEED] = speed
|
||||
commandArgs[FIELD_PLAYBACK_SPEED_INFO] = FormatJson({
|
||||
"playbackSpeed": speed
|
||||
"isContentSupportVSP": isContentSupportVSP
|
||||
})
|
||||
if isContentSupportVSP <> invalid
|
||||
commandArgs[FIELD_PLAYBACK_SPEED_INFO] = FormatJson({
|
||||
"playbackSpeed": speed
|
||||
"isContentSupportVSP": isContentSupportVSP
|
||||
})
|
||||
end if
|
||||
message.commandArgs = commandArgs
|
||||
return message
|
||||
end function
|
||||
|
||||
Reference in new issue
Block a user