nimeet 文档中心
English

Media Push

构建时从公开 REST 接口定义的 `media-push` 标签生成:方法、路径、参数、请求体、响应与 curl。

由公开 REST 接口定义生成

版本 v1.1.0 · 更新于 2026-10-26 · 修订 1

分组概览

本页由公开 REST 接口定义在构建时生成:标签 media-push,共 5 个操作(全量 189 个)。鉴权、信封与分页约定见 REST API 总览.

方法路径摘要
GET/v1/projects/{appId}/rtmp-convertersList the converters of a project
POST/{region}/v1/projects/{appId}/rtmp-convertersCreate a Media Push converter
GET/{region}/v1/projects/{appId}/rtmp-converters/{converterId}Get the streaming status of a converter
PATCH/{region}/v1/projects/{appId}/rtmp-converters/{converterId}Update a converter
DELETE/{region}/v1/projects/{appId}/rtmp-converters/{converterId}Destroy a converter

操作详情

GET /v1/projects/{appId}/rtmp-converters

List the converters of a project

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
appIdpath是stringpattern ^[a-f0-9]{32}$
cursorquerystring
channelquerystring

响应

状态码说明 / schema
200converters — object{ success, data }
400Invalid parameter — Error
401Missing/invalid credentials — Error
403Banned or service not enabled — Error
404Resource not found — Error
415Content-Type must be application/json — Error
429Quota exceeded — Error

调用示例

bash
curl -s -X GET "$NIMEET_API_BASE/v1/projects/appId/rtmp-converters?cursor=value&channel=value" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"

POST /{region}/v1/projects/{appId}/rtmp-converters

Create a Media Push converter

Creates a converter that pushes one RTC channel to a CDN address. Use transcodeOptions for the transcoded mode and rawOptions for passthrough; the converter starts connecting and keeps pushing until it is destroyed or idles out.

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
regionpath是enum(cn | ap | na | eu)
appIdpath是stringpattern ^[a-f0-9]{32}$
regionHintIpquerystringformat ipv4

请求体

字段类型必填说明
converterobject{ name, rtmpUrl, idleTimeout, jitterBufferSizeMs, transcodeOptions, rawOptions }是
json
{
  "converter": {
    "rtmpUrl": "string",
    "name": "demo",
    "idleTimeout": 1
  }
}

响应

状态码说明 / schema
200converter created — object{ converter, fields }
400Invalid parameter — Error
401Missing/invalid credentials — Error
403Banned or service not enabled — Error
404Resource not found — Error
409a converter with the same name already exists — Error
415Content-Type must be application/json — Error
429Quota exceeded — Error

调用示例

bash
curl -s -X POST "$NIMEET_API_BASE/cn-shanghai/v1/projects/appId/rtmp-converters?regionHintIp=value" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
  -H "Content-Type: application/json" \
  -d '{"converter":{"rtmpUrl":"string","name":"demo","idleTimeout":1}}'

GET /{region}/v1/projects/{appId}/rtmp-converters/{converterId}

Get the streaming status of a converter

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
regionpath是enum(cn | ap | na | eu)
appIdpath是stringpattern ^[a-f0-9]{32}$
converterIdpath是string长度 0..128

响应

状态码说明 / schema
200converter — object
400Invalid parameter — Error
401Missing/invalid credentials — Error
403Banned or service not enabled — Error
404Resource not found — Error
415Content-Type must be application/json — Error
429Quota exceeded — Error

调用示例

bash
curl -s -X GET "$NIMEET_API_BASE/cn-shanghai/v1/projects/appId/rtmp-converters/converterId" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"

PATCH /{region}/v1/projects/{appId}/rtmp-converters/{converterId}

Update a converter

Updates the push destination, the transcoding options or the jitter buffer. Name, idle timeout, the RTC channel and the audio/codec profile are immutable, as documented.

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
regionpath是enum(cn | ap | na | eu)
appIdpath是stringpattern ^[a-f0-9]{32}$
converterIdpath是string长度 0..128
sequencequeryinteger>= 0

请求体

字段类型必填说明
converterobject{ rtmpUrl, jitterBufferSizeMs, transcodeOptions, rawOptions }
json
{
  "converter": {
    "rtmpUrl": "string",
    "jitterBufferSizeMs": 1,
    "transcodeOptions": {}
  }
}

响应

状态码说明 / schema
200converter updated — object{ converter, fields }
400Invalid parameter — Error
401Missing/invalid credentials — Error
403Banned or service not enabled — Error
404Resource not found — Error
415Content-Type must be application/json — Error
429Quota exceeded — Error

调用示例

bash
curl -s -X PATCH "$NIMEET_API_BASE/cn-shanghai/v1/projects/appId/rtmp-converters/converterId?sequence=0" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC" \
  -H "Content-Type: application/json" \
  -d '{"converter":{"rtmpUrl":"string","jitterBufferSizeMs":1,"transcodeOptions":{}}}'

DELETE /{region}/v1/projects/{appId}/rtmp-converters/{converterId}

Destroy a converter

鉴权:项目凭证(customerId:customerSecret 的 Base64)

参数

名称位置必填类型说明
regionpath是enum(cn | ap | na | eu)
appIdpath是stringpattern ^[a-f0-9]{32}$
converterIdpath是string长度 0..128

响应

状态码说明 / schema
200the request succeeded; the response body is empty
400Invalid parameter — Error
401Missing/invalid credentials — Error
403Banned or service not enabled — Error
404Resource not found — Error
415Content-Type must be application/json — Error
429Quota exceeded — Error

调用示例

bash
curl -s -X DELETE "$NIMEET_API_BASE/cn-shanghai/v1/projects/appId/rtmp-converters/converterId" \
  -H "Authorization: Basic $NIMEET_CUSTOMER_BASIC"

本分组用到的 Schema

Error — object{ code, message, reason, sdkCode, details }
字段类型必填说明
codestring是stable machine code, see errors.json
messagestring是
reasonstring
sdkCodeintegerAgora-aligned client error number
detailsobject

本页由文档构建流水线生成 · 2026-10-31 01:24:02 UTC · 文档中心 v1.1.0.

内容依据公开 API 定义.

ni-meet 是自建 RTC PaaS,媒体面基于 LiveKit(Apache-2.0),并与声网 API 兼容。