I am using the code available here VideoView Example. This code runs properly on Android emulator 1.6 but not on 2.1.
In 2.1 it only plays the audio and not video. I have gone through several other threads where this issue has been mentioned. I will like to know whether this problem is limited to emulator only or the devices also have the same problem.
Regards
Sunil
Emulators will have great difficulty playing back video, due to speed. The emulator does not have hardware acceleration -- combine that with converting ARM opcodes to x86 on the fly, and the emulator cannot keep up. I have a quad-core 2.6GHz desktop, and I can only occasionally get the emulator to play back video.
IMHO, to work with video, you need a device.
Try it in real android device,because emulator can not play video
Related
I want to write an game for Android. To present it very well, it has to have an YouTube movie in the Google Play Store.
How can I do this? Because ADB only produce a slideshow, because it's to slow. Is there an app for recording out there?
PS: I only have Tegra devices (Galaxy Nexus and Nexus 7), so http://pkg.to/com.ms.screencast doesn't work, yet.
The new Android 4.2 has a wireless display feature allowing the send the screen's content to TV screens etc. As you have Nexus devices I guess you'll get the update very soon. I do not know the technical details but I'm quite sure there will be possibilities to record the sent signal.
See this anouncement: http://www.android.com/whatsnew/
You may want to try using the emulator and record using a regular video recording program such as FRAPS. The performance of the x86 emulator has improved greatly and also supports GPU emulation.
Here is a page from the Android documentation outlining how to enable hardware acceleration for the emulator:
http://developer.android.com/tools/devices/emulator.html#acceleration
The downside to this approach is that multi-touch gestures aren't easy to do.
I am working on playing a video in my application, and I am observing some strange results in doing so. Videos that I am trying to play are on server and I have to get them to run android's native videoplayer.
I have tested the results on several devices and it is found that video runs on devices having OS version greater than equal ton 2.3.3 but does not run on others, showing error (1, -1). Now my question is that either the later OS versions have some extra Video codecs and format support and that is because the video gets played on them or it's something else? Why so is this error on few devices not on all?
Devices on which Video Works fine in native videopalyer:
Samsung Google Nexus with OS 4.0.1
Samsung Galaxy S with OS 2.3.3
Devices on which does not get played:
HTC-Desire with OS 2.2
Samsung Galaxy S with OS 2.2
Any help about the issue is always appreciated.
This error may occur due to many reasons. Issue might lie videoplayer, as well source from where you are reading the video, Is video coming from HTTp server or RSTP server...any of these can be the reason. You'll have to check accordingly. In our case, we solved it by using Video View and also made changes to URL to get it played.
I'm using the Mediaplayer (android.media.MediaPlayer) to play mp3-files in an app I'm developing
It works flawlessly in emulators from and above android 2.3. I've also tried it on two devices (2.3 and 3.2) and it works great.
However, in an emulator with 2.1 the audio crackles.
And in an emulator with 2.2 the audio is chopped off before it's finished (plays everything but the last half or whole second).
Is this a know problem for 2.1 and 2.2? And does it only affect the emulator but not the actual devices (which I've not had a chance to test on)?
Most probably it is happening because that the codecs which the older emulator is using in your case is not decrompressing the audio fast enough (understandable, as it is an emulator). I have worked with MediaPlayer from 2.1,2.2 and learnt that it is best not to rely on an emulator's performance. Go for a real device.
is there anyway to update the media drivers separately from the rest of the OS?
I updated my X10 Mini Pro from 1.6 to 2.1 and the media player doesn't play any sound. BUT you can see the time counter running fast forward... This is really crazy! The same with video player, even youtube. You can see the videos in Fast Fwd, no sound whatsoever.
Any ideas? Thanks a lot!
I don't know where exactly to ask this question:
How can i make gameplay video from android device ?
I need to capture video with normal FPS on android, is it possible ?
I now about AVD on PC but it's to slow (on my PC maybe)
Maybe it's a bit late but... yeah, AVD is really slow with many computers. The main reason is that it doesn't use an x86 architecture, so everything has to be emulated.
But, if your game can run on Froyo, there is something you could do : try to use Android x86 projet within a VirtualBox (http://www.android-x86.org/documents/virtualboxhowto). Usually it improves performances a lot. I don't know if it'll be enough to run a game properly, but you should definitively try it.
I think you don't have mode for it, you only can make it from your computer directly.
I wanted to display H.264 videos with air packaging for mobile and run into a problem.
is StageVideo avaiable on mobile devices running IOS or android?
I use air 2.6 sdk for packaging and it seems there is no StageVideo on ipad?
I can use StageWebView but because of limitation of it ( it always
rendered on the top) this is not an option for me.
Is any schedule when would StageVideo be available for mobile? maybe
air 2.7 sdk?
What are other option to display such video format?
Thank you
From the Flash Player 10.2 for Android Release Notes:
Hardware accelerated video rendering for H.264 (On upcoming Honeycomb OS release only)
Flash Player 10.2 leverages the Stage
Video rendering pipeline to enable
users of Android 3.0 tablets, like the
Motorola Xoom, to enjoy smooth
playback of high-definition video in
Flash Player. Users will experience
reduced CPU usage and higher frame
rates for existing H.264 video
content.
So that is on Android Honeycomb only.
StageVideo is possible on iPhone with the latest AIR SDK.
You need to download the latest SDK and do an overlay install http://kb2.adobe.com/cps/908/cpsid_90810.html
Now build your file with StageVideo. Follow the standard packing steps for mobile.
But set rendermode to GPU instead of CPU. If you set rendermode wrong usually you can hear the audio.
This is how i got it working on my end on iPhone. However on Android I am getting no video but the audio stream even though Air 3.1 is installed on the phone. Am still looking into this issue.
Well, StageVideo doesn't seem to work for me in an Android 3.0 Honeycomb tablet (Acer Iconia) with Flash Player 10.2
When I use StageVideo only sound can be heard but video doesn't show, and I think I'm doing it properly, because in the desktop Flash Player for Firefox it works.
In the Iconia I have to resort to using regular video, not StageVideo.