2

I'm trying to make a video run in the background of my application.

I've searched high and low and the closest thing I could find was this other post: Integrating video file in android app as app background

The code provided does not work (I get 3 errors in java).

Does anyone know how I would go about doing this? I want it to play in the background as I would later like to set a zoom in and out buttons that will allow you to magnify the video playing in the background. Thanks in advance.

Community
  • 1
  • 1
EGHDK
  • 17,818
  • 45
  • 129
  • 204

1 Answers1

4

I am not sure whether you can put a video as a background view. But you can try to use a video view and put it inside Frame layout.

You can use this link for further reference: android: video as background view

Community
  • 1
  • 1
curiousguy
  • 609
  • 3
  • 13
  • Will try this within 24 hours and I'll let you know. Thanks – EGHDK Mar 10 '12 at 07:54
  • I couldn't get a video to play in a video view. I tried following some tutorials. No luck so far. – EGHDK Mar 12 '12 at 21:11
  • I believe I found my problem. I was trying to set a path for the video in my actual res/raw folder. I need to first save it to SD card it seems, but I was having a problem because my Galaxy Nexus does not have an SD card and the only file system paths I've seen on android started with SDCARD/Something/Folder/File.extension. Thanks – EGHDK Mar 14 '12 at 12:50