Skip to content

Commit

Permalink
fix the issue of not sending metadata.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 15, 2024
1 parent 24fa43f commit 788dc91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/RTMP/RTMPStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -376,11 +376,11 @@ public actor RTMPStream {
}
info.resourceName = name
howToPublish = type
outgoing.startRunning()
startedAt = .init()
metadata = makeMetadata()
try? send("@setDataFrame", arguments: "onMetaData", metadata)
readyState = .publishing
try? send("@setDataFrame", arguments: "onMetaData", metadata)
outgoing.startRunning()
Task {
for await audio in outgoing.audioOutputStream where outgoing.isRunning {
append(audio.0, when: audio.1)
Expand Down

0 comments on commit 788dc91

Please sign in to comment.