android : YouTubePlayerView video not visible -


i inflating layout on cameraview . layout this

{ linerlayout     relativelayout        youtubeplayerview   } 

this inflated layout elements initilly invisible , on user action these made visible , call

youtubeview.initialize()

the initialise finish listenr call

player.cuevideo(getvideourl()); 

now can see progressindicator first, can see thumbnail of video play control on top. when press play button , video start playing nothing visible. can see cameraview ( ie view when open camera )( on layout inflated ) . video sound coming , video played. if press fullscreen button, opens video in full screen , here fine. can see video . if go small screen again no video sound.

youtubeview.setvisibility(view.visible);         toplayerlinearlayout.setvisibility(view.visible);          toplayerrellayout.setvisibility(view.visible);           youtubeview.initialize(developer_key,                 (oninitializedlistener) applicationactivity); 

please give pointers on happening

please totally blocked

the issue cameraview . dont know why youtubeplayer view behaves . made glview ( camera ) invisible before making youtubeplayerview visible , working .


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -