Interface StreamSession.Builder

    • Method Detail

      • channel

        StreamSession.Builder channel​(Channel channel)

        The properties of the channel at the time of going live.

        Parameters:
        channel - The properties of the channel at the time of going live.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • endTime

        StreamSession.Builder endTime​(Instant endTime)

        Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL.

        Parameters:
        endTime - Time when the channel went offline. This is an ISO 8601 timestamp; note that this is returned as a string. For live streams, this is NULL.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ingestConfiguration

        StreamSession.Builder ingestConfiguration​(IngestConfiguration ingestConfiguration)

        The properties of the incoming RTMP stream.

        Note: ingestConfiguration is deprecated in favor of ingestConfigurations but retained to ensure backward compatibility. If multitrack is not enabled, ingestConfiguration and ingestConfigurations contain the same data, namely information about track0 (the sole track). If multitrack is enabled, ingestConfiguration contains data for only the first track (track0) and ingestConfigurations contains data for all tracks.

        Parameters:
        ingestConfiguration - The properties of the incoming RTMP stream.

        Note: ingestConfiguration is deprecated in favor of ingestConfigurations but retained to ensure backward compatibility. If multitrack is not enabled, ingestConfiguration and ingestConfigurations contain the same data, namely information about track0 (the sole track). If multitrack is enabled, ingestConfiguration contains data for only the first track (track0) and ingestConfigurations contains data for all tracks.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • ingestConfigurations

        StreamSession.Builder ingestConfigurations​(IngestConfigurations ingestConfigurations)

        The properties of the incoming RTMP stream. If multitrack is enabled, ingestConfigurations contains data for all tracks; otherwise, it contains data only for track0 (the sole track).

        Parameters:
        ingestConfigurations - The properties of the incoming RTMP stream. If multitrack is enabled, ingestConfigurations contains data for all tracks; otherwise, it contains data only for track0 (the sole track).
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • recordingConfiguration

        StreamSession.Builder recordingConfiguration​(RecordingConfiguration recordingConfiguration)

        The properties of recording the live stream.

        Parameters:
        recordingConfiguration - The properties of recording the live stream.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • startTime

        StreamSession.Builder startTime​(Instant startTime)

        Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.

        Parameters:
        startTime - Time when the channel went live. This is an ISO 8601 timestamp; note that this is returned as a string.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • streamId

        StreamSession.Builder streamId​(String streamId)

        Unique identifier for a live or previously live stream in the specified channel.

        Parameters:
        streamId - Unique identifier for a live or previously live stream in the specified channel.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • truncatedEvents

        StreamSession.Builder truncatedEvents​(Collection<StreamEvent> truncatedEvents)

        List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.

        Parameters:
        truncatedEvents - List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • truncatedEvents

        StreamSession.Builder truncatedEvents​(StreamEvent... truncatedEvents)

        List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.

        Parameters:
        truncatedEvents - List of Amazon IVS events that the stream encountered. The list is sorted by most recent events and contains up to 500 events. For Amazon IVS events, see Using Amazon EventBridge with Amazon IVS.
        Returns:
        Returns a reference to this object so that method calls can be chained together.