You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use your library for handling the playing one video at once. But there's a difference which I need to start the video whenever user clicked on play button.
I created an instance of VideoPlayerManager in my fragment and pass it to the Adapter in constructor.
In fragment :
private VideoPlayerManager<MetaData> mVideoPlayerManager = new SingleVideoPlayerManager(new PlayerItemChangeListener() {
@Override
public void onPlayerItemChanged(MetaData metaData) {
}
});
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
...
adapter = new FeedsAdapter(getContext(), mVideoPlayerManager);
...
}
I'm trying to use your library for handling the playing one video at once. But there's a difference which I need to start the video whenever user clicked on play button.
I created an instance of
VideoPlayerManager
in my fragment and pass it to the Adapter in constructor.In fragment :
In adapter:
Now whenever user clicks on play button, I call this inside the adapter itself:
The problem is that the VideoPlayerView is completely blank and only the sound of the video is playing. What am I missing?
The text was updated successfully, but these errors were encountered: