• 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

YouTube Player With Tablayout stop after seconds

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In VideoFragmenFragment I generated two tabs:





and the style




Now for Tab1 the code is




and the style



The code for tabe2 is same as tab1 but the different parameters like YPlayer is YPlayer2 and so on but I will put the style for tab2



Now everything is working fine, but when I play youtube ob tab1 and go to tab2 and click on one of the items the video is playing for a second and stop. when I go back to tab I discover the youTubePlayerFragment Video on
tab1 is the from the previous action from the tab2,
I need to empty the youTubePlayerFragment when I go to tab1 or tab2 How to do that?

 
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 need to call YPlayer.release(); when the Tab changed, how to do that
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic