The problem is when I put the height style of the iframe as percent unit the video doesn't appear (but still occupies space), but if I put another unit (px, em) the video appears. For example, this code doesn't show the video on Android: page = "<html style='background-color:#e7e8e9;'><body><iframe style='width:100%; height:90%; display:block;' src='" + linkVideo + "' frameborder='0' allow='autoplay; encrypted-media' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></body></html>";
But this code shows the video on Android (I changed the percent unit to px), but the size between devices isn't consistent (in some devices the video appears with scrollbar): int h = (int) (Display.getInstance().getDisplayHeight() * 0.20); page = "<html style='background-color:#e7e8e9;'><body><iframe style='width:100%; height:" + h + "px; display:block;' src='" + linkVideo + "' frameborder='0' allow='autoplay; encrypted-media' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></body></html>"; -- You received this message because you are subscribed to the Google Groups "CodenameOne Discussions" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. Visit this group at https://groups.google.com/group/codenameone-discussions. To view this discussion on the web visit https://groups.google.com/d/msgid/codenameone-discussions/7b842919-df42-490c-8485-c38c09a51826%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
