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

Error on Android 4.3: LOCK BUFFER FAILED #48

Closed
minhtoantm opened this issue Sep 16, 2013 · 14 comments
Closed

Error on Android 4.3: LOCK BUFFER FAILED #48

minhtoantm opened this issue Sep 16, 2013 · 14 comments

Comments

@minhtoantm
Copy link

Hi Cross.
I have error on Android 4.3.
I have a AsynTask to get url from API, onPostExecute I use code:mVideoView.setVideoURI to set video uri for videoview. But when I next video, sound is played, frame is frozen

Can you help me to fix it?
Log error:
09-16 20:29:52.140: E/BufferQueue(121): [SurfaceView] connect: already connected (cur=2, req=2)
09-16 20:29:52.140: E/VitamioPlayer: LOCK BUFFER FAILED

@iNdieboyjeff
Copy link

I suspect this is also related to my issue #47 as I see the LOCK BUFFER FAILED message as well, along with a frozen frame.

@crossle
Copy link
Contributor

crossle commented Sep 16, 2013

What's vitamio version you used?

@iNdieboyjeff
Copy link

This happens with latest version, but been having problems since 4db7eae.

6163853 is the last commit that works for me.

@crossle
Copy link
Contributor

crossle commented Sep 16, 2013

Try use Vitamio 4.1.1 ?

@iNdieboyjeff
Copy link

Tried that this morning and it's not working I'm afraid.

@crossle
Copy link
Contributor

crossle commented Sep 16, 2013

@minhtoantm you must release before videoview, and setVideoURI

@crossle
Copy link
Contributor

crossle commented Sep 16, 2013

@iNdieboyjeff you used Vitamio Demo?

@iNdieboyjeff
Copy link

I'll try recompiling it and see if it works. But I've been using the library quite happily for a few months, and it's just since version 4.1 that it's stopped working.

@crossle
Copy link
Contributor

crossle commented Sep 16, 2013

@iNdieboyjeff Android 4.3 surface has change...you don't setDisplay many times...but before it's ok.

@iNdieboyjeff
Copy link

I'm just using the VideoView so I've not been using a custom SurfaceView or setDisplay().

@iNdieboyjeff
Copy link

It appears to be working for me now. Not sure what changed, but I grabbed a fresh clone and it's working.

The only issue I have now is on an Android 2.2 device (Original Galaxy Tab - 7" device), which plays video for about 5 seconds and then freezes. The app closes a few seconds later. No errors are thrown or logged - the app just stops.

@minhtoantm
Copy link
Author

@crossle : I use code mVideoView.stopPlayBack() and setVideoURI but not work. I use a array url to play by index++, It is ok, but when I use AsynTask to get URL and play, It not work

@crossle
Copy link
Contributor

crossle commented Dec 13, 2013

Has fixed, the end of the month will release next version.

@crossle crossle closed this as completed Dec 13, 2013
@master255
Copy link
Contributor

i have this error on android 4.4.2 and vitamio 4.2.6. sample code: https://github.com/master255/VitamioListActivity
on setsurface tree.

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

4 participants