Hi friends, I have implemented the same and its working.But just want to know how to control(play /pause adding custom buttons) video playing in webview
On Wednesday, 4 July 2012 19:37:49 UTC+5:30, arun kumar wrote: > > > Change it with object tag. I mean, you must use object instead iframe. An > example here: > > <object width="480" height="330"><param name="movie" > value="http://www.youtube.com/v/"here is your video > id"?version=3&hl=pt_BR&rel=0"> > </param><param name="allowFullScreen" value="true"></param> > <param name="allowscriptaccess" value="always"></param> > <embed src="http://www.youtube.com/v/"here is your video > id"?version=3&hl=pt_BR&rel=0" > type="application/x-shockwave-flash" width="480" height="330" > allowscriptaccess="always" allowfullscreen="true" /></object> > Use the code below: > > webview.getSettings().setPluginsEnabled(true); > webview.getSettings().setJavaScriptEnabled(true); > webview.getSettings().setAllowFileAccess(true); > webview.loadUrl(url); > Try this and if your problem solved :) > > > > > > > On Wed, Jul 4, 2012 at 7:34 PM, arun kumar <[email protected]<javascript:> > > wrote: > >> Hai please add these lines and Have you tried including the class and >> type? class="youtube-player" type="text/html" in your embed code? >> mWebView.getSettings().setJavaScriptEnabled(true); >> mWebView.getSettings().setPluginsEnabled(true); >> >> On Wed, Jul 4, 2012 at 7:29 PM, Hitendrasinh Gohil >> <[email protected]<javascript:> >> > wrote: >> >>> Dear arun, >>> >>> Without internet connection it is not possible to see even thumbnail for >>> video. >>> >>> >>> On Wed, Jul 4, 2012 at 7:21 PM, arun kumar <[email protected]<javascript:> >>> > wrote: >>> >>>> set internet permission in android.manifest file >>>> <uses-permission android:name="android.permission.INTERNET" /> >>>> >>>> >>>> On Wed, Jul 4, 2012 at 7:18 PM, Hitendrasinh Gohil < >>>> [email protected] <javascript:>> wrote: >>>> >>>>> any help,pls? >>>>> >>>>> >>>>> On Wed, Jul 4, 2012 at 6:36 PM, Hitendrasinh Gohil < >>>>> [email protected] <javascript:>> wrote: >>>>> >>>>>> Hi, >>>>>> >>>>>> I am trying to play youtube video in webview by following embed code. >>>>>> Video thumbnail is shown but when i click on that nothing is played. >>>>>> >>>>>> <iframe class="youtube-player" type="text/html" width="640" >>>>>> height="385" src="http://www.youtube.com/embed/*VIDEO_ID*" >>>>>> frameborder="0"> >>>>>> </iframe> >>>>>> >>>>>> I have tested it with samsung galaxy tab(3.2) which has a flash >>>>>> support. >>>>>> can anybody tell me what could be problem? >>>>>> >>>>>> -- >>>>>> 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]<javascript:> >>>>>> To unsubscribe from this group, send email to >>>>>> [email protected] <javascript:> >>>>>> For more options, visit this group at >>>>>> http://groups.google.com/group/android-developers?hl=en >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> regards, >>>>> Hitendrasinh Gohil >>>>> >>>>> -- >>>>> 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]<javascript:> >>>>> To unsubscribe from this group, send email to >>>>> [email protected] <javascript:> >>>>> For more options, visit this group at >>>>> http://groups.google.com/group/android-developers?hl=en >>>>> >>>> >>>> >>>> >>>> -- >>>> WITH REGARDS >>>> ARUN KUMAR P D >>>> +91-9994794759 >>>> >>>> -- >>>> 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]<javascript:> >>>> To unsubscribe from this group, send email to >>>> [email protected] <javascript:> >>>> For more options, visit this group at >>>> http://groups.google.com/group/android-developers?hl=en >>>> >>> >>> >>> >>> -- >>> regards, >>> Hitendrasinh Gohil >>> >>> -- >>> 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]<javascript:> >>> To unsubscribe from this group, send email to >>> [email protected] <javascript:> >>> For more options, visit this group at >>> http://groups.google.com/group/android-developers?hl=en >>> >> >> >> >> -- >> WITH REGARDS >> ARUN KUMAR P D >> +91-9994794759 >> >> > > > -- > WITH REGARDS > ARUN KUMAR P D > +91-9994794759 > > -- 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

