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
  • flash.net.NetStreamPlayTransitions for Swift

    See more

    Declaration

    Swift

    public enum PlayTransition : String
  • Undocumented

    See more

    Declaration

    Swift

    public struct PlayOption : CustomDebugStringConvertible
  • The type of publish options.

    See more

    Declaration

    Swift

    public enum HowToPublish : String
  • The default audio bitrate for RTMPStream.

    Declaration

    Swift

    public static let defaultAudioBitrate: UInt32
  • The default video bitrate for RTMPStream.

    Declaration

    Swift

    public static let defaultVideoBitrate: UInt32
  • Specifies the delegate of the RTMPStream.

    Declaration

    Swift

    public weak var delegate: RTMPStreamDelegate?
  • 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 }
  • The number of frames per second being displayed.

    Declaration

    Swift

    @objc
    public private(set) dynamic var currentFPS: UInt16 { get }
  • Specifies the controls sound.

    Declaration

    Swift

    public var soundTransform: SoundTransform { get set }
  • Incoming audio plays on the stream or not.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    open func send(handlerName: String, arguments: Any?...)
  • Undocumented

    Declaration

    Swift

    open func createMetaData() -> ASObject

IEventDispatcher