mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
27 lines
562 B
Swift
27 lines
562 B
Swift
import Foundation
|
|
import CoreMedia
|
|
import TelegramUIPrivateModule
|
|
|
|
enum MediaTrackFrameType {
|
|
case video
|
|
case audio
|
|
}
|
|
|
|
final class MediaTrackDecodableFrame {
|
|
let type: MediaTrackFrameType
|
|
let packet: FFMpegPacket
|
|
let pts: CMTime
|
|
let dts: CMTime
|
|
let duration: CMTime
|
|
|
|
init(type: MediaTrackFrameType, packet: FFMpegPacket, pts: CMTime, dts: CMTime, duration: CMTime) {
|
|
self.type = type
|
|
|
|
self.pts = pts
|
|
self.dts = dts
|
|
self.duration = duration
|
|
|
|
self.packet = packet
|
|
}
|
|
}
|