Re: [android-developers] play youtube video in webview using iframe?

2012-11-08 Thread Swapnil Deshmukh
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=330param name=movie 
 value=http://www.youtube.com/v/here is your video 
 id?version=3amp;hl=pt_BRamp;rel=0   
 /paramparam name=allowFullScreen value=true/param
 param name=allowscriptaccess value=always/param
 embed src=http://www.youtube.com/v/here is your video 
 id?version=3amp;hl=pt_BRamp;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 hariar...@gmail.comjavascript:
  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 
 hitendr...@gmail.comjavascript:
  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 hariar...@gmail.comjavascript:
  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 
 hitendr...@gmail.com javascript: wrote:

 any help,pls?


 On Wed, Jul 4, 2012 at 6:36 PM, Hitendrasinh Gohil 
 hitendr...@gmail.com 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 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com 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 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com 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 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com 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 
 android-d...@googlegroups.comjavascript:
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] play youtube video in webview using iframe?

2012-11-06 Thread Kankatala Venkatesh


On Wednesday, July 4, 2012 7:37:49 PM 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=330param name=movie 
 value=http://www.youtube.com/v/here is your video 
 id?version=3amp;hl=pt_BRamp;rel=0   
 /paramparam name=allowFullScreen value=true/param
 param name=allowscriptaccess value=always/param
 embed src=http://www.youtube.com/v/here is your video 
 id?version=3amp;hl=pt_BRamp;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 :)



 its working but largre video. how change the height and width plz rly me 

thank u arun.
 

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Play youtube video on WebView

2012-09-20 Thread Marina Cuello
It could be you need to enable hardware acceleration on your WebView or
perhaps set a custom WebChromeClient on your WebView to open it as
fullscreen. It depends on your target platform and your needs.
Search for Android WebView HTML5 video and you'll find some help. I'm
still working on it.

Marina
On Sep 19, 2012 11:36 AM, uud ashr uuda...@gmail.com wrote:

 Hi,

 I'm trying to use webview to open web page that contains embeded youtube
 video such as

 iframe width=420 height=315 src=
 http://www.youtube.com/embed/MKZVNrC0QYA; frameborder=0
 allowfullscreen/iframe

 The web was shown, but when I play the video, there is no picture played,
 I can only hear the sound only.

 I try this on gingerbread and ICS.
 The video works fine on stock browser, chrome and dolphin.

 Is there any special trick to make this work

 Regards,
 Uud

 --
 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+unsubscr...@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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Play youtube video on WebView

2012-09-19 Thread uud ashr
Hi,

I'm trying to use webview to open web page that contains embeded youtube
video such as

iframe width=420 height=315 src=
http://www.youtube.com/embed/MKZVNrC0QYA; frameborder=0
allowfullscreen/iframe

The web was shown, but when I play the video, there is no picture played, I
can only hear the sound only.

I try this on gingerbread and ICS.
The video works fine on stock browser, chrome and dolphin.

Is there any special trick to make this work

Regards,
Uud

-- 
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+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] play youtube video in webview using iframe?

2012-07-04 Thread Hitendrasinh Gohil
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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] play youtube video in webview using iframe?

2012-07-04 Thread Hitendrasinh Gohil
any help,pls?

On Wed, Jul 4, 2012 at 6:36 PM, Hitendrasinh Gohil hitendrasin...@gmail.com
 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en