Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: XML Java Android
I am trying to create a web browser in android using web view that plays a video but it won't work. Can anybody help please me play videos from unknown src.
Posted 20-Apr-13 10:07am
Edited 21-Apr-13 3:40am
v2
Comments
Sudhakar Shinde at 21-Apr-13 3:02am
   
What you have posted can be information but where is the problem?
Member 9718045 at 21-Apr-13 8:44am
   
The problem is that I can not play any of this videos. I looked around online but the most of show only how you would play from one src, but in my web page I have more than one. Thank You for replying!:)

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You cannot show video embedded except perhaps on devices that have Flash. If you can parse out the YouTube video details, you may be able to construct an ACTION_VIEW Intent that will show them on the YouTube application(for those Android devices that have the YouTube application). Also experiment with HTML5's
<video>
tag, which is supported in the Browser application and may therefore work in WebView.
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 555
1 Kornfeld Eliyahu Peter 409
2 Maciej Los 359
3 DamithSL 196
4 OriginalGriff 188
0 OriginalGriff 6,353
1 DamithSL 4,854
2 Maciej Los 4,466
3 Kornfeld Eliyahu Peter 4,058
4 Sergey Alexandrovich Kryukov 3,897


Advertise | Privacy | Mobile
Web04 | 2.8.141220.1 | Last Updated 13 May 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100