Hey I want to save videos in app storage please tell me how can I do this. I want to play videos offline to the user

I am making an app in which users can play videos offline and for this I have to save videos to app storage so please tell me how can I do this.