Rumpelstinsk
New Member
Hi!! Is there any changes to get the screen resolution in pixels?
I am developing a plugin for obs and I need to add sources (browser and media), but I need to set these sources with a proper width and heigth to match scene at 100%.
So I need to get the scene resolution to be able to set the same size to these sources.
I tried to call obs_get_video_info to check base_width. This is the piece of code I am trying
However every time I call obs_get_video_info, the application crasshes. I have attached the crash log.
So, How can i get the screen resolution to set the same size to sources?
PD: I know about the fullscreen option, however I don't want the streamer to lose his screen when I add this source
I am developing a plugin for obs and I need to add sources (browser and media), but I need to set these sources with a proper width and heigth to match scene at 100%.
So I need to get the scene resolution to be able to set the same size to these sources.
I tried to call obs_get_video_info to check base_width. This is the piece of code I am trying
C++:
obs_video_info *ovi;
blog(LOG_INFO, "TRYING TO GET VIDEO");
bool videoSuccess = obs_get_video_info(ovi);
blog(LOG_INFO, "Video retrieved");
However every time I call obs_get_video_info, the application crasshes. I have attached the crash log.
So, How can i get the screen resolution to set the same size to sources?
PD: I know about the fullscreen option, however I don't want the streamer to lose his screen when I add this source