Skip to content

Commit

Permalink
Update RTMPStream.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
shogo4405 committed Sep 10, 2023
1 parent be2726e commit b20ec23
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 10 deletions.
8 changes: 1 addition & 7 deletions HaishinKit.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -743,15 +743,12 @@
29B876571CD70A7900FC07DA /* AudioCodec.swift */,
BC44A1A823D31E92002D4297 /* AudioCodecRingBuffer.swift */,
BC7C56B6299E579F00C41A9B /* AudioCodecSettings.swift */,
29B876591CD70A7900FC07DA /* VideoCodec.swift */,
BC7C56BA299E595000C41A9B /* VideoCodecSettings.swift */,
BC4914A128DDD33D009E2DF6 /* VTSessionConvertible.swift */,
BC4914B528DEC2FE009E2DF6 /* VTSessionMode.swift */,
BC4914A528DDD367009E2DF6 /* VTSessionOption.swift */,
BC4914B128DDFE31009E2DF6 /* VTSessionOptionKey.swift */,
29B876591CD70A7900FC07DA /* VideoCodec.swift */,
BC7C56BA299E595000C41A9B /* VideoCodecSettings.swift */,
BC7C56BE299FC38D00C41A9B /* VideoSize.swift */,
);
path = Codec;
sourceTree = "<group>";
Expand Down Expand Up @@ -986,19 +983,16 @@
29798E5A1CE60E5300F5CBD0 /* Tests */ = {
isa = PBXGroup;
children = (
29798E5D1CE60E5300F5CBD0 /* Info.plist */,
295018211FFA1C9D00358E10 /* CMAudioSampleBufferTestUtil.swift */,
294637A71EC89BC9008EEC71 /* Config.swift */,
291C2AD11CE9FF3E006F042B /* Asset */,
295018191FFA196800358E10 /* Codec */,
291C2AD21CE9FF48006F042B /* Core */,
BC03945D2AA8AFDD006EDE38 /* Extension */,
BC1DC5022A02893600E928ED /* FLV */,
BC0BF4F329866FB700D72CB4 /* Media */,
291C2ACF1CE9FF2B006F042B /* MPEG */,
291C2ACF1CE9FF2B006F042B /* MPEG */,
BC0BF4F329866FB700D72CB4 /* Media */,
BC0BF4F329866FB700D72CB4 /* Media */,
BC0BF4F329866FB700D72CB4 /* Media */,
291C2ACE1CE9FF25006F042B /* RTMP */,
291C2AD01CE9FF33006F042B /* Util */,
295018211FFA1C9D00358E10 /* CMAudioSampleBufferTestUtil.swift */,
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ let package = Package(
"MPEG",
"Net",
"RTMP",
"Util",
"Util"
]),
.target(name: "SRTHaishinKit",
dependencies: [
Expand Down
4 changes: 2 additions & 2 deletions Sources/RTMP/RTMPStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ open class RTMPStream: NetStream {
}

/// Creates flv metadata for a stream.
open func createMetaData() -> ASObject {
open func makeMetaData() -> ASObject {
var metadata: [String: Any] = [:]
#if os(iOS) || os(macOS)
if mixer.videoIO.capture.device != nil {
Expand Down Expand Up @@ -521,7 +521,7 @@ open class RTMPStream: NetStream {
dataTimeStamps.removeAll()
FCPublish()
case .publishing:
send(handlerName: "@setDataFrame", arguments: "onMetaData", createMetaData())
send(handlerName: "@setDataFrame", arguments: "onMetaData", makeMetaData())
mixer.startEncoding(muxer)
default:
break
Expand Down

0 comments on commit b20ec23

Please sign in to comment.