0

Hosting the video online is not possible nor is using an SD card a realistic solution to my issue... Due to several factors such as the likely hood that the SD cards would disappear.

So I found this, and this says it's possible: https://stackoverflow.com/a/5475436/584994

But I can't seem to get the FileInputStream correct... Under the package explorer my file is located under AppName->res->drawable->overview_animatic.mp4

and the string I am passing to FileInputStream is "/res/drawable/overview_animatic.mp4" am I doing this incorrectly?

Does the solution in the above link no longer work?

Is there a better way to play an internal video?

Community
  • 1
  • 1
Mytheral
  • 3,929
  • 7
  • 34
  • 57
  • 1
    Have you tried what was suggested in the top rated answer from this question? http://stackoverflow.com/questions/3028717/how-to-play-videos-in-android-from-assets-folder-or-raw-folder – Michael Jul 25 '12 at 18:49
  • It worked a treat. You should add it as an answer so I can accept it. :) – Mytheral Jul 25 '12 at 19:26

1 Answers1

1

See the top answer for How to play videos in android from assets folder or raw folder? for an explanation of how to play a video from an application resource.

Community
  • 1
  • 1
Michael
  • 57,169
  • 9
  • 80
  • 125