• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

How to load YouTubePlayer using YouTubePlayerFragment inside another Fragment

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to play YouTube video inside the fragment.
My activity consists of navigation drawer on which when I click on item 3 a fragment will open
inside this fragment I want to playing youtube video.
in Another word YouTube Fragment inside Fragment.



I want the YouTubePLayer showing in the Fragment FragmentTwo.class



and the style is



I tried the soulation in http://stackoverflow.com/questions/26458919/integrating-youtube-to-fragment , but it didn't work

Any Help Please?
 
Greenhorn
Posts: 8
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What's the problem you are facing?
Can you please specify what's happening or what error do you get?

If there is any stack trace will be helpful.
 
Muhannd Dhahier
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

 
Muhannd Dhahier
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I solved it, I used framelayout instead of the fragment.
 
Mohammad Hamed
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good to hear that.

Good luck with your app.
 
Muhannd Dhahier
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thnak you Moammed, now I facing another issue, My have a Fragment that holds Tablayout ( 2 tabs) each tab will have a recycleview and when I click on the item will play a youtube video, If I play the video in tab1 then go to tab2 and click on one of the items also in recycleview the video play one second and stop ,If I go to tab1 one the same

any idea, If you need the code  I will post it in another post
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic