Thanks for this library. I faced the following issue while bind the video view as header in my ListView/RecyclerView.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void tcking.github.com.giraffeplayer.IjkVideoView.setOnCompletionListener(tv.danmaku.ijk.media.player.IMediaPlayer$OnCompletionListener)' on a null object reference
I used the same code in Activity its working fine but inside the adapter i got the above error.
inside the adapter constructor i added like.
GiraffePlayer mVideoPlayer = new GiraffePlayer(getActivity);
let me know how can i initialize player inside the adapter. Thanks in advance.
Hi @tcking,
Thanks for this library. I faced the following issue while bind the video view as header in my ListView/RecyclerView.
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void tcking.github.com.giraffeplayer.IjkVideoView.setOnCompletionListener(tv.danmaku.ijk.media.player.IMediaPlayer$OnCompletionListener)' on a null object reference
I used the same code in Activity its working fine but inside the adapter i got the above error.
inside the adapter constructor i added like.
GiraffePlayer mVideoPlayer = new GiraffePlayer(getActivity);
let me know how can i initialize player inside the adapter. Thanks in advance.