create cuvidCreateVideoSource for IP-Camera

I am working on creatign a CUDA based video decoder using Nvidia CUDA video decode API.
The Nvidia video decode API creates a video spurce from the video file.

// now create the actual source
CUresult oResult = cuvidCreateVideoSource(&hVideoSource_, sFileName.c_str(), &oVideoSourceParameters);

How can I convert this application for an IP-camera? How will the video source be created?

Can anyody help on this?