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

Crash when fast forward video #1693

Closed
sharkhuang opened this issue Jul 23, 2016 · 1 comment
Closed

Crash when fast forward video #1693

sharkhuang opened this issue Jul 23, 2016 · 1 comment
Assignees
Labels

Comments

@sharkhuang
Copy link

sharkhuang commented Jul 23, 2016

2.2 develop branch.
User case: play several videos consecutive as playlist. customize media player to control moving forward or backward, which means customize seekto() function to find position cross the videos. Crash happens when call seekTo(int sourceIndex, long positionMs) .

                                                                                java.lang.NullPointerException: Attempt to get length of null array
                                                                                    at com.google.android.exoplayer2.extractor.ExtractorSampleSource.getExtractedSamplesCount(ExtractorSampleSource.java:543)
                                                                                    at com.google.android.exoplayer2.extractor.ExtractorSampleSource.onLoadError(ExtractorSampleSource.java:428)
                                                                                    at com.google.android.exoplayer2.extractor.ExtractorSampleSource.onLoadError(ExtractorSampleSource.java:62)
                                                                                    at com.google.android.exoplayer2.upstream.Loader$LoadTask.handleMessage(Loader.java:393)
                                                                                    at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                    at android.os.Looper.loop(Looper.java:148)
                                                                                    at android.os.HandlerThread.run(HandlerThread.java:61)
                                                                                    at com.google.android.exoplayer2.util.PriorityHandlerThread.run(PriorityHandlerThread.java:40)
@andrewlewis andrewlewis self-assigned this Jul 25, 2016
@ojw28 ojw28 added bug and removed need more info labels Jul 25, 2016
@andrewlewis
Copy link
Collaborator

This should be fixed in dev-v2. There is still a known issue relating seeking and reuse of MediaPeriods which will likely be fixed in the next push. Thanks.

@google google locked and limited conversation to collaborators Jun 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants