Clickable buttons on same screen as video
Hello, I'm new to Opensesame so please bare with me if this is an obvious question. I'm trying to display a video (which I have gotten to work through utilizing the Media Player mpy) but now I would like to add some clickable buttons to the same screen that the video will be playing. I would like the buttons to appear below the video and stay there the entire time the video is playing, and I don't want the screen to change until one of the clickable on screen buttons has been pressed. I have created a button before using an inline script but I'm not sure how to make the buttons appear on the same screen as the video.
Thank you in advance for any help!
Comments
Hi,
It is not possible to combine such a button with a video when using the media player plugin. I am not very familiar with the approach, but this could be done with direct python coding, specifically using the OpenCV package. Be aware that you can't use Openseame button widgets together with opencv, because you would need a form for that (which is not compatible with opencv). Instead you have to draw a rectangle on the screen, and implement a mouse-click routine that triggers actions whenever a mouse click is detected within the area of the button.
Good luck!
Eduard
Okay, thank you!