Developing a Widget as an alternative to caching Web URL videos

As far as I’ve read, caching isn’t supported when using either webpages or RTSP url to stream videos for now. Would it then be possible to develop our own Widget that handles caching the videos in the local computer/device where the player is installed?