车 车超 Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-21 #1 DSPack怎么判断摄像头正在被其他程序使用,如摄像头被QQ使用了,我的程序就会报错,怎么处理这个错误
车 车超 Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-21 #2 DSPack怎么判断摄像头正在被其他程序使用,如摄像头被QQ使用了,我的程序就会报错,怎么处理这个错误
车 车超 Unregistered / Unconfirmed GUEST, unregistred user! 2005-07-21 #3 自己解决了 with FilterGraph as ICaptureGraphBuilder2do hr := RenderStream(@PIN_CATEGORY_PREVIEW, nil, Filter as IBaseFilter, Grabber as IBaseFilter, VideoWindow as IbaseFilter); if hr<0 then //摄像头已被别的程序占用 begin FilterGraph.Active := False; exit; end;
自己解决了 with FilterGraph as ICaptureGraphBuilder2do hr := RenderStream(@PIN_CATEGORY_PREVIEW, nil, Filter as IBaseFilter, Grabber as IBaseFilter, VideoWindow as IbaseFilter); if hr<0 then //摄像头已被别的程序占用 begin FilterGraph.Active := False; exit; end;
J jake502010 Unregistered / Unconfirmed GUEST, unregistred user! 2005-08-03 #6 能不能把你的东东共享呀! 很想看一看这样东东! email_1998_21@163.com