Re: [android-developers] Problem with video in WebView

2012-06-07 Thread Deniz Tuna
You have to implement onShowCustomView and also onHideCustomView in your 
own webChromeClient class. After that you can view videos by clicking on 
them. However autoplay tag seems like not working with android from what i 
tried. Searching for google for "how to view html5 video in android" will 
take you to the answer. Good luck 
3 Haziran 2012 Pazar 22:02:21 UTC+3 tarihinde Angélica yazdı:
>
> Hello, 
>
> I am new in android, and I am developing an app, where I want to watch a 
> movie in a webview, using HTML 5, but the video doesn't appear, when I run 
> the app I can see only the video controls... 
>
> The code in html that I am using is:
>
> code = "" +
>
>   "" +
>
>   "" +
>
>   "Simple Movie Player" +
>
>   "" +
>
>   "" +
>
>   "
>   " controls>" +
>
>   "" +
>
>   "" +
>
>   "";
>
> The uri is from a video in the internal storage. I load this html code in 
> a webview by this command:
>
>  webview.loadDataWithBaseURL(null, code, null, "utf-8", null);
>
> Can anyone help me? I am trying very hard to do this!
>
>
> Thanks in advance,
>
> Angelica
>
>
>
>
> 

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Re: Android 2.2 VideoView Scaling

2012-05-20 Thread Deniz Tuna
I have also the same exact problem as Richard does. Anyone knows how to 
make those videos fit into the region that is given by me? Thanks in 
advance.

3 Mayıs 2012 Perşembe 13:13:25 UTC+3 tarihinde Richard Davison yazdı:
>
> Hi,
>
> I'm trying to create an app that plays a rtsp stream. I'm having no 
> problem doing that, the problem I'm having is that the VideoView simply 
> cuts out a box of the dimensions I set it to, rather than scaling the video 
> to fit the dimensions. I have tried creating my own custom VideoView and 
> overriding the onMeasure method, but this does not scale the video to fit 
> either, it simply cuts out a box of the set dimensions. Does anyone have 
> any idea how to fix this, or if this is an already known bug with 2.2?
>
> Thanks,
> Rick
>

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Android 2.2 Problem about Video Scaling

2012-05-20 Thread Deniz Tuna
In my application I need to show videos in some boxes with different 
dimensions. So I am currently giving some dimension to my videoview however 
videos that I gave could not scale into those regions. They are just cut 
off from those dimensions. I already tried to implement my own onMeasure 
method but It didn't help me too. So anyone knows how to scale videos for 
different boxes?

Thanks in advance.
Deniz Tuna

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en