You can add webview your layout..it will be simple.. 2011/10/9, gyanu maharjan <[email protected]>: > check this.. > http://stackoverflow.com/questions/4810421/open-video-player-in-webview > > On Sun, Oct 9, 2011 at 1:46 PM, Siva Prakash > <[email protected]>wrote: > >> Yes I want to play a video from You tube or from another HTML file. >> >> >> >> >> On Sun, Oct 9, 2011 at 1:22 PM, Efi Merdler-Kravitz <[email protected] >> > wrote: >> >>> By video you mean youtube? >>> >>> On Oct 9, 7:49 am, Siva Prakash <[email protected]> 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 >>> > <[email protected]>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 <[email protected]> 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 >>> [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 >>> > >>> > > -- >>> > > 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 >>> [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 >>> >> >> -- >> 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
-- 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

