SocialCops-Video-App-demo is my submission to the challenge hosted by SocialCops as part of their hiring program.
- A video should be saved in the internal storage while user is streaming it
- You can use this link to access the video: https://socialcops.com/images/old/spec/home/header-img-background_video-1920-480.mp4
- Make sure there is a single request going to the server for streaming and saving on the Android phone
Successfully completed.
- Android Video Cache - This library adds caching support to VideoView and it is because of this library that there is a single request going to the server for streaming and saving.
-
MainActivity : Initialization, assignment and calling of all functions related to video URL fetching, streaming, caching and playing.
-
CacheManager : A class to manage caching. If there is no caching server, it is built and returned. If it exists, it is returned.
-
Utils : All caching related functions like getting the directory, cleaning it etc. reside in this class.