Class StartStreaming.Stream

  • Enclosing class:
    StartStreaming

    public static class StartStreaming.Stream
    extends Object
    Special stream configuration. Please note: these won't be saved to OBS' configuration.
    • Constructor Detail

      • Stream

        public Stream()
    • Method Detail

      • setType

        public void setType​(String type)
        If specified ensures the type of stream matches the given type (usually 'rtmp_custom' or 'rtmp_common'). If the currently configured stream type does not match the given stream type, all settings must be specified in the settings object or an error will occur when starting the stream.
      • setMetadata

        public void setMetadata​(Object metadata)
        Adds the given object parameters as encoded query string parameters to the 'key' of the RTMP stream. Used to pass data to the RTMP service about the streaming. May be any String, Numeric, or Boolean field.
      • setSettings

        public void setSettings​(StreamSettings settings)
        Settings for the stream.