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

Get the video thumbnail exception on ios #37

Open
bhjSky opened this issue Aug 6, 2020 · 3 comments
Open

Get the video thumbnail exception on ios #37

bhjSky opened this issue Aug 6, 2020 · 3 comments

Comments

@bhjSky
Copy link

bhjSky commented Aug 6, 2020

Gets the image as null on thumbnailFile.
The thumbnailFile method does not set the thumbnailPath parameter.
path is nsnull,Is not null

scofield-hello added a commit to scofield-hello/video_thumbnail that referenced this issue Aug 10, 2020
@justsoft
Copy link
Owner

Thanks for the patch.
@bhjSky Why don't check the thumbnailPath parameter at the first place?

scofield-hello added a commit to scofield-hello/video_thumbnail that referenced this issue Nov 13, 2020
@scofield-hello
Copy link

scofield-hello commented Dec 15, 2020

many ios developers have the same problem.

thumbnailFile String [video], String [thumbnailPath](folder or full path where to store the thumbnail file, null to save to same folder as the video file), ImageFormat imageFormat, int [maxHeight](0: for the original resolution of the video, or scaled by the source aspect ratio), int [maxWidth](0: for the original resolution of the video, or scaled by the source aspect ratio), int [timeMs] generates the thumbnail from the frame around the specified millisecond, int quality creates a file of the thumbnail from the [video

when set this thumbnailPath as default, it will cause crash.

@justsoft
Copy link
Owner

Leave the thumbnailPathl as null means the generated thumbnail image into the folder as what the thmbnailFile is.
You have to make sure the folder has the write permissions for this App.

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

3 participants