hi,
I am trying to play video live stream url into videoView in a fragment; works fine for first time; but issue arises once fragment is popped and user selects a different url and redirects to same fragment same videoView with different url.
using latest 0.1.19 version.
some demo snippets for reference
@Override
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
//set global configuration: turn on multiple_requests
PlayerManager.getInstance().getDefaultVideoInfo().addOption(Option.create(IjkMediaPlayer.OPT_CATEGORY_FORMAT, "multiple_requests", 1L));
if (getArguments() != null) {
strUrl = getArguments().getString(ARG_PARAM);
}
}
@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
viewQuery = new ViewQuery(view);
Log.e("###VIDEO", "url------ " + strUrl);
final VideoView videoView = viewQuery.id(R.id.video_view).view();
videoView.setVideoPath(strUrl);
}
@Override
public void onDestroyView() {
PlayerManager.getInstance().getCurrentPlayer().stop();
super.onDestroyView();
}
hi, I am trying to play video live stream url into videoView in a fragment; works fine for first time; but issue arises once fragment is popped and user selects a different url and redirects to same fragment same videoView with different url.
using latest 0.1.19 version.
some demo snippets for reference
gives error in logcat:
Thanks in advance...!!