playing media player in full

49 views
Skip to first unread message

irie...@gmail.com

unread,
Oct 25, 2014, 5:24:16 PM10/25/14
to codenameone...@googlegroups.com
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA
Desktop OS
Simulator
Device

Shai Almog

unread,
Oct 25, 2014, 10:49:32 PM10/25/14
to codenameone...@googlegroups.com, irie...@gmail.com
Is that a question?

irie...@gmail.com

unread,
Oct 26, 2014, 4:08:19 AM10/26/14
to codenameone...@googlegroups.com, irie...@gmail.com


On Saturday, October 25, 2014 11:24:16 PM UTC+2, irie...@gmail.com wrote:
If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans
Desktop OS
Simulator
Device : samsung 2.5 gPocket

Hi:-) I use the following code to switch the mp to fullscreen and in this device the mp stays normal size(not full screen):
btnFullScreen.addActionListener(new ActionListener(){
            public void actionPerformed(ActionEvent evt){
                if(mp!=null){
                    mp.getMedia().setFullScreen(true);
                    mp.getMedia().setNativePlayerMode(true);
                }
            }
        });

Is there something else I should do or can't this device play media(video) in fullscreen?
thanks

Shai Almog

unread,
Oct 26, 2014, 7:51:47 PM10/26/14
to codenameone...@googlegroups.com, irie...@gmail.com
Is that an Android device? Which OS version does it have?
Does it work on other Android devices correctly?

irie...@gmail.com

unread,
Oct 28, 2014, 12:53:53 PM10/28/14
to codenameone...@googlegroups.com, irie...@gmail.com
I have some buttons and a label on the form and the media player is in the center of the form. when I click fullscreen only the media player buttons dissappear and the media player covers the back/play/fwd buttons but my buttons and the label is still there. This is a samsung gt s5300 galaxy pocket device. I'll test it later on other androids. Myabe I should dispose the buttons+label when I go into fullscreen?

I want the video to take up the whole screen.

Chen Fishbein

unread,
Oct 28, 2014, 6:47:14 PM10/28/14
to codenameone...@googlegroups.com, irie...@gmail.com
going fullscreen on android would be best like this Display.getInstance().execute(<your media url>); it will launch the device media players

theroncli...@gmail.com

unread,
Oct 30, 2014, 8:13:50 AM10/30/14
to codenameone...@googlegroups.com, irie...@gmail.com
This method is really awesome:-)
what else can this method do? If I pass a web url would the device browser be launch?

Chen Fishbein

unread,
Oct 30, 2014, 9:20:09 AM10/30/14
to codenameone...@googlegroups.com, irie...@gmail.com, theroncli...@gmail.com
yes

theroncli...@gmail.com

unread,
Oct 30, 2014, 9:43:44 AM10/30/14
to codenameone...@googlegroups.com, irie...@gmail.com, theroncli...@gmail.com
and what about other platforms, will this method work on those, like j2me

On Thursday, October 30, 2014 3:20:09 PM UTC+2, Chen Fishbein wrote:
yes

theroncli...@gmail.com

unread,
Oct 30, 2014, 11:26:25 AM10/30/14
to codenameone...@googlegroups.com, irie...@gmail.com, theroncli...@gmail.com
on the emulator, what does this mean;
java.net.URISyntaxException: Illegal character in path at index 19: file://C:/Documents and Settings/Alll/.cn1/123$theron12$1.mp4
    at java.net.URI$Parser.fail(URI.java:2829)
    at java.net.URI$Parser.fail(URI.java:2829)
    at java.net.URI$Parser.checkChars(URI.java:3002)
    at java.net.URI$Parser.parseHierarchical(URI.java:3086)
    at java.net.URI$Parser.parse(URI.java:3034)
    at java.net.URI.<init>(URI.java:595)
    at com.codename1.impl.javase.JavaSEPort.execute(JavaSEPort.java:4548)
    at com.codename1.impl.javase.JavaSEPort.execute(JavaSEPort.java:4548)
    at com.codename1.ui.Display.execute(Display.java:2690)
    at com.Android.IClips.IClips$96.actionPerformed(IClips.java:5166)
    at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:345)
    at com.codename1.ui.Button.fireActionEvent(Button.java:393)
    at com.codename1.ui.Button.released(Button.java:424)
    at com.codename1.ui.Button.pointerReleased(Button.java:512)
    at com.codename1.ui.Form.pointerReleased(Form.java:2373)
    at com.codename1.ui.Form.pointerReleased(Form.java:2309)
    at com.codename1.ui.Component.pointerReleased(Component.java:2607)
    at com.codename1.ui.Display.handleEvent(Display.java:1913)
    at com.codename1.ui.Display.edtLoopImpl(Display.java:1009)
    at com.codename1.ui.Display.invokeAndBlock(Display.java:1144)
    at com.codename1.ui.Display.invokeAndBlock(Display.java:1179)
    at com.codename1.ui.Form.showModal(Form.java:1567)
    at com.codename1.ui.Dialog.showModal(Dialog.java:1089)
    at com.codename1.ui.Dialog.show(Dialog.java:470)
    at com.codename1.ui.Dialog.showPopupDialog(Dialog.java:1231)
    at com.codename1.ui.Dialog.showPopupDialog(Dialog.java:1105)
    at com.Android.IClips.IClips.setSettingsPopupMenu(IClips.java:4980)
    at com.Android.IClips.IClips$33.actionPerformed(IClips.java:1943)
    at com.codename1.ui.util.EventDispatcher.fireActionEvent(EventDispatcher.java:345)
    at com.codename1.ui.Button.fireActionEvent(Button.java:393)
    at com.codename1.ui.Button.released(Button.java:424)
    at com.codename1.ui.Button.pointerReleased(Button.java:512)
    at com.codename1.ui.Form.pointerReleased(Form.java:2373)
    at com.codename1.ui.Form.pointerReleased(Form.java:2309)
    at com.codename1.ui.Component.pointerReleased(Component.java:2607)
    at com.codename1.ui.Display.handleEvent(Display.java:1913)
    at com.codename1.ui.Display.edtLoopImpl(Display.java:1009)
    at com.codename1.ui.Display.mainEDTLoop(Display.java:940)
    at com.codename1.ui.RunnableWrapper.run(RunnableWrapper.java:120)
    at com.codename1.impl.CodenameOneThread.run(CodenameOneThread.java:176)

I tested it also on galaxy pocket gt-s5300 and nothing happens...

Shai Almog

unread,
Oct 30, 2014, 9:18:21 PM10/30/14
to codenameone...@googlegroups.com, irie...@gmail.com, theroncli...@gmail.com
How did you get the URL?

theroncli...@gmail.com

unread,
Oct 31, 2014, 3:00:24 AM10/31/14
to codenameone...@googlegroups.com, irie...@gmail.com, theroncli...@gmail.com
I saved the video in appHomePath and when I play I pass the filename to the following method:
public String getAppDirectory(String strFileName){
        String root=FileSystemStorage.getInstance().getAppHomePath();
        if(!root.endsWith("/")){
            root+="/";
        }
       
        String strVideoDir=root+strFileName;
        return strVideoDir;

Shai Almog

unread,
Oct 31, 2014, 7:39:27 AM10/31/14
to codenameone...@googlegroups.com, irie...@gmail.com, theroncli...@gmail.com
We'll try to fix it for the next update.
Reply all
Reply to author
Forward
0 new messages