Youtube Download

How to implement like YouTube offline download feature to my app, please who know let me out from this issue