Skip to content

Commit

Permalink
refs #1410 add metadata to duration.
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed May 19, 2024
1 parent ef740f4 commit e9d2ed4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Sources/RTMP/RTMPStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,9 @@ open class RTMPStream: IOStream {

/// Creates flv metadata for a stream.
open func makeMetaData() -> ASObject {
var metadata: [String: Any] = [:]
var metadata: [String: Any] = [
"duration": 0
]
if !videoInputFormats.isEmpty {
metadata["width"] = videoSettings.videoSize.width
metadata["height"] = videoSettings.videoSize.height
Expand Down

0 comments on commit e9d2ed4

Please sign in to comment.