Win 11 2nd screen media player with main screen controls
Posted: Fri Aug 23, 2024 7:59 pm
After too many hours spent on trying to get well known Win11 media players to reliably output fullscreen to an extended display while leaving play controls and indicators on the main display, even when called from the command line by my simple PureBasic GUI, I was delighted to find PlayMovie and its associated functions, which I think will allow me to create what I need in a simple form. I notice that PlayMovie also handles still images, which is also very useful.
Displaying on the extended screen seems to require adding a constant to the x-axis to move the image into the extended area and resizing the frames, but this constant and the new image size are not as I would expect from simple pixel counting: these values have to be multiplied by what windows calls the "recommended scale" for the home screen (in my case 125% for 1920x1080 and 250% for 3840x 2160, even with the extended screen being fixed at 1920x1080. Any ideas why?
Most importantly I cannot work out whether there might be a way to incorporate subtitles from .srt files: is it possible with, for example, sprites? Or, more elegantly, could an image blend (or similar) function be incorporated into the ResizeMovie() function, which must deal with the stream frame-by-frame. This seems (to me) to be the perfect place for it, and would allow a simple interface where the supplied subtitle image would be simply updated at stipulated times.
Any ideas or suitable functions very welcome.
NB the application is for AV support in my village church, where the volunteer sound and vision operators are committed but are not IT-savvy, so KISS is a firm principle.
Displaying on the extended screen seems to require adding a constant to the x-axis to move the image into the extended area and resizing the frames, but this constant and the new image size are not as I would expect from simple pixel counting: these values have to be multiplied by what windows calls the "recommended scale" for the home screen (in my case 125% for 1920x1080 and 250% for 3840x 2160, even with the extended screen being fixed at 1920x1080. Any ideas why?
Most importantly I cannot work out whether there might be a way to incorporate subtitles from .srt files: is it possible with, for example, sprites? Or, more elegantly, could an image blend (or similar) function be incorporated into the ResizeMovie() function, which must deal with the stream frame-by-frame. This seems (to me) to be the perfect place for it, and would allow a simple interface where the supplied subtitle image would be simply updated at stipulated times.
Any ideas or suitable functions very welcome.
NB the application is for AV support in my village church, where the volunteer sound and vision operators are committed but are not IT-savvy, so KISS is a firm principle.