Just an observation, but when I tested the URL in StringPlay, appears to be blank and of 0 seonds length. Try another URL (test on your pc first), and see if the issue remains.
On 9 June 2012 12:32, vaibs malviya <[email protected]> wrote: > ok here is my code to opne a youtube video in webview > plz have a look > > public void onCreate(Bundle savedInstanceState) > { > super.onCreate(savedInstanceState); > setContentView(R.layout.youtubevedio); > back=(Button) findViewById(R.id.back); > myWebView = (WebView) findViewById(R.id.web); > myWebView.getSettings().setJavaScriptEnabled(true); > myWebView.getSettings().setPluginState(PluginState.ON); > myWebView.getSettings().setLoadWithOverviewMode(true); > myWebView.getSettings().setPluginsEnabled(true); > myWebView.getSettings().setUseWideViewPort(true); > myWebView.getSettings().setSaveFormData(true); > myWebView.getSettings().setBuiltInZoomControls(true); > String Play = "<html><body bgcolor="+"#000000"+"><iframe width=\"320\" > height=\"400\" src=\"http://www.youtube.com/embed/g6-8zkbCjl8\" > frameborder=\"0\" allowfullscreen></iframe></body></html>"; > > myWebView.loadData(Play, "text/html", "utf-8"); > > > When i click on to the video it's some time load and black screen is > display > > > On Sat, Jun 9, 2012 at 4:29 PM, Fred Niggle <[email protected]>wrote: > >> If you post your code of what you have tried so far you'll get a better >> reception to your question. >> >> On 9 June 2012 11:36, vaibs malviya <[email protected]> wrote: >> >>> any one know, how to code to play a youtube ifream link in webview >>> >>> -- >>> 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 >> >> >> >> >> -- >> Magnetic Door Alarm >> app<https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm>is >> now available in Google Play >> >> -- >> 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 -- Magnetic Door Alarm app<https://play.google.com/store/apps/details?id=com.nds.magneticdooralarm>is now available in Google Play -- 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

