[android-developers] Re: Video in WebView
By video you mean youtube?
On Oct 9, 7:49 am, Siva Prakash <siva.yuvan2...@gmail.com> wrote:
> Thanks
>
> This code is working for normal web pages but not with video/audio
>
> private WebView myWebView;
> private ProgressDialog pd ;
>
> this.myWebView = (WebView) this.findViewById(R.id.webView);
>
> Bundle extras = getIntent().getExtras();
> if(extras !=null )
> {
> String strURL = extras.getString("SCANNED_URL");
> if (strURL != "")
> {
>
> myWebView. getSettings().setJavaScriptEnabled(true);
> myWebView. getSettings().setAllowFileAccess(true);
>
> myWebView. getSettings().setPluginsEnabled (true);
>
> FrameLayout mContentView = (FrameLayout) getWindow().
> getDecorView().findViewById(android.R.id.content);
> final View zoom = this.myWebView.getZoomControls();
>
> zoom.setVisibility(View.GONE);
> this.pd = ProgressDialog.show(WebViewActivity.this, "Progress",
> "At Work...", true);
>
> this.myWebView.loadUrl(strURL);
>
> }
> }
>
> Thanks
>
> On Sun, Oct 9, 2011 at 10:22 AM, Subin Sebastian
> <subinsebast...@gmail.com>wrote:
>
>
>
> > Hello Siva,
> > I suggest you to put your code here for someone to find out why it
> > doesn't do that.
>
> > Regards.
>
> > On 10/9/11, Siva Prakash <siva.yuvan2...@gmail.com> wrote:
> > > Hi
>
> > > Im trying to load a video in WebView but it doesnt do that? Any settings
> > > need to be marked?
>
> > > --
> > > 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
>
> > --
> > Subin Sebastian
> >http://in.linkedin.com/in/subinsebastien
> >https://plus.google.com/subin<
> >https://plus.google.com/118262481642737404812>
>
> > --
> > 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
--
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
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home