Playback of Video from Web Download In Plugin

Updates from the UAS are only triggered by changes being pushed to GitHub by the author. The update logic is essentially this:

- check for updates
  - are there any new commits on the GitHub repo since the last time an update for this channel was downloaded?
    - if yes, update
    - otherwise, nothing
To clarify your desired scenario...
You plan to include the video file within the plugin, so that new installs or updates will automatically have the video included? or, is this a video that the plugin itself downloads for later playback?
 
I'm curious to see the code you used to test with.

Mikedm139,

Sorry, I didn't respond to your request sooner on wanting to view my source code. I just now have it in a "workable" state to view on github. It does go out and download the files fine except it wants to wait on the thread to finish and causes a time out issue with the Roku and other devices. However, it will continue to download the file. The thread will finish and you can go on doing other things in the plugin (That is if you don't try to start a new download so it kills the thread). Except, I can't get it to update the json for tracking and info on the video downloading in the background. So, my issue is to be able to start the download update the json file and return to the user a comment about what's going on to the objectcontainer with out timeout and do this for multiple file downloads at the same time. AND all this for local playback...

Link to code: https://github.com/Joecowboy/MOVIE2K.bundle/blob/master/Contents/Services/URL/MOVIE2K/Modules/HostVideoDownload.py

UPDATE:  I have the threading issue worked out now.  It will actually now download multiple files without stepping on each other and return a status to the user what's going on.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.