android - In-Project-Videos - Where to store them and which format? -


i have quite complex android app , several functions want provide tutorial videos inside application.

  • where have put video-files in project? in drawable folder images?
  • which format? (mpg, av, ...)
  • do have provide different qualities mdpi, hdpi, ...?

i want provide listview thumbnail of video, title , small description. after user clicks on item of listview want selected video played.

if have lots of videos, don't want put inside apk, because apk size limited + not every user wants download , store on device app more 50 mb. recommend upload videos youtube ( create channel , upload more videos need). able use youtube android api show videos inside app.

if don't have lots of videos (overall < 50 mb), recommend create folder row inside res folder , store videos there. able access built in videoview. supports next formats: supported media formats. example of usage videoview:

videoview videoview = (videoview) findviewbyid(r.id.video_view); mediacontroller mediacontroller = new mediacontroller(this); mediacontroller.setanchorview(videoview); videoview.setmediacontroller(mediacontroller); videoview.setvideouri(uri.parse("android.resource://" + getpackagename() + "/" + r.raw.filename)); videoview.start(); 

Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -