Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

Not able to open video gallery in android emulator and android device.

$
0
0

Hello,

I am trying to implement the "upload videos" from gallery functionality but it is not working as expected.

Titanium.Media.openPhotoGallery({
    success : function(event) {
        if (event.mediaType == Titanium.Media.MEDIA_TYPE_VIDEO) {
            Ti.API.info(event.media);
        }
        else{
            alert("Please select video file");
        }
    },
    cancel : function(e) {
        alert(e);
    },
    error : function(err) {
        Ti.API.error(err);
    },
    mediaTypes : [Titanium.Media.MEDIA_TYPE_VIDEO]
});
I am using the above mentioned code.

It takes me to gallery but only images are shown. Is there any work around for video upload in android. Any help is appreciated

Thanks,


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>