Can't play videos from sdcard

2,254 views
Skip to first unread message

Leonardo Montenegro

unread,
Nov 13, 2013, 12:29:16 PM11/13/13
to genymoti...@googlegroups.com
Hi all.

I'm developing an Android app with Titanium Studio that basically does the following:
  • Download MP4 and WebM video files from an apache server and save them in sdcard, inside a folder called "videos";
  • Play all videos inside "videos" folder, one file after another;
  • Start over, after five minutes.
Before Genymotion, I was testing my app on SDK emulator and real devices. When I heard that Genymotion is faster than emulator and has Graphic Acceleration support, quickly I downloaded it and tested my app on it, believing that the downloaded videos would play on it. I've tested my app on an Genymotion Android image with Android 4.2, but no video could be played.

I tried playing videos outside my app, by opening manually the files inside "videos" folder using Astro File Explorer. The result is the same: no video could be played, but at least system returned me a message saying that "Can't play video".

That's the main foundation of my app, in a way that I'm unable to test it using Genymotion. I can do it using real devices, but my job would be much easier with Genymotion. Is video playback supported by Genymotion?

Jiancong Xie

unread,
Nov 13, 2013, 8:52:22 PM11/13/13
to Leonardo Montenegro, genymoti...@googlegroups.com
I think it's related to opengl rendering part. Genymotion has only
supported opengl 2D feature while with NO 3D feature. And this part is
currently rely on google's code base which google doesn;t support
right now.

I think you can't play videos on SDK emulator too. But I can play
stream media such as flash on genymotion.

2013/11/14 Leonardo Montenegro <leomont...@gmail.com>:
> --
> You received this message because you are subscribed to the Google Groups
> "Genymotion Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to genymotion-use...@googlegroups.com.
> To post to this group, send email to genymoti...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.

Julien Bolard

unread,
Nov 14, 2013, 4:36:20 AM11/14/13
to Jiancong Xie, Leonardo Montenegro, genymoti...@googlegroups.com
Hi,

HD video playback is not supported on Genymotion (yet). That might be the reason that you can't play your vids with it.

Regards

Leonardo Montenegro

unread,
Nov 14, 2013, 6:26:47 AM11/14/13
to genymoti...@googlegroups.com
My videos aren't HD. Most of them are on 360p or 480p quality. But most are on MP4 with h264 video coded and aac audio codec.

I guess JiancongXie is right. Video playback on Genymotion probably rely on OpenGL with 3D features. So I guess I'll always need a real device for testing it.

But I didn't tested 240p videos, neither other formats such as AVI or 3GP per example. Dunno if it'll work, but I'll try it anyway and post results.

Thanks for the info, guys!

Julien Bolard

unread,
Nov 14, 2013, 6:39:58 AM11/14/13
to Leonardo Montenegro, genymoti...@googlegroups.com

In fact, the problem come from a codec problem / hardware decoding of h264.

--

Leonardo Montenegro

unread,
Nov 14, 2013, 8:50:20 AM11/14/13
to genymoti...@googlegroups.com
What about videos in other codecs/formats? Anyone know of an specific format that works on Genymotion? If at least one format is supported, it'd be great for testing purposes.

Jiancong Xie

unread,
Nov 14, 2013, 8:08:11 PM11/14/13
to Leonardo Montenegro, genymoti...@googlegroups.com
Stream media is okay, I can visit youtube.com

2013/11/14 Leonardo Montenegro <leomont...@gmail.com>:
> What about videos in other codecs/formats? Anyone know of an specific format
> that works on Genymotion? If at least one format is supported, it'd be great
> for testing purposes.
>

Leonardo Montenegro

unread,
Nov 18, 2013, 10:19:31 PM11/18/13
to genymoti...@googlegroups.com
Thanks to you all, I discovered a video format that works like a charm: 3GP.

I'll test with this format now. Thanks a lot!
Reply all
Reply to author
Forward
0 new messages