Android: "Unable to play this video"; Error MediaPlayer and VideoView 1 -38

I tried to play the video with the code below. However, I get a classic pop-up error "Can't play this video" at runtime. I did my due diligence in searching the android literature and looked through other questions, but I can’t find the problem: a) because no, where in the documentation I can find the error code (1, -38) for MediaPlayer and b) my video matches specifications required for Android media formats (h.264 and MPEG-4). If someone can help me point me in the right direction, I would really appreciate it! thank

private void startVideo() {
    Log.v(TAG, "videoUrl = " + mVideoUrl);
    Uri uri = Uri.parse(mVideoUrl);
    mVideo = (VideoView) getView().findViewById(R.id.preview_videoView);
    MediaController mediaController = new MediaController(getActivity());
    mediaController.setAnchorView(mVideo);
    mVideo.setMediaController(mediaController);
    mVideo.setVideoURI(uri);
    mVideo.start();
}

These are magazines

10-07 21:08:38.529    9986-9986/com.trainwithtanya.hiitandroid V/﹕ videoUrl = http://files.parsetfss.com/2bb9a4a0-9f35-4124-a634-d2fa7f8b165e/tfss-ca535209-4b4c-4022-95b8-8f011ed41daf-High%20Knees.mp4
10-07 21:08:38.579   9986-10011/com.trainwithtanya.hiitandroid W/EGL_emulation﹕ eglSurfaceAttrib not implemented
10-07 21:08:38.579   9986-10011/com.trainwithtanya.hiitandroid W/OpenGLRenderer﹕ Failed to set EGL_SWAP_BEHAVIOR on surface 0xa5245c20, error=EGL_SUCCESS
10-07 21:08:38.609    9986-9986/com.trainwithtanya.hiitandroid D/MediaPlayer﹕ Couldn't open file on client side, trying server side
10-07 21:08:39.582    9986-9986/com.trainwithtanya.hiitandroid D/MediaPlayer﹕ getMetadata
10-07 21:08:39.637    9986-9999/com.trainwithtanya.hiitandroid E/MediaPlayer﹕ error (1, -38)
10-07 21:08:39.637    9986-9986/com.trainwithtanya.hiitandroid E/MediaPlayer﹕ Error (1,-38)
10-07 21:08:39.637    9986-9986/com.trainwithtanya.hiitandroid D/VideoView﹕ Error: 1,-38
10-07 21:08:39.650   9986-10000/com.trainwithtanya.hiitandroid E/MediaPlayer﹕ error (1, -38)
10-07 21:08:39.702    9986-9986/com.trainwithtanya.hiitandroid E/MediaPlayer﹕ Error (1,-38)
10-07 21:08:39.702    9986-9986/com.trainwithtanya.hiitandroid D/VideoView﹕ Error: 1,-38

http://i288.photobucket.com/albums/ll185/akhan007/mediaType_zpsjfvfdpto.png

+2
2

, mVideo.start(); onPrepare

mVideo.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
  public void onPrepared(MediaPlayer mp) {
    mVideo.start();
  }
});
+3

.

-1

All Articles