codenameone - Media has stopped working the way it should -


i have app made on 2 years ago has list of videos. when 1 of list buttons clicked, media played full screen. working ok on android (i have't tried other platforms) until resubmitted build server on 31-07-2016. after noticed videos no longer working full screen. month, resubmitted app build server , there couple of things don't work. noticeable feature video stretched in portrait mode fill form (even without setfullscreen()). other issue have noticed if click button , play video, new video , old video still playing @ side / corner of screen. have tried pause() , cleanup() seem have no effect. have tried adding media directly container , using mediaplayer , found same issues both.

    try {         ((com.codename1.ui.layouts.borderlayout) getlayout()).setcenterbehavior(com.codename1.ui.layouts.borderlayout.center_behavior_center_absolute);         media media = createmedia(currentexternalcontent.getis(), "video/m4v");         component videocomponent = media.getvideocomponent();         container videocontainer = new container(new com.codename1.ui.layouts.borderlayout());         videocontainer.addcomponent(borderlayout.center, videocomponent);         addcomponent(borderlayout.center, videocontainer);         revalidate();         media.play();     } catch (ioexception ex) {         // dialog.show("catch", ex.getmessage(), "ok", "cancel"); // gives 'read failed: ebadf (bad file descriptor)'     } } 


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -