How to open usb camera and preview video with libobs on windows?

Allen ZHU

New Member
obs_source_t *source = obs_source_create( "dshow_input", "Video Capture Device", nullptr, nullptr ); if ( source != nullptr ) { auto settings = obs_source_get_settings( source ); obs_data_set_string( settings, "id", "dshow_input" ); obs_data_set_string( settings, "video_device_id", deviceID ); obs_source_update( source, settings ); } return source;
 
Top