Thursday, August 11, 2011

Re: [android-developers] Can't get html5 video working properly -- happy to pay for an answer

Have you tried:

http://code.google.com/p/html5webview/

On Thu, Aug 11, 2011 at 4:28 PM, Rich Collins <richcollins@gmail.com> wrote:
> **I will paypal $200 to anyone that can solve this for me**
>
> I'm trying to get an Android WebView to play a video inline.  On iOS you can just use webkit-playsinline in your video tag.  Not so on Android.  I followed the examples provided in these 2 answers:
>
> http://stackoverflow.com/questions/3815090/webview-and-html5-video
>
> http://stackoverflow.com/questions/4989738/how-to-play-a-video-in-a-webview-with-android
>
> Using these techniques I can get the video to play only on the second time that I start the WebViewActivity.  It doesn't work the first time and it doesn't work again after the second time.  _You have to run this on a device, video won't play back at all in the emulator._  You can download the Android project here:
>
> http://cl.ly/3G27270k0B3J3Q380i0T
>
> You can see the source for the WebViewActivity here:
>
> https://gist.github.com/8762e2678816898bfbb6
>
> It appears that the problem lies with onShowCustomView not being called.  It is called when the video appears but isn't called when it doesn't.  Even when it doesn't appear, the video in the html emits events, it just never appears on the screen.
>
> It's very simple (2 Activities & a small html file) and should be an easy $200 for anyone familiar with this problem.
>
> --
> 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+unsubscribe@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Android Training in Oslo: http://bit.ly/fjBo24

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment