mirror of
https://github.com/yattee/yattee.git
synced 2024-12-22 21:43:41 +00:00
17 lines
430 B
Swift
17 lines
430 B
Swift
|
import AVFoundation
|
||
|
import Foundation
|
||
|
|
||
|
final class AudioVideoStream: Stream {
|
||
|
var avAsset: AVURLAsset
|
||
|
|
||
|
init(avAsset: AVURLAsset, resolution: StreamResolution, type: StreamType, encoding: String) {
|
||
|
self.avAsset = avAsset
|
||
|
|
||
|
super.init(audioAsset: avAsset, videoAsset: avAsset, resolution: resolution, type: type, encoding: encoding)
|
||
|
}
|
||
|
|
||
|
override var assets: [AVURLAsset] {
|
||
|
[videoAsset]
|
||
|
}
|
||
|
}
|