# ngx\_http\_f4f\_module

* [示例配置](/nginx-docs/he-xin-gong-neng/http/ngx_http_f4f_module.md#example_configuration)
* [指令](/nginx-docs/he-xin-gong-neng/http/ngx_http_f4f_module.md#directives)
  * [f4f](/nginx-docs/he-xin-gong-neng/http/ngx_http_f4f_module.md#f4f)
  * [f4f\_buffer\_size](/nginx-docs/he-xin-gong-neng/http/ngx_http_f4f_module.md#f4f_buffer_size)

`ngx_http_f4f_module` 模块为 Adobe HTTP 动态流（HDS）提供服务端支持。

该模块以 `/videoSeg1-Frag1` 形式处理 HTTP 动态流请求，使用 `videoSeg1.f4x` 索引文件从 `videoSeg1.f4f` 文件中提取所需的片段。该模块是 Apache 的 Adobe f4f 模块（HTTP Origin Module）的替代品。

它需要通过 Adobe 的 f4fpackager 进行预处理，有关详细信息，请参阅相关文档。

> 此模块作为我们[商业订阅](http://nginx.com/products/?_ga=2.62027116.1975223854.1508572582-1890203964.1497190280)的一部分。

## 示例配置 <a href="#example_configuration" id="example_configuration"></a>

```
location /video/ {
    f4f;
    ...
}
```

## 指令 <a href="#directives" id="directives"></a>

### f4f

|       - | 说明       |
| ------: | -------- |
|  **语法** | **f4f**; |
|  **默认** | ——       |
| **上下文** | location |

开启针对 `location` 的模块处理。

### f4f\_buffer\_size

|       - | 说明                               |
| ------: | -------------------------------- |
|  **语法** | **f4f4f\_buffer\_sizef** `size`; |
|  **默认** | f4f\_buffer\_size 512k;          |
| **上下文** | http、server、location             |

设置用于读取 `.f4x` 索引文件的缓冲区的 `size` （大小）。

## 原文档

<http://nginx.org/en/docs/http/ngx_http_f4f_module.html>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docshome.gitbook.io/nginx-docs/he-xin-gong-neng/http/ngx_http_f4f_module.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
