How to launch the app using the command line? Such like VLC Player
ltDino opened this issue · comments
I need to play video
You can play videos from inside a-Shell using the command "play" (as in "play myVideo.mp4"). It will even allow a Picture-in-Picture player.
If that's not enough, you can launch many apps using their url scheme: "open shortcuts://" will open the Shortcuts app. Likewise, "open vlc://" will open VLC. You'll need to experiment a bit to find how to give a local filename (I didn't find it is quick tests).
Over on Discord, someone suggested: open vlc-x-callback://x-callback-url/stream?url=file://$PWD/foo.mp4
where $PWD
is the directory where VLC stores its files. See: https://wiki.videolan.org/Documentation:IOS/#x-callback-url
Can you add the vlc command above as a predefined a-Shell command? Like 'vlcplay myVideo.mp4'? And if Vlc is not installed, it should redirect to the app store vlc page:
https://apps.apple.com/us/app/vlc-media-player/id650377962