VideoView can't play this video...

AntonBrz

Member
Licensed User
Longtime User
I searched for previous posts on Video View and found quite a few and read them. I try to avoid asking a question over again. From the forum I learned how to set up Video View and initialize it. I'm showing Audio 1.10 checked in the library. Compiling gets past the initializing.
I won't need more than six short videos which repeat during the program, which means it will only pad the app one megabyte, and add the visual sophistication of short movies. And by having them INSIDE the app instead of on line, it insures the app will not have to wait for any connection problems.

I tried storing a short video in DirAssets. It found the video, 140 thousand bytes. I had to use Dir.Internal (the program couldn't find the movie when I tried to load it from DirAssets)

When it gets to the load and play subroutine, which is a button action sub, although the program compiles and installs on the emulator, When it runs on the emulator and I press that button it stops the program with a :"can't play this video" error.

I was trying to show an mp4 and got the error, so I converted it to a 3Gp on the site one of the posts mentioned. I still get the "Can't play this video" error. I can play the video back fine on other players like VLC media player (although it looks fuzzy since converting it to 3gp it plays fine) Haven't tried it on a tablet yet. It hasn't gotten past the emulator. Will you please help?

Thank you

Anton
---------------------------------------------------------------------------------------------------------
Heavy Chinese 10 inch Android Dragon tablet, a 7 inch Chinese tablet and Google Nexus One.
 
Last edited:

AntonBrz

Member
Licensed User
Longtime User
Tested on tablet, same error.

VideoView uses the native media player to play movies. This means that different devices might support different formats. Test it on a real device and see it if works.

Thank you, Erel. Although it doesn't work on my Dragon Tablet either, you're probably right. I have Samsung 7 inch and Google 7 Inch tablets on the way for testing, but even assuming I could find a combination of the right tablet and the right video file form, I can't sell an app with the provider "Works on Google Android 7 inch tablet". I'll work up another solution not involving
video. One of my video programs breaks up videos into separate numbered bitmaps. I never have problems putting bitmaps (pngs, etc) into an Imageview, so I'll use a code displaying several images with a short delay between them. The effect of something moving would still liven a otherwise static display of buttons and still images, and I'm sure Imageview works on any tablet.

Thanks
Anton
 
Upvote 0

Mark Read

Well-Known Member
Licensed User
Longtime User
Hello,
have you tried the Vitamio-plugin in a video view. I use it to stream flv files and it works a treat. On the first run you will have to install the plugins to handy or tablet.

Further info you can find hier.

Hope this helps. If you need more help, I can give you my video activity.

Regards
Mark
 
Upvote 0

AntonBrz

Member
Licensed User
Longtime User
Vitamino vrs VideoView

The viatameno module sounds too good to be true, so my first instinct is not to jump for joy. I read it and saw 'may collect usage statistics'. Thank you for telling me about this. I think I would be too worried it could tap into other info in the app, especially because I might use the Google store routines for in app purchases. What does Erel think of using this?

Anton
 
Upvote 0

AntonBrz

Member
Licensed User
Longtime User
Thank all, doing without.

Thank you Erel, and Mark too. Rather than spend another twelve hours working on some form of video view, I'm going with images. I found if I use an ImageView on the screen I can switch to a different bitmap with every variation of user input, which acts almost like cutscenes and livens up the program at storage more compact than movie files. Anyhow, that's my solution.
I don't know nothing, I'm a newbie. But it works well enough and looks good.
Your answers may have helped others who will use Video View and You Tube, both of which have a valuable place in apps.

Anton :sign0089:
 
Upvote 0
Top