I do it from memory so sorry for mistakes:
I - do it from this tutorial:
https://github.com/ncw/rclone/wiki/rclone-on-Android-with-Termux
1.Android - install termux
2.apt update
apt install golang git
-bash-4.4$ export GOPATH=pwd
/go
-bash-4.4$ mkdir go
go get -u -v github.com/ncw/rclone
3.go into go/src/github.com/ncw/
rm -rf rclone
apt install git
git clone --branch serve https://github.com/ncw/rclone.git --single-branch
apt install nano
nano rclone/cmd/serve/serve.go
find line 20
there is
bindAddress = "localhost:8080"
remove localhost
so it will be
bindAddress = ":8080"
(you dont have to do it, but it is for binding on all interfaces)
find line 65 and 66
replace 10 to 999999999 so it will be
from
ReadTimeout: 10 * time.Second,
-
WriteTimeout: 10 * time.Second,
to
ReadTimeout: 999999999 * time.Second,
-
WriteTimeout: 999999999 * time.Second,
run
go build -v
it will make rclone executable with serve lets call it rclone_s
(remember about chmod+x if smth does not work)
4.
run rclone_s --config=yourconfig.conf serve gdrive:
open chrome or other browser to http://localhost:8080
and now you have all your files in direct http link.
Video seeking does not work, but download is very fast.
later pkill rclone