Hi all,
I've developed with B4J, a custom video encoder to be used to encode videos that Arduino, ESP8266 and ESP32 can read as fast
possible from micro SD card, play the video on a TFT screen and play audio in sync with video.
This my encoder accept a series of images, and convert them to a single custom video file.
The encoder show the video while encoder process create the it.
All this works and on Arduino side, I can read the file header and all video data and play them.
My problem now is that, because this is a custom format, Windows, Linux and other OS don't see them
as video files and they cannot be played on desktop side.
So now I want to develop a video player to open these files.
Here there are things I do not know, B4J apps accept arguments when launched, but how to extract the path ?
I explain better, on desktop I want to double click my file, then my player open with that file,
so at least I need the file path passed, in a way I can open the file and manage to play it.
Note that this should be done without an additional bat file, just double click on a file in any position to launch the player with it.
I want to ask if it is that possible, and if yes what is the best approach to do it.
Many thanks
I've developed with B4J, a custom video encoder to be used to encode videos that Arduino, ESP8266 and ESP32 can read as fast
possible from micro SD card, play the video on a TFT screen and play audio in sync with video.
This my encoder accept a series of images, and convert them to a single custom video file.
The encoder show the video while encoder process create the it.
All this works and on Arduino side, I can read the file header and all video data and play them.
My problem now is that, because this is a custom format, Windows, Linux and other OS don't see them
as video files and they cannot be played on desktop side.
So now I want to develop a video player to open these files.
Here there are things I do not know, B4J apps accept arguments when launched, but how to extract the path ?
B4X:
Sub AppStart (Form1 As Form, Args() As String)
I explain better, on desktop I want to double click my file, then my player open with that file,
so at least I need the file path passed, in a way I can open the file and manage to play it.
Note that this should be done without an additional bat file, just double click on a file in any position to launch the player with it.
I want to ask if it is that possible, and if yes what is the best approach to do it.
Many thanks
Last edited: