|
|
|
@ -117,6 +117,7 @@ struct SVideoPlayer: View, EditItemDelegate { |
|
|
|
|
|
|
|
|
|
|
|
Text(model.currentSnapshot.name).foregroundColor(Color.blue) |
|
|
|
Text(" (\(model.height),\(model.nominalFrameRate)").foregroundColor(Color.blue) |
|
|
|
|
|
|
|
ScrollView(.horizontal, showsIndicators: false) { |
|
|
|
HStack { |
|
|
|
@ -570,8 +571,10 @@ struct SVideoPlayer: View, EditItemDelegate { |
|
|
|
let heightSpace = model.proxy!.size.height * 2 |
|
|
|
var height = heightSpace |
|
|
|
if let i = player.currentItem { |
|
|
|
model.nominalFrameRate = await i.asset.load(.nominalFrameRate) |
|
|
|
height = i.presentationSize.height |
|
|
|
} |
|
|
|
model.height = Int(height) |
|
|
|
|
|
|
|
var f = height / heightSpace |
|
|
|
print("h \(height) \(heightSpace) \(f)") |
|
|
|
|