Start media player

All your problems with Audio, Video and Images.

Start media player

Postby thomson » Thu Jan 15, 2009 10:03 am

Hi all,
I created an application that can play video from internet. I used the following code to start media player
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strMediaUrl));
  2.  
  3. getContext().startActivity(myIntent);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


It working fine for mp4. But for m4v format it trying to download that file. What I want is to open default media player with the url as argument. But it open the url through the browser. Is there any way to do that?. Or I need to create my own player? Any help will be greatly appreciated.
thomson
Freshman
Freshman
 
Posts: 2
Joined: Fri Dec 26, 2008 5:34 am
Location: India

Top

Postby MrSnowflake » Thu Jan 15, 2009 2:56 pm

M4v is probably not supported.
User avatar
MrSnowflake
Moderator
Moderator
 
Posts: 1439
Joined: Sat Feb 16, 2008 3:11 pm
Location: Flanders, Belgium

Postby thomson » Fri Jan 16, 2009 4:55 am

Thanks for the replay.
But even for mp4 video it going through browser. I only want to open media player. Is there any way to open media player?.
thomson
Freshman
Freshman
 
Posts: 2
Joined: Fri Dec 26, 2008 5:34 am
Location: India

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests