mklimek / frame-video-view

Less issues with VideoView
Other
63 stars 19 forks source link

FrameVideoViewListener must either be declared abstract or implement abstract method #13

Closed Pitu closed 8 years ago

Pitu commented 8 years ago

I'm trying to load a video using your library from within a ViewPager fragment. I'm pretty much following the same on the readme but I'm getting the error mentioned above while doing:

FrameVideoView frameVideoView = (FrameVideoView) fragment.findViewById(R.id.frame_video_view);
            frameVideoView.setup(Uri.parse("android.resource://" + getActivity().getPackageName() + "/" + R.raw.playlist_2_video_1));
            frameVideoView.setFrameVideoViewListener(new FrameVideoViewListener() {
                @Override
                public void mediaPlayerPrepared(final MediaPlayer mediaPlayer) {
                    mediaPlayer.start();
                }
            });

This is just for testing, what I really want to be able to do is save a reference of mediaPlayer or something, so I can call mediaPlayer.start() when my fragment is visible to the user on a different method, but that's on me.

mklimek commented 8 years ago

You missed one method. This in an interface to implement.