react-native-create-thumbnail
react-native-create-thumbnail copied to clipboard
[iOS] Error: Error Domain=AVFoundationErrorDomain Code=-11832 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media cannot be used., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x600000ddeaf0 {Error Domain=NSOSStatusErrorDomain Code=-12431 "(null)"}}
Describe the bug Getting this error when creating thumbnail for remote MP4 video on iOS, only happens for some videos:
[Error: Error Domain=AVFoundationErrorDomain Code=-11832 "Cannot Open" UserInfo={NSLocalizedFailureReason=This media cannot be used., NSLocalizedDescription=Cannot Open, NSUnderlyingError=0x600000ddeaf0 {Error Domain=NSOSStatusErrorDomain Code=-12431 "(null)"}}]
To Reproduce Steps to reproduce the behavior:
- Call createThumbnail with a remote url for an mp4 video (I can send you the url if needed)
Version
react native
0.72.11
react-native-create-thumbnail
^2.0.0
Expected Results Should create the thumbnail like with all the other videos.
Snack, code example, screenshot, or link to a repository
import { createThumbnail } from 'react-native-create-thumbnail';
const createdThumbnail = await createThumbnail({
url: video.url,
});