2022-01-14 01:24 AM
On a custom screen which contains a VideoWidget, I added a button that calls a callback to go back to another screen. I switch the screen as it's suggested from ST by calling
static_cast<FrontendApplication*>(Application::getInstance())->gotoHomeScreen();
This way of doing works on all my screens, but on the video screen it crashes the program when the tick event gets called :
FrontendApplicationBase::handleTickEvent();
When I remove the video widget of my view, the problem disappears.
Is there a way to solve the issue ?
Solved! Go to Solution.
2022-01-14 02:02 AM
Maybe something to try would be to stop the video (<name of videowidget>.stop() function) before you call the gotoHomeScreen() function if it is a conflict with the handleTickEvent() from the video widget :thinking_face:.
/Romain
2022-01-14 02:00 AM
Hi,
Does it also happen if you create in this screen an interaction "go to <screen name>" ? You can just create a dummy interaction with as trigger a fake hardware button for example, and call the function generated to go to that screen in the <screen name>Viewbase.cpp .
/Romain
2022-01-14 02:02 AM
Maybe something to try would be to stop the video (<name of videowidget>.stop() function) before you call the gotoHomeScreen() function if it is a conflict with the handleTickEvent() from the video widget :thinking_face:.
/Romain
2022-01-14 02:51 AM
@Romain DIELEMAN you're right the problem is that I didn't called the video.stop().
But what's strange is that I have to call it from the presenter, if I call it from the view, it doesn't work.