Skip to content

Commit

Permalink
refs #1594
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Oct 8, 2024
1 parent 3064847 commit efd2a76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Sources/RTMP/RTMPStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -214,14 +214,14 @@ public actor RTMPStream {
private var dataTimestamps: [String: Date] = .init()
private var audioTimestamp: RTMPTimestamp<AVAudioTime> = .init()
private var videoTimestamp: RTMPTimestamp<CMTime> = .init()
private var requestTimeout: UInt64 = RTMPConnection.defaultRequestTimeout
private var requestTimeout = RTMPConnection.defaultRequestTimeout
private var expectedResponse: Code?
private var bitrateStorategy: (any HKStreamBitRateStrategy)?
private var statusContinuation: AsyncStream<RTMPStatus>.Continuation?
private(set) var id: UInt32 = RTMPStream.defaultID
private lazy var incoming = HKIncomingStream(self)
private lazy var outgoing = HKOutgoingStream()
private weak var connection: RTMPConnection?
private var bitrateStorategy: (any HKStreamBitRateStrategy)?

private var audioFormat: AVAudioFormat? {
didSet {
Expand Down Expand Up @@ -267,6 +267,7 @@ public actor RTMPStream {
public init(connection: RTMPConnection, fcPublishName: String? = nil) {
self.connection = connection
self.fcPublishName = fcPublishName
self.requestTimeout = connection.requestTimeout
Task {
await connection.addStream(self)
if await connection.connected {
Expand Down

0 comments on commit efd2a76

Please sign in to comment.