play videos from local source

561 views
Skip to first unread message

Claudio

unread,
Jun 8, 2015, 10:49:53 AM6/8/15
to mitappinv...@googlegroups.com
Hi, is it possible with AI2 to play videos that you have put on a particular directory on sd card?

Thanks

SteveJG

unread,
Jun 8, 2015, 10:59:36 AM6/8/15
to mitappinv...@googlegroups.com
Yes.  Although this tutorial  

Corgi Video–a tutorial demonstrating how to view and use videos with AI2   largely shows how to stream video, one of the examples shows how to use a video stored as a resource in Media.   Be aware, the maximum a locally store video can be is one Mb.


Regards,
Steve

Claudio

unread,
Jun 8, 2015, 12:56:03 PM6/8/15
to mitappinv...@googlegroups.com
Thanks for your reply :)
My need is that the app streams the videos inside a folder. And video will be sure larger then 1mb...
There will be no file choosing, should stream every video inside... 

SteveJG

unread,
Jun 8, 2015, 1:38:49 PM6/8/15
to mitappinv...@googlegroups.com
You are out of luck Claudio.  App Inventor cannot play videos larger than 1 Mb.

App Inventor for Android only permits video files under 1 MB and limits the total size of an application to 5 MB, not all of which is available for media (video, audio, and sound) files. If your media files are too large, you may get errors when packaging or installing your application, in which case you should reduce the number of media files or their sizes. Most video editing software, such as Windows Movie Maker and Apple iMovie, can help you decrease the size of videos by shortening them or re-encoding the video into a more compact format.

You can also set the media source to a URL that points to a streaming video, but the URL must point to the video file itself, not to a program that plays the video.

You might be able to stream larger videos by building your app with Eclipse or Android Studio.


Regards,
Steve
Reply all
Reply to author
Forward
0 new messages