Offline video

How to build app with offline video like youtube in ionic?