Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1.75 KB

File metadata and controls

36 lines (22 loc) · 1.75 KB

StreamingwhileDownloading

APP APK

This project downloads the video while streaming it simultaneously.

The project is mainly based upon the files of Sachin Chandil that are available on github at VideoDownloadAndPlay with minor changes so as to not re-download the videos when the app is opened again, which I have implemented.

For some reason or another when streaming the video from url in surface view, the download is happening but the video is not streaming simultaneously, whereas the same works fine with Video View

How can we check if download is happening??

  • Open your internal storage and go to
  • InternalStorage/Android/data/com.example.aditya.downloadwhilestreaming/files
  • WORKING

    Open the app with your internet connection ON and click on Download and play.

    After 2 seconds or so if your connection is fast, you see the video on the screen.

    Press download and play again, this time you see another instance of video from the start.This is the the downloaded video

    You may check into your phone that the video has downloaded.

    Open the app again, and press the button again.

    This time you only see 1 instance of the video and it starts immediately without any delay. Now, the video is being played from the directory or storage.

    In Some conditions, while running the app, it may crash or say Can't play video. In that case simply close the app, delete any downloaded files that are there in the app directory specified above and start the app again

    There are some bugs but I am still working on it