https://developer.apple.com/videos/play/wwdc2021/10046/
Post
Replies
Boosts
Views
Activity
Watch this:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
Watch this example:
https://gist.github.com/FireRayo/508952f39b5539bba08c8eb5e18ebfbc
it is working.
List of errata:
Im using PHPickerViewController and AVPlayer to create a pick up and play a video, and that part works, and to show the video I use this line:
PhotoPickerResultView(result: photoPickerService.results[0])
and this part work fine to, arrives from this:
but I don't understand why if you add a simple "print("Hello")" we get that alarm??
if un > deux {
one()
print("Hello")
} else {
two()
anothervariable = un + deux
}
and it's not just with print("Hello"), it's with several things for example:
anothervariable = un + deux
etc.
like an example, if the only thing I need to do is use "print()"
if I do:
func one() -> some View {
print("Hello")
return Text("One")
}
it will print("Hello") and return Text("One")
is there a way return "nothing" ?, just print()
because if I try to use something like this:
func one() {
print("Hello")
}
I have the same error.
Try both at same time:
"yourAVPlayer".replaceCurrentItem(with: nil)
"theURLoftheAVPlayer".removeAll()
Try both at same time:
"yourAVPlayer".replaceCurrentItem(with: nil)
"theURLoftheAVPlayer".removeAll()
For example, where can I get code examples about how to get the FPS of a video? using:
AVAssetTrack
and
nominalFrameRate
Thanks
I found this:
@State var fps: Float = 0.0
let asset = yourAVPlayer.currentItem!.asset
let tracks = asset.tracks(withMediaType: .video)
let fps = tracks.first!.nominalFrameRate
another way?
if you just want to show "<" without the text:
.navigationTitle("")