Its been a long time but as i can recall we dropped <video> tag and went forward with Phonegap Media Plugin coz of following reasons:
1. On 2.3 and below there was no sync in play time in fulllscreen and embedded video seek bar. It was annoying. 2. Poster resizing issue. We didn't spend much time on it but there are some ways to fix it i guess. 3. On ICS and onwards video gets embedded. Embedded mode doesn't look good on phones, its better to have Fullscreen mode for phones. Other Ways than <video> tag: Having a <div> with poster img and play button. Which ll launch a Video Player in full through Phonegap bridge. Cons : Was causing INVALID_STATE_ERR: DOM Exception 11 on Samsung Galaxy Nexus (ICS Version) when we play video for second time. Phonegap fulfilled all our purpose so with out wasting any more time we went ahead with it. Hope it helps. Reg, Varun On Tue, Aug 7, 2012 at 8:41 AM, Zhao Rong <[email protected]> wrote: > Hi Varun, > Have your solved this problem? I meet the same one now... > Thanks > Rong Zhao > > > On Sunday, March 11, 2012 10:20:25 PM UTC+8, varun tewari wrote: > >> One problem i am facing currently is upon second launch of media player >> application is getting crashed because i have not stopped playback and >> released Media player. As VideoSurfaceView object, which we get in >> onShowCustomView function from 3.0 OS, are specific to browser and not a >> VideoView object as in, till 2.3 OS. >> How can i access it, stopPlayback and release resources? >> >> Thanks, >> Varun >> >> On Mon, Oct 31, 2011 at 4:28 PM, novemberox <[email protected]> wrote: >> >>> To make it work you just need to override >>> getVideoLoadingProgressView() in WebChromeClient in WebView >>> >>> i.e. >>> @Override >>> public View getVideoLoadingProgressView() { >>> ProgressBar bar = new ProgressBar(Context); >>> return bar; >>> } >>> >>> On 20 Paź, 14:28, M L <[email protected]> wrote: >>> > Hi, >>> > >>> > nothing new on this I have also topic here:http://stackoverflow.com/** >>> questions/7217159/**implementing-onshowcustomv.<http://stackoverflow.com/questions/7217159/implementing-onshowcustomv.> >>> .. >>> > >>> > 2011/10/20 luciofm <[email protected]> >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> > > Hi novemberox >>> > >>> > > Any progress on this??? I'm having the same issue in a project >>> > >>> > > If I don't find any solution I'll have to redirect it to the >>> videoplayer >>> > > via Intent unitl the ICS source code is released. >>> > >>> > > Thanks >>> > > Lúcio Maciel >>> > > [email protected] >>> > >>> > > On Wed, Aug 31, 2011 at 07:45, novemberox <[email protected]> >>> wrote: >>> > >>> > >> I also found, that enabling hardware acceleration fix issue with >>> > >> playing embedded video. Full screen still doesn't work. >>> > >>> > >> On 29 Sie, 21:34, novemberox <[email protected]> wrote: >>> > >> > A tip would be useful :) >>> > >>> > >> > I tried to find Google browser sources in Android 3.1, but I'm not >>> > >> > quite sure if sources here: >>> > >>http://android.git.kernel.**org/?p=platform/packages/apps/** >>> Browser.git;a.<http://android.git.kernel.org/?p=platform/packages/apps/Browser.git;a.> >>> .. >>> > >> > are the sources used in 3.1. >>> > >>> > >> > On 27 Sie, 22:28, novemberox <[email protected]> wrote: >>> > >>> > >> > > Hi, >>> > >>> > >> > > I'm trying to play video in html on fullscreen. When I click on >>> > >> > > fullscreen button in video method onShowCustomView is fired. >>> Here is >>> > >> > > my implementation: >>> > >>> > >> > > public void onShowCustomView(View view, >>> CustomViewCallback >>> > >> callback) >>> > >> > > { >>> > >> > > super.onShowCustomView(view, callback); >>> > >> > > if (view instanceof FrameLayout) { >>> > >> > > customComponenet.addView(view, new >>> > >> FrameLayout.LayoutParams( >>> > >>> > >> ViewGroup.LayoutParams.FILL_**PARENT, >>> > >> > > ViewGroup.LayoutParams.FILL_**PARENT, >>> > >> > > Gravity.CENTER)); >>> > >> > > customComponenet.** >>> setVisibility(View.VISIBLE); >>> > >> > > } >>> > >> > > } >>> > >> > > Where customComponenet is FrameLayout placed on top of my >>> current >>> > >> > > layout. Wideo is playing good, it's visibile and everything >>> seams to >>> > >> > > be ok but it throws: >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): FATAL >>> EXCEPTION: main >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): >>> > >> > > java.lang.NullPointerException >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >>> > >> android.webkit.**HTML5VideoFullScreen.**switchProgressView(** >>> HTML5VideoFullScreen >>> > >> .java: >>> > >> > > 320) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.webkit.HTML5VideoView.**setPlayerBuffering(** >>> HTML5VideoView.java: >>> > >> > > 319) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.webkit.HTML5VideoView.**start(HTML5VideoView.java:85) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.webkit.**HTML5VideoViewProxy >>> > >> > > $VideoPlayer.onPrepared(**HTML5VideoViewProxy.java:257) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >>> > >> android.webkit.**HTML5VideoViewProxy.**onPrepared(** >>> HTML5VideoViewProxy.java: >>> > >> > > 278) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.webkit.HTML5VideoView.**onPrepared(HTML5VideoView.** >>> java:265) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >>> > >> android.webkit.**HTML5VideoFullScreen.**onPrepared(** >>> HTML5VideoFullScreen.java: >>> > >> > > 164) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.media.MediaPlayer$**EventHandler.handleMessage(** >>> MediaPlayer.java: >>> > >> > > 1456) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.os.Handler.**dispatchMessage(Handler.java:**99) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.os.Looper.loop(Looper.**java:132) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > android.app.ActivityThread.**main(ActivityThread.java:4028) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > java.lang.reflect.Method.**invokeNative(Native Method) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > java.lang.reflect.Method.**invoke(Method.java:491) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > com.android.internal.os.**ZygoteInit >>> > >> > > $MethodAndArgsCaller.run(**ZygoteInit.java:844) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > com.android.internal.os.**ZygoteInit.main(ZygoteInit.** >>> java:602) >>> > >> > > 08-27 22:16:07.520: ERROR/AndroidRuntime(7235): at >>> > >> > > dalvik.system.NativeStart.**main(Native Method) >>> > >>> > >> > > What am I doing wrong? >>> > >>> > >> > > My WebView settings: >>> > >> > > webView.getSettings().**setJavaScriptEnabled(true); >>> > >> > > webView.getSettings().**setPluginState(PluginState.ON)* >>> *; >>> > >> > > webView.getSettings().**setDomStorageEnabled(true); >>> > >> > > webView.getSettings().**setDatabasePath("/data/data/" + >>> > >> > > App.class.getPackage().**getName() + "/databases"); >>> > >> > > webView.getSettings().**setSupportZoom(false); >>> > >>> > >> > > I'm testing on Galaxy Tab 10.1, on default browser this is >>> working >>> > >> > > just fine. I can switch to fullscreen. Moreover in my app when >>> I play >>> > >> > > video embeded I can hear only sound and see status bar below >>> area >>> > >> > > where video should be, while on browser I can see video both >>> embeded >>> > >> > > in WebView and on fullscreen. >>> > >>> > >> -- >>> > >> 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 <[email protected]> >>> > >> To unsubscribe from this group, send email to >>> > >> android-developers+**[email protected]<android-developers%[email protected]> >>> > >> For more options, visit this group at >>> > >>http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> >>> >>> -- >>> 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 <[email protected]> >>> To unsubscribe from this group, send email to >>> android-developers+**[email protected]<android-developers%[email protected]> >>> For more options, visit this group at >>> http://groups.google.com/**group/android-developers?hl=en<http://groups.google.com/group/android-developers?hl=en> >>> >> >> -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

