直播活动状态和计费Live Event states and billing

在 Azure 媒体服务中,一旦直播活动的状态转换为正在运行,就会开始计费。In Azure Media Services, a Live Event begins billing as soon as its state transitions to Running. 若要停止对直播活动的计费,必须停止直播活动。To stop the Live Event from billing, you have to stop the Live Event.

直播活动上的 LiveEventEncodingType 设置为 Standard 或 Premium1080p 后,媒体服务就会自动关闭在输入源丢失 12 小时后仍处于正在运行状态但却没有实时输出运行的直播活动。When LiveEventEncodingType on your Live Event is set to Standard or Premium1080p, Media Services auto shuts off any Live Event that is still in the Running state 12 hours after the input feed is lost, and there are no Live Outputs running. 但是,在直播活动处于正在运行状态的时间段内,仍会进行计费。However, you will still be billed for the time the Live Event was in the Running state.

StatesStates

直播活动可能会处于以下任一状态。The Live Event can be in one of the following states.

状态State 说明Description
已停止Stopped 这是直播活动在创建后的初始状态(除非设置了自动启动)。此状态下不会发生计费。This is the initial state of the Live Event after creation (unless autostart was set to true.) No billing occurs in this state. 在此状态下,可以更新直播活动属性,但不允许进行流式处理。In this state, the Live Event properties can be updated but streaming is not allowed.
正在启动Starting 正在启动直播活动并分配资源。The Live Event is being started and resources are being allocated. 此状态下不会发生计费。No billing occurs in this state. 此状态下不允许进行更新或流式处理。Updates or streaming are not allowed during this state. 如果发生错误,则直播活动会返回到“已停止”状态。If an error occurs, the Live Event returns to the Stopped state.
正在运行Running 已分配了直播活动资源,已生成了引入和预览 URL,并且能够接收实时流。The Live Event resources have been allocated, ingest and preview URLs have been generated, and it is capable of receiving live streams. 此时,计费处于活动状态。At this point, billing is active. 必须显式对直播活动资源调用停止操作才能停止进一步计费。You must explicitly call Stop on the Live Event resource to halt further billing.
正在停止Stopping 正在停止直播活动并解除预配资源。The Live Event is being stopped and resources are being de-provisioned. 此暂时性状态下不会发生计费。No billing occurs in this transient state. 此状态下不允许进行更新或流式处理。Updates or streaming are not allowed during this state.
正在删除Deleting 正在删除直播活动。The Live Event is being deleted. 此暂时性状态下不会发生计费。No billing occurs in this transient state. 此状态下不允许进行更新或流式处理。Updates or streaming are not allowed during this state.

后续步骤Next steps