Skip to content

Commit

Permalink
update the global device state in case resolution changes
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Dec 16, 2023
1 parent 7914561 commit d4e53f9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions source/Main.bs
Original file line number Diff line number Diff line change
Expand Up @@ -711,6 +711,9 @@ sub Main (args as dynamic) as void
' The audio codec capability has changed if true.
print "event.audioCodecCapabilityChanged = ", event.audioCodecCapabilityChanged

' update global device state
SaveDeviceToGlobal()
' update the server
postTask = createObject("roSGNode", "PostTask")
postTask.arrayData = getDeviceCapabilities()
postTask.apiUrl = "/Sessions/Capabilities/Full"
Expand All @@ -719,6 +722,9 @@ sub Main (args as dynamic) as void
' The video codec capability has changed if true.
print "event.videoCodecCapabilityChanged = ", event.videoCodecCapabilityChanged

' update global device state
SaveDeviceToGlobal()
' update the server
postTask = createObject("roSGNode", "PostTask")
postTask.arrayData = getDeviceCapabilities()
postTask.apiUrl = "/Sessions/Capabilities/Full"
Expand Down

0 comments on commit d4e53f9

Please sign in to comment.