Just popping in
Joined: 2022/8/29 16:13 Last Login
: Today 9:13
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
Edited by Mozzerfan on 2024/9/8 9:04:46 Edited by Mozzerfan on 2024/9/8 9:07:38
|