Skip to content
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

Setting up Player with AVPlayerItem. #235

Open
lurui1029 opened this issue Dec 21, 2020 · 0 comments
Open

Setting up Player with AVPlayerItem. #235

lurui1029 opened this issue Dec 21, 2020 · 0 comments

Comments

@lurui1029
Copy link

Player stopped working when set up with an AVAsset downloaded from user's iCloud photo library using PHImageManager:

Error Domain=NSCocoaErrorDomain Code=257 UserInfo={NSURL=file:///var/mobile/Media/PhotoData/Metadata/DCIM/101APPLE/IMG_1858.small.MP4, NSUnderlyingError=0x2833487b0 {Error Domain=NSOSStatusErrorDomain Code=-12203 "(null)"}}

Related posts:

Swift AVAsset downloading from iCloud has no permission on iOS 14: error Code=257

Request AVAsset using iCloud PHAsset returns an AVAsset with no VideoTracks

Solution

Set up Player with an AVPlayerItem.

PHImageManager provides either an AVAsset or an AVPlayItem for a video request from user's photo library. This issue does not occur when working with an AVPlayerItem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant