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

Android Media Library module

$
0
0

how to get local storage video file thumbnail image by using URL; i am using below code and module example:

    var videourl = Titanium.Filesystem.getFile(currentIncidentDir.nativePath, filename + '.mp4');;

    var list = media.getItems(media.MEDIA_TYPE_VIDEO);
    alert(JSON.stringify(list));

    var image =media.getVideoThumbnail(videourl,media.THUMBANIL_MINI);
    alert("thumb: "+image);


    Module example:

    Refer Link:https://github.com/mano-mykingdom/android-media-library

Viewing all articles
Browse latest Browse all 8068

Trending Articles



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