# RTMP_STREAM_LIFE_CYCLE_TYPE (/zh-CN/api-reference/rtc/cpp-all-platforms/enum-rtmpstreamlifecycletype)

> For AI agents: see the complete documentation index at [llms.txt](/llms.txt).

<a id="enum_rtmpstreamlifecycletype__parameters"></a>

## 枚举值 [#枚举值]

<ParameterList>
<a id="rtmp_stream_life_cycle_bind2channel"></a>
<Parameter name="RTMP_STREAM_LIFE_CYCLE_BIND2CHANNEL">

（1）：绑定到频道的生命周期。如果所有主播离开频道，CDN 推流将在 30 秒后停止。

</Parameter>
<a id="rtmp_stream_life_cycle_bind2owner"></a>
<Parameter name="RTMP_STREAM_LIFE_CYCLE_BIND2OWNER">

（2）：绑定到 RTMP 流拥有者的生命周期。如果拥有者离开频道，CDN 推流将立即停止。

</Parameter>
</ParameterList>
