跳到主要内容

Event Lifecycle and Hosting

A live streaming event is managed as a state machine. The below diagram illustrates the status transitions of a livestream driven by control operations.

To create and edit a livestream, using the following APIs:

Query ParametersRequiredDescription
nameOptionalName of the livestream
custom_idOptionalCustom ID for the livestream
typeRequiredType of the livestream:
  • LIVE_TYPE_LIVE: Standard livestream that required live source ingestion
  • LIVE_TYPE_SIMULIVE: Simulive that utilizes a pre-recorded video for live broadcasting
  • broadcast_modeRequiredType of the broadcast mode:
  • BROADCAST_MODE_TRADITIONAL_LIVE: Standard mode that only allows viewers to watch the current moment of the live streaming
  • BROADCAST_MODE_DVR: DVR (Start-Over) mode that enables viewers to rewind or start from the beginning during the live streaming until it ends
  • BROADCAST_MODE_PLAYBACK: Playback mode that directly utilizes a standard VOD, enabling viewers to have full control over progress
  • resolutionRequiredResolution for the livestream broadcasting
    securityRequiredContent protection settings for the live streaming
    ull_enabledRequiredSet to true if you would like to enable the ultra-low lantency

    To host and manage the status of your livestream, refer to the following guide and APIs:

    StateDescription
    ScheduledThis is the initial state of an event when it is scheduled but not yet ready for streaming.
    PreparingWhen the scheduled event is less than 12 hours away, the status changes to "Preparing." At this point, the infrastructure is being set up for the event.
    Wait for PreviewAfter the infrastructure is set up, the status changes to "Wait for Preview." The streaming server has been built-up but is still not open for pushing signals.
    PreviewPOST /bv/cms/v1/lives/{id}:preview
    When the server is ready, the status changes to "Preview," indicating that the event can start sending signals and rehearsing.
    LivePOST /bv/cms/v1/lives/{id}:start
    After the "Go Live" action is triggered, the event is live, and the status changes to "Live."
    EncodingOnce the live event has ended, the content is transcoded to VOD by BlendVision encoding service, and the status changes to "Encoding."
    VOD ReadyWhen the VOD is ready to be broadcast, the status changes to "VOD Ready," indicating it is waiting for the scheduled time.
    VODOnce the transcoding has been completed and the live event can be played as VOD content, the status changes to "VOD."
    EndPOST /bv/cms/v1/lives/{id}:end
    When the live-only event ends or the VOD of a Live to VOD event ends, the status changes to "Live END."
    ClosedPOST /bv/cms/v1/lives/{id}:cancel
    When the event is canceled or successfully ended, the status changes to "Closed," and the channel can be re-opened and recreated.
    Archived POST /bv/cms/v1/lives/{id}:archive
    When the channel is archived, the status changes to "Archived."