nithyaak
11 years agoVisitor
How to cache several video clips locally
Hi,
I am trying to develop an app for Video clip seemless playing (e.g Ad or VOD purpose ) and i would like to achieve the following functionality.
1. Is it possible to launch this app by default when Roku boots up? if so how without any user interaction?
2. When the app is launched, it connects to a server and get list of video clips url and it downloads to a cache directory (assuming Roku 3 is used), can i download to Micro SD card and read it? if so how?
3. Lets say in #2 above, it download 10 (or few or more) clips during bootup, but while playing any clips, is ROKU capable of go to the server and download new list of video clips to cache directory? I guess, what i am try to ask is it doable and is Roku is multi threaded ? I don't want the Roku to wait (display blank screen etc) while downloading new or next clip to be played
4. If internet connection is not available, roku keep playing from cache directory (in the event of rebooting i don't want to loose any previously downloaded content) until internet connection is up (how can i detect internet connection is up or down before trying to reach the server? Also i need to consider the case Internet is up but the server is down case too)
5. Assuming Roku can periodically connects to my server, Is it possible for me to force reboot the app or Roku device remotely? if so how?
If someone could shed some code would be very helpful.
Thanks a million in advance for your time.
Nithyaak
I am trying to develop an app for Video clip seemless playing (e.g Ad or VOD purpose ) and i would like to achieve the following functionality.
1. Is it possible to launch this app by default when Roku boots up? if so how without any user interaction?
2. When the app is launched, it connects to a server and get list of video clips url and it downloads to a cache directory (assuming Roku 3 is used), can i download to Micro SD card and read it? if so how?
3. Lets say in #2 above, it download 10 (or few or more) clips during bootup, but while playing any clips, is ROKU capable of go to the server and download new list of video clips to cache directory? I guess, what i am try to ask is it doable and is Roku is multi threaded ? I don't want the Roku to wait (display blank screen etc) while downloading new or next clip to be played
4. If internet connection is not available, roku keep playing from cache directory (in the event of rebooting i don't want to loose any previously downloaded content) until internet connection is up (how can i detect internet connection is up or down before trying to reach the server? Also i need to consider the case Internet is up but the server is down case too)
5. Assuming Roku can periodically connects to my server, Is it possible for me to force reboot the app or Roku device remotely? if so how?
If someone could shed some code would be very helpful.
Thanks a million in advance for your time.
Nithyaak