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

[BUG] ASN1OutOfBufferError when attempting to play any video #270

Closed
jasonpaluck opened this issue Jun 24, 2020 · 3 comments
Closed

[BUG] ASN1OutOfBufferError when attempting to play any video #270

jasonpaluck opened this issue Jun 24, 2020 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@jasonpaluck
Copy link

jasonpaluck commented Jun 24, 2020

Every attempt to include the player in an existing flutter project, using code either from this project's documentation pages or directly from the example app, generates an exception ASN1OutOfBufferError in file ans1_decoder.dart, and then FormatException (FormatException: Bad UTF-8 encoding 0x97 (at offset 0)) from the flutter_inappwebview-3.4.0+1 package. There are no build warnings or errors, only an exception thrown as the video begins to load and the loading indicator perpetually spins against the initial video frame using any iOS simulator.

I'm using youtube_player_flutter: ^7.0.0+6 and flutter 1.17.4.

** UPDATE: If I F5 to continue through the errors several times the video ultimately plays.

Anyone else have such an issue?

Thanks!

@jasonpaluck jasonpaluck added the bug Something isn't working label Jun 24, 2020
@sarbagyastha
Copy link
Owner

@jasonpaluck
Copy link
Author

I did, yes. Had I not, I would have received a build error which I do not. The only way it works is if I run without debugging in VS Code. If I allow it to debug, I'll get a dozen or so errors I need to step through before the video will play.

@jasonpaluck
Copy link
Author

Looks like I was missing one line from the Podfile:

config.build_settings['SWIFT_VERSION'] = '5.0'

Interestingly enough, there were no build warnings or errors as the documentation said there would be, so the solution wasn't obvious. Thanks for your time, hope this can help someone in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants