Skip to content Skip to sidebar Skip to footer

Is It Possible To Place The Overlay View In Youtube Player View In Android?

In my case,set the textview in above of the youtube player view.I am getting the error like unauthorized overlay.Is it possible to overlay the view in youtube player view? below is

Solution 1:

try to add youtube player and and text view in framelayout.

<FrameLayoutandroid:layout_width="wrap_content"android:layout_height="wrap_content"><TextViewandroid:layout_width="wrap_content"android:layout_height="wrap_content"android:id="@+id/text"android:padding="@dimen/four_dp"android:Text="text view" /><YouTubePlayerandroid:id="@+id/player"android:layout_width="wrap_content"android:layout_height="wrap_content" />

and in you activity get the view and call text.bringToFront() there maybe errors but i am sure can resolve them

hope that will help you

Post a Comment for "Is It Possible To Place The Overlay View In Youtube Player View In Android?"