RTMPStream

open class RTMPStream : NetStream
extension RTMPStream: EventDispatcherConvertible

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

  • Declaration

    Swift

    public enum Code : String
  • The type of publish options.

    See more

    Declaration

    Swift

    public enum HowToPublish : String
  • The NetStreamInfo object whose properties contain data.

    Declaration

    Swift

    public internal(set) var info: RTMPStreamInfo { get }
  • The object encoding (AMF). Framework supports AMF0 only.

    Declaration

    Swift

    public private(set) var objectEncoding: RTMPObjectEncoding { get }
  • Incoming audio plays on the stream or not.

    Declaration

    Swift

    public var receiveAudio: Bool { get set }
  • Incoming video plays on the stream or not.

    Declaration

    Swift

    public var receiveVideo: Bool { get set }
  • Pauses playback or publish of a video stream or not.

    Declaration

    Swift

    public var paused: Bool { get set }
  • Creates a new stream.

    Declaration

    Swift

    public init(connection: RTMPConnection)
  • Plays a live stream from RTMPServer.

    Declaration

    Swift

    public func play(_ arguments: Any?...)
  • Seeks the keyframe.

    Declaration

    Swift

    public func seek(_ offset: Double)
  • Sends streaming audio, vidoe and data message from client.

    Declaration

    Swift

    public func publish(_ name: String?, type: RTMPStream.HowToPublish = .live)
  • Stops playing or publishing and makes available other uses.

    Declaration

    Swift

    public func close()
  • Sends a message on a published stream to all subscribing clients.

    Declaration

    Swift

    public func send(handlerName: String, arguments: Any?...)
  • Creates flv metadata for a stream.

    Declaration

    Swift

    open func makeMetaData() -> ASObject
  • Declaration

    Swift

    override public func readyStateWillChange(to readyState: NetStream.ReadyState)
  • Declaration

    Swift

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

IEventDispatcher