How to show current frame slider for media source without clicking on scene element?

Hello! I want to display the video frame slider, which is stored in media-controls.ui, immediately after loading the program, but now it appears only if I click on a scene element. The slider is rendered in `MediaControls::RefreshControls` in the line
```
ui->slider->setVisible(!isSlideshow);
```
To display the slider, I first need to specify which scene element is currently selected. How can I programmatically select a scene element?
 
Solved: To programmatically select a media element in the preview widget and display the video frame slider, you need to add the code to OBSBasic::OBSInit:
C++:
// Select all elements of the preview widget so that the
// media source output area is selected.
ui->sources->selectAll();
 
Top