Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to play the video using the default video player in android?

 
Snehitha Prasad
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am facing one problem to play the video file which i am getting from the web url.When I trying to read the file from my emulator sd card which is playing without any fail.But when i trying to play the same video which i am getting from the response i am getting the following error.
"android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.VIEW dat=https://scsstaging.s3.amazonaws.com/files/3/1cd0b590-1ee1-0131-b356-001a4b3952d8.m4a?AWSAccessKeyId=AKIAIINYRJPTDJWIYW6Q&Expires=1382645418&Signature=OsgNgWQNOf3qUitM2kLGP3JjJdo= typ=video/m4a }"

For this i am using the following code.
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);

Uri data = Uri.parse("https://scsstaging.s3.amazonaws.com/files/3/1cd0b590-1ee1-0131-b356-001a4b3952d8.m4a?AWSAccessKeyId=AKIAIINYRJPTDJWIYW6Q&Expires=1382645418&Signature=OsgNgWQNOf3qUitM2kLGP3JjJdo");
intent.setDataAndType(data, "video/m4a");
startActivity(intent);


Can any one explain where is i am doing wrong.


Thanks,
SNEHITHAPRASAD.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic