Periodically play a video and switch apps
Posted: 01 Apr 2016 20:03
Hi all,
I'm trying to achieve the following task:
* Launch a particular app (which shows status of something, not important what it is for this discussion)
(This action is already working under Automagic.)
* Loop start....
* Periodically launch a video player to play an 80-second video
* When the video's done, bring the status app to the front for, say, 80 seconds
* End loop
I can probably do this with a time delay loop in Automagic; but I'm not familiar with scripting
in android, so I don't know how to launch a video player to play a specific local video file.
Does anyone have any recommendations of which video player app has a command line
interface that would let me do this?
If so, how would I compose the Exexcute Command action? Or is there a different action
that would work better?
And how would I ensure that I don't get multiple instances of the video player? Does that
depend on the app's architecture? Or on how it's invoked from Automagic?
And is there an action which brings a running app to the front?
Android version is 4.1.2.
Thanks for any pointers!
Dan
I'm trying to achieve the following task:
* Launch a particular app (which shows status of something, not important what it is for this discussion)
(This action is already working under Automagic.)
* Loop start....
* Periodically launch a video player to play an 80-second video
* When the video's done, bring the status app to the front for, say, 80 seconds
* End loop
I can probably do this with a time delay loop in Automagic; but I'm not familiar with scripting
in android, so I don't know how to launch a video player to play a specific local video file.
Does anyone have any recommendations of which video player app has a command line
interface that would let me do this?
If so, how would I compose the Exexcute Command action? Or is there a different action
that would work better?
And how would I ensure that I don't get multiple instances of the video player? Does that
depend on the app's architecture? Or on how it's invoked from Automagic?
And is there an action which brings a running app to the front?
Android version is 4.1.2.
Thanks for any pointers!
Dan