transparency - YouTube Player not working with a Transparent Panel Menu Android -


the youtube player play videos no problem either without transparent panel on form or play them in full screen, transparent panel has images in nothing special. if take out transparent panel, youtube player works desired, embedded in app. if add transparent panel form, when not play in full screen. video starts , stops instantly. assume has transparent panel can not understand happening. or thoughts great. java file not change except initpopup not there. shortened java file version below.

xml layout file below:

   <relativelayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/mlayout" android:layout_width="fill_parent" android:layout_height="fill_parent">     <relativelayout         android:layout_width="wrap_content"         android:layout_height="wrap_content" >          <com.google.android.youtube.player.youtubeplayerview             android:id="@+id/youtube_view"             android:layout_width="match_parent"             android:layout_height="wrap_content"             android:layout_alignparentleft="true"             android:layout_below="@+id/spnrpsa" >         </com.google.android.youtube.player.youtubeplayerview>     </relativelayout>  <com.transparentpanel     android:id="@+id/popup_window"     android:layout_width="fill_parent"     android:layout_height="wrap_content"     android:layout_alignparentbottom="true"     android:layout_gravity="bottom"     android:gravity="left"     android:orientation="vertical"     android:padding="1px" >  <com.transparentpanel>  </relativelayout> 

java file below:

public final class psa extends youtubefailurerecoveryactivity{    private animation animshow, animhide;    private youtubeplayer player;   @override protected void oncreate(bundle savedinstancestate) {     super.oncreate(savedinstancestate);     setcontentview(r.layout.psa);     initpopup();     }      private void initpopup() {      final transparentpanel popup = (transparentpanel) findviewbyid(r.id.popup_window);      //  start out popup hidden.     popup.setvisibility(view.gone);      if (pubvars.screenorientation==0){         animshow = animationutils.loadanimation( this, r.anim.popup_show);         animhide = animationutils.loadanimation( this, r.anim.popup_hide);     }             if (pubvars.screenorientation==1){          animshow = animationutils.loadanimation( this, r.anim.l_popup_show);          animhide = animationutils.loadanimation( this, r.anim.l_popup_hide);      }     //animshow = animationutils.loadanimation( this, r.anim.popup_show);     //animhide = animationutils.loadanimation( this, r.anim.popup_hide);      final imageview   showbutton = (imageview) findviewbyid(r.id.show_popup_button);     final imageview   hidebutton = (imageview) findviewbyid(r.id.hide_popup_button);     showbutton.setonclicklistener(new view.onclicklistener() {         public void onclick(view view) {             popup.setvisibility(view.visible);             popup.startanimation( animshow );             showbutton.setenabled(false);             hidebutton.setenabled(true);     }});      hidebutton.setonclicklistener(new view.onclicklistener() {         public void onclick(view view) {             popup.startanimation( animhide );             showbutton.setenabled(true);             hidebutton.setenabled(false);             popup.setvisibility(view.gone);     }});       }    } 

i must missing simple. in advance, new android.

youtube player view not authorize overlays. if it's transparent layout(relative, frame, ..). player stops video , log logcat useful info. case reported "youtubeplayer covered".


Comments

Popular posts from this blog

plot - Remove Objects from Legend When You Have Also Used Fit, Matlab -

java - Why does my date parsing return a weird date? -

Need help in packaging app using TideSDK on Windows -