First frame of a video using AVFoundation

后端 未结 3 519
庸人自扰
庸人自扰 2021-02-01 19:56

I\'m trying to get the first frame of a video using the classes in AVFoundation. But it appears to not be getting an image at all.

My code currently looks like this

3条回答
  •  北恋
    北恋 (楼主)
    2021-02-01 20:24

    I solved it. Apparently using [NSURL fileURLWithPath:videoPath] instead of [NSURL URLWithString:videoPath] makes all the difference.

提交回复
热议问题