SRTStream

public final class SRTStream : IOStream

An object that provides the interface to control a one-way channel over a SRTConnection.

  • Creates a new stream object.

    Declaration

    Swift

    public init(connection: SRTConnection)
  • Sends streaming audio, vidoe and data message from client.

    Declaration

    Swift

    public func publish(_ name: String? = "")
  • Playback streaming audio and video message from server.

    Declaration

    Swift

    public func play(_ name: String? = "")
  • Stops playing or publishing and makes available other uses.

    Declaration

    Swift

    public func close()
  • Declaration

    Swift

    override public func readyStateDidChange(to readyState: IOStream.ReadyState)