Unable to select a source device programatically

sairudru

New Member
I was trying to create a scene, add a source and select one of the device sources, not able to do it using device_id because mac doesn't have this concept of device_id, how can I do it, any alternative?

attaching part of my code(python):

import obsws_python as obs

cl = obs.ReqClient(host='localhost', port=4444)
cl.create_scene("test2")
json ={"device_name":"MacBook Pro Microphone"}
cl.create_input("test2", "input111", "coreaudio_input_capture", json, True)


the above code was able to create a scene and source but audio device is not getting selected, it was selecting the default source
 
Top