fix onscreen control not working after enabled from realtime game back menu, if the stream view is launched without onscreen control in the first time

This commit is contained in:
True Zhuanjia
2024-07-20 16:39:22 +08:00
parent c38dfc2c20
commit 2bcdd25cc2
2 changed files with 1 additions and 1 deletions
@@ -127,6 +127,7 @@
[self configZoomGesture];
[self->_streamView disableOnScreenControls]; //don't know why but this must be called outside the streamview class, just put it here. execute in streamview class cause hang
[self.mainFrameViewcontroller reloadStreamConfig]; // reload streamconfig
_controllerSupport = [[ControllerSupport alloc] initWithConfig:self.streamConfig delegate:self]; // reload controllerSupport obj, this is mandatory for OSC reload,especially when the stream view is launched without OSC
[_streamView setupStreamView:_controllerSupport interactionDelegate:self config:self.streamConfig]; //reinitiate setupStreamView process.
[self->_streamView reloadOnScreenControlsRealtimeWith:(ControllerSupport*)_controllerSupport
andConfig:(StreamConfiguration*)_streamConfig]; //reload OSC here.