Just popping in ![Just popping in](https://www.amigans.net/uploads/rank3e632f95e81ca.gif)
Joined: 2022/8/29 16:13 Last Login
: Yesterday 9:38
From The Netherlands
Group:
Registered Users
|
Bummer. I made an error in the script again, so it wasn't working anymore with emotion.
Here is the hopefully final version. /* */ /* videoplayer.rexx */ /* usage: rx videoplayer.rexx <url> <app> silent */ /* <app> can be dv or emo. */ /* when no <app> option is entered, default app is dvplayer */ /* with silent option, there is no curl cli ouput. */ /* */ options results parse arg url app silence if app="silent" then silence="silent" if app~="emo" then app="dv" if app="emo" then appfile="APPDIR:Emotion" if app="dv" then appfile="APPDIR:DvPlayer" if silence="silent" then opt="-s" else opt="" address command "c:curl" url opt "-o ram:videoplayback" if app="emo" then do appfile "ram:videoplayback" end else do "C:wbrun" appfile "ram:videoplayback" end
checklist: CALL AddLib('rexxsupport.library',0,-30,0) check="" do until check=0 wait 2 /* must be wait 4 on sam460 */ /* say showlist('W','DVPlayer GUI')*/ check=showlist('W','DVPlayer GUI') end
trash: wait 2 /* must be wait 4 on sam460 */ "delete ram:videoplayback" exit
|