Video stretching

19 views
Skip to first unread message

Gareth Murfin

unread,
Jul 10, 2017, 3:35:12 AM7/10/17
to CodenameOne Discussions
Lets say I add a mediaplayer to the centre of a borderlayout and tunr the phone landscape, it appears that the video is stretched on android, to fill the whole borderlayout, but on iOS the video does not stretch. Is there a way to stop it filling the full space in android?

Shai Almog

unread,
Jul 11, 2017, 12:51:29 AM7/11/17
to CodenameOne Discussions
I agree we need this behavior to be more consistent across platforms, can you please file an issue on that?

Gareth Murfin

unread,
Jul 13, 2017, 9:02:00 PM7/13/17
to CodenameOne Discussions
so its impossible to play a video in android in landscape without stretching right now ? or any other tricks like not using borderlayout etc?

Gareth Murfin

unread,
Jul 13, 2017, 9:58:18 PM7/13/17
to CodenameOne Discussions
trying Display.getInstance().execute(url); that works will see if client likes :))

--
You received this message because you are subscribed to a topic in the Google Groups "CodenameOne Discussions" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/codenameone-discussions/P0E97zrv12U/unsubscribe.
To unsubscribe from this group and all its topics, send an email to codenameone-discussions+unsub...@googlegroups.com.
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/53dec398-4a07-4e06-b199-38300f2cbd73%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Gareth Murfin
(Android Freelancer - www.garethmurfin.co.uk)

Reply all
Reply to author
Forward
0 new messages