matghazaryan
matghazaryan

Reputation: 5896

Video not playing

I am using VideoView trying to play video. But when I use this code I have following error:

Sorry, this video cannot be played

What is wrong here?

 VideoView vv = (VideoView) findViewById(R.id.videoView);   
 String path = "/mnt/sdcard/Video/1345467237098.m4v"
 vv.setVideoPath(path);

Upvotes: 0

Views: 165

Answers (2)

Dmytro Danylyk
Dmytro Danylyk

Reputation: 19796

This format is not supported, please check this url https://developer.android.com/guide/topics/media/media-formats.html

Upvotes: 1

Luke Taylor
Luke Taylor

Reputation: 9599

Th format in which the video is, is not supported by Android. I suggest you convert your video to .mp4 (which is supported).

I hope this helps.

Upvotes: 0

Related Questions