hi,
I need to load an URL with its username and password credential by IFileSource Filter.
I am trying to get the stream of axis IP-camera by directshow filters.
am now using AxisMjpegSourceFilter from axis communication, i had queryied IFileSourceFilter from the axis sourcefilter for loading url. when I try to load the url "axmphttp://145.162.152.129/axis-cgi/mjpg/video.cgi?resolution=320x240", it's asking usernamename and password for network credential setup in the IPcamera setup. If i give the credential i sucessfully had the preview by videorenderer. but it's asking everytime username and password for load the url. how to automate this problem of give credential again and again.
I had tried with "axmphttp://username:password0@145.162.152.129/axis-cgi/mjpg/video.cgi?resolution=320x240" but its fails.
Please help me i got stucked with this for almost two weeks.
For reference below is my code am trying,
hr=CoInitialize(NULL);
CoCreateInstance(CLSID_CaptureGraphBuilder2,NULL,CLSCTX_INPROC,IID_ICaptureGraphBuilder2,(void**)&cgbuild);
hr=CoCreateInstance(CLSID_FilterGraph,NULL,CLSCTX_INPROC,IID_IGraphBuilder,(void**)&gbuild);
hr=cgbuild->SetFiltergraph(gbuild);
hr= get_filter(sourcebase,"AXIS MJPEG Capture Filter");
hr=gbuild->AddFilter(sourcebase,L"Source_filter");
hr=sourcebase->QueryInterface(IID_IFileSourceFilter,(void**)&filesource);
hr=filesource->Load(L"axmphttp://142.126.127.163/axis-cgi/mjpg/video.cgi?resolution=320x240", &AMT);
if(hr != S_OK)
return false;
so while load, it pop up windows security and asks username and password, how to pass the credential by code.