GoranK
GoranK

Reputation: 1668

mp4 play on Google TV emulator, but won't play on Google TV device

I use the following code to play mp4 video:

Intent i = new Intent(Intent.ACTION_VIEW);
i.setDataAndType(Uri.parse(url, "video/mp4");
ctx.startActivity(i);

It works fine on phones & tablets, as well as Google TV emulator, but throws ActivityNotFoundException on Google TV device.

Any thoughts?

Upvotes: 0

Views: 695

Answers (1)

Bhavya
Bhavya

Reputation: 161

When I tried to play an MP4 video using the above code snippet ,I am getting "No application can handle this action" message. Looks like there is no default application which can play the video. ActivityNotFoundException occur normally when you give the wrong media type.

Upvotes: 1

Related Questions