HTTP Cache
The SmartMEDIA HTTP Cache (smhttpcache) service is intended for the prolonged storing of files in RAM with their simultaneous return over the HTTP protocol to a number of client apps. It is necessary for the low-latency streaming. The service does not support any authorization, so it is recommended to install it together with nginx or another web server.
Command Line Parameters
–help, -h
Print the help to the console and exit.
–version, -V
Print the version to the console and exit.
–config, -c
Default value: smpicker.json
The path to the configuration file.
Configuration File
The default location of the configuration file is: /opt/smartlabs/smartmedia/hlsRedirector/config/config.json
Basic Parameters
threads, integer
Default value: 4
The number of system threads for processing HTTPS connections.
interface, string
Default value: “0.0.0.0”
IP address for processing incoming HTTP connections.
port, integer
Default value: 3000
Port for processing incoming HTTP connections.
chunk_storage_time_sec, integer
Default value: 120
The storage time of media files in memory, in seconds.
Example Configuration
JSON |
{ “threads”:5, “interface”:“0.0.0.0”, “port”:3000, “chunk_storage_time_sec”:1200 } |