mirror of
https://github.com/HaishinKit/HaishinKit.swift.git
synced 2026-05-07 20:12:28 +00:00
12 lines
359 B
Swift
12 lines
359 B
Swift
import CoreMedia
|
|
import HaishinKit
|
|
|
|
extension IncomingStream {
|
|
func append(_ message: RTMPVideoMessage, presentationTimeStamp: CMTime, formatDesciption: CMFormatDescription?) {
|
|
guard let buffer = message.makeSampleBuffer(presentationTimeStamp, formatDesciption: formatDesciption) else {
|
|
return
|
|
}
|
|
append(buffer)
|
|
}
|
|
}
|