I have been testing this for about three days without a break.
Here is a simple code:
private VideoView videoView;
-
videoView = (VideoView) findViewById(R.id.videoView); videoView.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { @Override public void onCompletion(MediaPlayer mediaPlayer) { getNewVideo(); } } }); getNewVideo();
-
private void getNewVideo(){ File file =
-
<VideoView android:id="@+id/videoView" android:layout_width="match_parent" android:layout_height="match_parent" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentRight="true" android:layout_alignParentTop="true" />
I need to execute this code 24/7.
The fact is that regardless of the duration (at the very beginning or after 20 minutes of work), SOMETIMES, the video just hangs. There is no log, there is no exception, the only thing I know is the last thing that works before onPrepared () hangs.
The log is the same for all attempts to call a video, the only difference is that the last attemps (the one that hangs) just stop after it is prepared.
ANY tip is appreciated.
Build number im used by RKM MK902_ANDROID5.1.1-20151016.1805
with RKM MK902II PC-PC operating on 42 'TV
Otuyh source share