openGeeksLab / codenameone

Automatically exported from code.google.com/p/codenameone
0 stars 0 forks source link

openImageGallery, need support for video files #1377

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Per my email thread with Shai...

I'm using Display.openImageGallery to select files for upload.   Currently, it 
only allows selecting image files, but it would work very well if I also could 
pick video files as well.  

Display.getInstance().openImageGallery(new ActionListener() {
            public void actionPerformed(ActionEvent evt) {
                if (evt != null) {
                    String filename = (String) evt.getSource();
                    .......
                }
            }
        });

Thanks,
Josh

Original issue reported on code.google.com by j...@teamxstream.com on 27 Feb 2015 at 12:23

GoogleCodeExporter commented 8 years ago
I'd define it that the gallery API should probably be generalized to provide 
something like: image, image & video, video. Possibly also the ability to save 
the image to the gallery.
Chen, can you evaluate?

Original comment by shai.almog on 27 Feb 2015 at 4:49

GoogleCodeExporter commented 8 years ago
Hello, 
Just checking in to see if this enhancement is viable.   My app is done, aside 
from this one item, so I'm not sure if I should continue holding or release 
without it.

Thanks,
Josh

Original comment by j...@teamxstream.com on 4 Mar 2015 at 8:14

GoogleCodeExporter commented 8 years ago
Hi,
It does seems like a viable enhancement, I will try to squeeze this feature in 
the weekend

Original comment by cf27...@gmail.com on 5 Mar 2015 at 8:28

GoogleCodeExporter commented 8 years ago
added openGallery to select video and image - implemented on simulator and 
android, moving back to Shai for iOS implementation

Original comment by cf27...@gmail.com on 6 Mar 2015 at 2:10

GoogleCodeExporter commented 8 years ago
Continuing the delegation chain to Steve ;-)

Original comment by shai.almog on 6 Mar 2015 at 2:46

GoogleCodeExporter commented 8 years ago
Checking in to see if this is close to ready?

Original comment by j...@teamxstream.com on 16 Mar 2015 at 6:00

GoogleCodeExporter commented 8 years ago
This is now in SVN.
https://code.google.com/p/codenameone/source/detail?r=2199

Original comment by steve.ha...@codenameone.com on 16 Mar 2015 at 9:15

GoogleCodeExporter commented 8 years ago
First test was successful. 
I'm deploying to Mac/OSX as well as tablets, so it would be great if you could 
include all of these file types for the video gallery.

.mov
.scmov
.gbmov
.f4v
.mp4
.m2ts
.mts
.ts
.wmv
.vob
.m4v
.flv
.mod
.mkv
.avi
.mpg
.3gp

Currently only...
model.addExtensionFilter("mp4");
model.addExtensionFilter("3pg");
model.addExtensionFilter("avi");
model.addExtensionFilter("mov");

Original comment by j...@teamxstream.com on 16 Mar 2015 at 9:43

GoogleCodeExporter commented 8 years ago
Testing on android work as well, but it takes 20 seconds or more to pull up the 
gallery.
Josh

Original comment by j...@teamxstream.com on 16 Mar 2015 at 10:11

GoogleCodeExporter commented 8 years ago
I have added the video extensions that you requested here.  SVN rev 2200.  
They'll be included in the next update.

Original comment by steve.ha...@codenameone.com on 16 Mar 2015 at 11:13

GoogleCodeExporter commented 8 years ago
Awesome, thanks Steve!

Original comment by j...@teamxstream.com on 16 Mar 2015 at 11:26