FileElement
This element allows serving of media (files) from a directory. Here are the parameters for configuring such an element:
- string media_type_
- The expected media type to be received (can be one of: 'aac', 'mp3', 'flv', 'raw')
- string home_dir_
- The directory to be exported, under the server's media storage directory, given by -base_media_dir flag. E.g. if -base_media_dir=/media, to export /media/archive, you would set home_dir_=media
- string file_pattern_
- Export only files that match this regular expression (e.g. use \.flv$ for all .flv files)
- optional string default_index_file_
- The name of an index file to serve if a request is made for a directory (e.g. index.html) (Default: "")
- optional bool disable_seeks_
- If true, we disable seeking inside files served by this element (Default: false)
- optional int max_read_ahead_ms_
- FileElement tries to maintain the file that we read for media with at most this much time ahead (Default: 2000)
- optional int min_read_ahead_ms_
- FileElement try to keep this much buffer of the file read into memory (Default: 1500, or 3/4 of max_read_ahead_ms_)
