diff --git a/README.md b/README.md
index abe52eb..cd721c4 100644
--- a/README.md
+++ b/README.md
@@ -33,22 +33,24 @@ if __name__ == '__main__':
```
### Env Variables
-> :bulb: Environment variables can be loaded from any file.
-> Defaults to `.env` (_set the env var `env_file` to the filename_)
+> :bulb: Environment variables can be loaded from any file. _Defaults to `.env`_
+> Set the env var `env_file` to the filename to use custom `.env` files
**Mandatory**
- **USERNAME**: Any username of choice.
- **PASSWORD**: Any password of choice.
-- **VIDEO_SOURCE**: Source path for `.mp4` files.
+- **VIDEO_SOURCE**: Source path for video files.
> :bulb: Files starting with `_` _(underscore)_ will be ignored
**Optional**
- **VIDEO_HOST**: IP address to host the video. Defaults to `127.0.0.1`
- **VIDEO_PORT**: Port number to host the application. Defaults to `8000`
+- **FILE_FORMATS**: Sequence of supported video file formats. Defaults to `(.mp4, .mov)`
- **WORKERS**: Number of workers to spin up the `uvicorn` server. Defaults to `1`
- **WEBSITE**: Website to add to CORS configuration. _Required only if tunneled via CDN_
- **AUTO_THUMBNAIL**: Boolean flag to auto generate thumbnail images for preview. Defaults to `True`
- **SCAN_INTERVAL**: Interval in seconds to scan `VIDEO_SOURCE` in the background. Defaults traditional scan at run time.
+- **NGROK_TOKEN**: Ngrok token to initiate tunneling via public endpoint.
> :bulb: When `SCAN_INTERVAL` is set to `None`, `VIDEO_SOURCE` will be scanned in real time whenever the user
> loads the landing page. Setting a `SCAN_INTERVAL` will scan the `VIDEO_SOURCE` in background and reduce runtime
> delays in case of complex directory structure.
diff --git a/docs/README.html b/docs/README.html
index 003e008..d1dc5f2 100644
--- a/docs/README.html
+++ b/docs/README.html
@@ -77,14 +77,14 @@
-:bulb: Environment variables can be loaded from any file. -Defaults to
+.env
(set the env varenv_file
to the filename):bulb: Environment variables can be loaded from any file. Defaults to
.env
+Set the env varenv_file
to the filename to use custom.env
filesMandatory
USERNAME: Any username of choice.
- -
PASSWORD: Any password of choice.
- +
VIDEO_SOURCE: Source path for
.mp4
files.VIDEO_SOURCE: Source path for video files.
:bulb: Files starting with
@@ -93,10 +93,12 @@_
(underscore) will be ignoredEnv Variables
VIDEO_HOST: IP address to host the video. Defaults to
127.0.0.1
+ VIDEO_PORT: Port number to host the application. Defaults to
8000
FILE_FORMATS: Sequence of supported video file formats. Defaults to
(.mp4, .mov)
WORKERS: Number of workers to spin up the
uvicorn
server. Defaults to1
WEBSITE: Website to add to CORS configuration. Required only if tunneled via CDN
AUTO_THUMBNAIL: Boolean flag to auto generate thumbnail images for preview. Defaults to
True
+ SCAN_INTERVAL: Interval in seconds to scan
VIDEO_SOURCE
in the background. Defaults traditional scan at run time.NGROK_TOKEN: Ngrok token to initiate tunneling via public endpoint.
:bulb: When
SCAN_INTERVAL
is set toNone
,VIDEO_SOURCE
will be scanned in real time whenever the user diff --git a/docs/README.md b/docs/README.md index abe52eb..cd721c4 100644 --- a/docs/README.md +++ b/docs/README.md @@ -33,22 +33,24 @@ if __name__ == '__main__': ``` ### Env Variables -> :bulb: Environment variables can be loaded from any file. -> Defaults to `.env` (_set the env var `env_file` to the filename_) +> :bulb: Environment variables can be loaded from any file. _Defaults to `.env`_
+> Set the env var `env_file` to the filename to use custom `.env` files **Mandatory** - **USERNAME**: Any username of choice. - **PASSWORD**: Any password of choice. -- **VIDEO_SOURCE**: Source path for `.mp4` files. +- **VIDEO_SOURCE**: Source path for video files. > :bulb: Files starting with `_` _(underscore)_ will be ignored **Optional** - **VIDEO_HOST**: IP address to host the video. Defaults to `127.0.0.1` - **VIDEO_PORT**: Port number to host the application. Defaults to `8000` +- **FILE_FORMATS**: Sequence of supported video file formats. Defaults to `(.mp4, .mov)` - **WORKERS**: Number of workers to spin up the `uvicorn` server. Defaults to `1` - **WEBSITE**: Website to add to CORS configuration. _Required only if tunneled via CDN_ - **AUTO_THUMBNAIL**: Boolean flag to auto generate thumbnail images for preview. Defaults to `True` - **SCAN_INTERVAL**: Interval in seconds to scan `VIDEO_SOURCE` in the background. Defaults traditional scan at run time. +- **NGROK_TOKEN**: Ngrok token to initiate tunneling via public endpoint. > :bulb: When `SCAN_INTERVAL` is set to `None`, `VIDEO_SOURCE` will be scanned in real time whenever the user > loads the landing page. Setting a `SCAN_INTERVAL` will scan the `VIDEO_SOURCE` in background and reduce runtime > delays in case of complex directory structure. diff --git a/docs/_sources/README.md.txt b/docs/_sources/README.md.txt index abe52eb..cd721c4 100644 --- a/docs/_sources/README.md.txt +++ b/docs/_sources/README.md.txt @@ -33,22 +33,24 @@ if __name__ == '__main__': ``` ### Env Variables -> :bulb: Environment variables can be loaded from any file. -> Defaults to `.env` (_set the env var `env_file` to the filename_) +> :bulb: Environment variables can be loaded from any file. _Defaults to `.env`_
+> Set the env var `env_file` to the filename to use custom `.env` files **Mandatory** - **USERNAME**: Any username of choice. - **PASSWORD**: Any password of choice. -- **VIDEO_SOURCE**: Source path for `.mp4` files. +- **VIDEO_SOURCE**: Source path for video files. > :bulb: Files starting with `_` _(underscore)_ will be ignored **Optional** - **VIDEO_HOST**: IP address to host the video. Defaults to `127.0.0.1` - **VIDEO_PORT**: Port number to host the application. Defaults to `8000` +- **FILE_FORMATS**: Sequence of supported video file formats. Defaults to `(.mp4, .mov)` - **WORKERS**: Number of workers to spin up the `uvicorn` server. Defaults to `1` - **WEBSITE**: Website to add to CORS configuration. _Required only if tunneled via CDN_ - **AUTO_THUMBNAIL**: Boolean flag to auto generate thumbnail images for preview. Defaults to `True` - **SCAN_INTERVAL**: Interval in seconds to scan `VIDEO_SOURCE` in the background. Defaults traditional scan at run time. +- **NGROK_TOKEN**: Ngrok token to initiate tunneling via public endpoint. > :bulb: When `SCAN_INTERVAL` is set to `None`, `VIDEO_SOURCE` will be scanned in real time whenever the user > loads the landing page. Setting a `SCAN_INTERVAL` will scan the `VIDEO_SOURCE` in background and reduce runtime > delays in case of complex directory structure. diff --git a/docs/genindex.html b/docs/genindex.html index 6641e56..cee5e69 100644 --- a/docs/genindex.html +++ b/docs/genindex.html @@ -138,6 +138,8 @@G
+
- get_iter() (in module pystream.models.squire) +
- get_local_ip() (in module pystream.utils)
- get_public_ip() (in module pystream.utils) @@ -363,6 +365,8 @@
R