-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
图片无法在VIPlayer播放 #17
Comments
我在buildPlayerItem中断点调试,发现 CompositionGenerator.swift 85行
这段代码中,provider.numberOfVideoTracks(),的值始终为0.PHAssetImageResource生成的TrackItem。 |
我解决了这个问题。在下面的方法里,添加了对Bundle的定义:
|
这个修改欢迎提交 pr |
好的,我会在最近提交PR |
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我参考VideoCat的Demo从相册中选择了图片
然后检查了,图片的选择,在 resource.prepare中,Image是存在的,status也是 available的。
这是buildItem的方法,视屏和livephoto都没有问题,只有图片无法正常播放,在播放器的时长也不对。
master分支。
xcode 10.2.2
swift 5.0
The text was updated successfully, but these errors were encountered: