Closed GoogleCodeExporter closed 9 years ago
Hi,
You should follow the steps instead:
1. Create YouTubePlayer instance,
2. Add wmode parameter:
youTubePlayer.setConfigParameter(DefaultConfigParameter.TransparencyMode,
TransparencyMode.OPAQUE);
3. add player to some panel
4. Create and display some popup panel.
Doing 'setConfigParameter' after adding player to panel HAS NO effect. You
should do it BEFORE.
HTH.
Original comment by sbrah...@gmail.com
on 14 Jan 2013 at 10:34
Hi,
I had been trying this approach already, but then I'm getting
NullPointerException in YouTubePlayer.java, line 666:
swf.addParam("wmode", ((TransparencyMode) value).name().toLowerCase());
It's because "swf" variable is instanciated in onLoad() method:
@Override
protected void onLoad() {
swf = new PlayerWidget(YouTubePlayerProvider.PROVIDER_NAME, "YouTube", playerId,
getNormalizedVideoAppURL(_vURL, pps), false);
(...)
and it's called after the widget is added to some panel. Before that "swf" is
null.
Original comment by Krzyszto...@gmail.com
on 14 Jan 2013 at 12:11
Original comment by sbrah...@gmail.com
on 15 Jan 2013 at 9:18
Original comment by sbrah...@gmail.com
on 14 May 2013 at 2:36
Original issue reported on code.google.com by
Krzyszto...@gmail.com
on 12 Jan 2013 at 10:19