为什么我用动态创建的DSPACK的控件就无法正确执行,而不是动态创建得旧可以? FilterGraph:=TFilterGraph.Create(self);
Filter:=TFilter.Create(self);
SampleGrabber:=TSampleGrabber.Create(self);
FilterGraph.AutoCreate:=false;
FilterGraph.GraphEdit:=true;
FilterGraph.Mode:=gmCapture;
Filter.FilterGraph:=FilterGraph;
SampleGrabber.FilterGraph:=FilterGraph;
SampleGrabber.OnBuffer:=SampleGrabberBuffer;
VideoWindow:=TVideoWindow.Create(self);
VideoWindow.Parent:=TabSheet1;
VideoWindow.Align:=alClient;
VideoWindow.FilterGraph:=FilterGraph;
Filter:=TFilter.Create(self);
SampleGrabber:=TSampleGrabber.Create(self);
FilterGraph.AutoCreate:=false;
FilterGraph.GraphEdit:=true;
FilterGraph.Mode:=gmCapture;
Filter.FilterGraph:=FilterGraph;
SampleGrabber.FilterGraph:=FilterGraph;
SampleGrabber.OnBuffer:=SampleGrabberBuffer;
VideoWindow:=TVideoWindow.Create(self);
VideoWindow.Parent:=TabSheet1;
VideoWindow.Align:=alClient;
VideoWindow.FilterGraph:=FilterGraph;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货