I have been working on a project on and off for about 3 weeks now. It seemed like a simple premise, but I just cannot get it to work based on the different behaviours the android phone (android 13) and a T95 (android 10) tv box. The end result would be a simple 1 page app on which 3 buttons would be listed, player 1, player 2 and player 3. Once a button was clicked, this would download a slide presentation that was in an mp4 format and to play onto a television. In order to allow google drive to immediately download versus having to click download on shared drive link, each link was incorporated with a google drive API-this has its limits I understand based on quotas, which I have recently requested to have increased. when the slide show has been updated once a month or so, I simply click on the drive file, file information, then manage versions to update the new slide show to the coded drive link within the app. the attached AIA file does work in downloading onto an android phone, although player 1 does get a 602 activity starter error-I am aware that this is because there are two declared start activities, rather than just 1 that should be at the end of the block. by using this second activity starter (right after i call the activity starter data URI) this file “streams” into the default player-never saving on the phone, but allows the slide show to play onto the television both via the android phone and the android tv box. This method requires several steps for ebthe end user, so i am trying to simplify it. player two: when clicked from phone, it does give an errors-presumably due to the player attempting to player right away, but if i click the back button, once the file has downloaded/saved within the ASD directory, it does play. the file name is changed accordingly in the ASD download folder, but when i replace the file on drive with a new file, this does not appear to download or delete the existing name but instead plays the first named file (trying to avoid player two(2), player two (3) duplicates.) wondering if i should use a global URI? i have also tried to add the “when asd download complete” block, then adding the android.intent.action.VIEW, file does download, but does not open and play the slide show. I have also tried players within Kodular in the app, but this shows a browser window while the slide show is playing.
the “test” aia does work on phone but gives video problem, do not support
test.aia (47.6 KB)
These blocks do work for both android phone and television, but require the user to exit the app to the player, then to reselect the app within the tv loader, then to click on player one, player two, etc.
Lastly, I am aware that all of this can be done within firebase, but at this point this is a challenge that i wish to learn from