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

call the method of " setDataSource() " before call the method of "prepare()" maybe happen #61

Open
liugb opened this issue Apr 22, 2013 · 0 comments

Comments

@liugb
Copy link

liugb commented Apr 22, 2013

hi,havlenapetr

        try {
            FFMpeg ffmpeg = new FFMpeg();
            mMovieView = ffmpeg.getMovieView(this);
            try {
                mMovieView.setVideoPath(filePath);
            } catch (IllegalArgumentException e) {
                Log.e(TAG, "Can't set video: " + e.getMessage());
                FFMpegMessageBox.show(this, e);
            } catch (IllegalStateException e) {
                Log.e(TAG, "Can't set video: " + e.getMessage());
                FFMpegMessageBox.show(this, e);
            } catch (IOException e) {
                Log.e(TAG, "Can't set video: " + e.getMessage());
                FFMpegMessageBox.show(this, e);
            }
            setContentView(mMovieView);

    The code above ,I think maybe have problem.when initialize "mMovieView"  variable,this method of "initVideoView()"  is invoked,following call  this code of "surfHolder.addCallback()" .when call this method of " surfaceCreated ",the method of "prepare" is called .I think that call the method of " setDataSource() " before call the method of "prepare()"  maybe happen.
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

1 participant