Android :: Play Video File In Emulator
Apr 11, 2009I push the one video file... and tried to play that video file in emulator.. But i got error...how can i check weather video file insert or not...
View 15 RepliesI push the one video file... and tried to play that video file in emulator.. But i got error...how can i check weather video file insert or not...
View 15 RepliesIm using Eclipse created new android project.First thing i added to the menifest xml file two lines:
Code:
uses-permissionandroid:name="android.permission.INTERNET"></uses-permission>
<uses-permissionandroid:name="android.permission.STORAGE"></uses-permission>
And this is the complete menifest file code:
Code:
xmlversion="1.0"encoding="utf-8"?>
manifestxmlns:android="http://schemas.android.com/apk/res/android"
package="com.AllFormatsVideoPlay"
android:versionCode="1"
android:versionName="1.0">
[code]....
Now i tried to play a video file .3gp from the internet youtube link via my android device ! not emulator. And it worked! But when i tried to play a video file .3gp or .mp4( i converted the mp4 from 3gp ) its not working. Im getting error "Cannot play video Sorry, this video cannot be played"
Tried to play with the link to my device wich is: I:DCIM100MEDIAVIDEO0030.3gp or .mp4 or tried this: I:/DCIM/100MEDIA/VIDEO0030.3gp with "" like: "I:/DCIM/100MEDIA/VIDEO0030.3gp ";
I tried to remove the I: but it didn't change anything.This is the main code im using to play the video files on my device. And there some lines i marked with // wich i used to play from the internet and im not using now.
Code:
com.AllFormatsVideoPlay;
import
android.app.Activity;
import
android.graphics.PixelFormat;
import
[code]....
1. is this possible to play video from YouTube on emulator using YouTube video link (like:http://www.youtube.com/watch?v=T1Wgp3mLa_E) ? If not, then why?
2.If yes then how ?
I tried to play YouTube video using VideoView but got "Command PLAYER_INIT completed with an error or info PVMFErrCorrupt" message through logcat command.
Emulator wont play video from you tube.
View 3 Replies View RelatedI have a code to run a start a media player a play an audio file saved in my local disk.But the code is not running and it is showing an exception...
View 6 Replies View RelatedI have a URL for a video file which I need to play using the native Video-player of the handset. I figured using Intent.ACTION_VIEW and setting the URI as Intent data, I am able to achieve the aforementioned on G1 except HTC hero. In case of Hero, I have to explicitly set the class Name in the Intent to start the default Video Player: intent.setClassName("com.htc.album","com.htc.album.ViewVideo")
However, I am not comfortable with this approach as it might break on other Android devices.
1. What would be the best way to play this video url via Intent, irrespective of the handset?
2. How to conditionally setClassName in Intent, specific to a Handset?
Writing a standalone Video Player for our app is NOT an option we can afford at the moment.
If found many tips about how to stream from classic url link, but nothing about ftp. Is it the same way to proced ?
View 1 Replies View RelatedI am trying to get a video to pop up and play. I can get it to work when I use the first uri (that is commented out in the below code), but when I try to use the second uri (from the resource), I get the following error:
CODE:..........
From researching the error, it looks like I might have to declare an activity in the manifest but I'm not sure if that applies here?? Can someone point me in the right direction?
CODE:............
I am having problems getting videos to play on my HTC Desire. I have converted my .avi files into Mpeg4 so as the device could read them ok. I'm using the free programme 'Handbrake' to convert the files. And it does so with no problems. The new mpeg4 files play with sound and image.
The problem occurs when I transfer the images onto the phones SD card. The video files are picked up via the camera folder (where you can play videos as there is no actual video player) as well as on the video player app I downloaded today - 'mVideoPlayer', without any problems but when I click to play the video the screen is black and only the sound works (even though on my pc the file played fine).
Do I need to download a codec or something? I would have thought that as the Desire was compatible with mpeg4 files that it would play them straight off without having to add software.
Unable to play youtube videos on SDK 1.5 emulator - but playing well on SDK 1.0 emulator. Can you update the source....
View 7 Replies View RelatedI am trying to play file which is stored in SDCARD in emulator. I have Linux O/S. So i need to provide command in run configuration. I am providing following parameter.
-sdcard /usr/android/sdcard/mysdcard.iso -audio oss [i]
The following is my code to play file.
try { mMediaPlayer.setDataSource("/sdcard/test_cbr.mp3"); mMediaPlayer.prepare(); // Giving error. mMediaPlayer.start(); }
If this is a repeat of another thread then i apologize .i need a video player that will play mp4 video in full resolution for the droid.m coming from bb.can you help me with this.i don't care if it is free or not.
View 8 Replies View RelatedWhich video player for Android supports "MKV" video file?
View 2 Replies View RelatedLet's say you don't have internet access at the moment. Let's say all you have is fresh install of CyanogenMod 9, which for some reason, does not come with a File Manager :
Let's say you have an apk file on your SD card. How would you install the apk file? Terminal emulator, using which commands or another way?
By the way, ASTRO File Manager vs. ES File Explorer, which one and why?
i have the golf channel app installed, on telus network. I cant get the videos to play, keep getting message "cant play video at this time:
View 4 Replies View RelatedHow to play video present in local file system (ex:in res/a.3gp) using VideoView .I am getting error as Video cant be played.Can any one help me in sorting out this issue?
View 2 Replies View RelatedI am using Linux (Mandriva). How can I make a video (with sound) of the emulator ?
View 4 Replies View RelatedI just found that left/right channels are swapped when calling SoundPool.play(int soundID, float leftVolume, float rightVolume, int priority, int loop, float rate), running in 1.1 emulator on MacOS. Unfortunately I'm far away from my G1 headset (with proprietary connector) so I can't check if the behavior is the same.
View 2 Replies View RelatedSpent the whole day on this and still cannot find a solution for this. Here's my short code:
super.onCreate(savedInstanceState); setContentView(R.layout.videoview);
SurfaceView v = (SurfaceView) findViewById(R.id.surface_view);
holder = v.getHolder(); player = MediaPlayer.create(this, R.raw.psa);
player.setScreenOnWhilePlaying(true); player.setDisplay(holder);
try { player.start(); } catch(Exception e) { e.printStackTrace();}
The video itself is in raw directory. When the application starts I can hear the video's sound but no image is displayed. I've tried using 1.5, 2.0 and 2.1, same thing. I've tried this with different videos, tried converting them using ffmpegX and "Videora Android Converter", nothing helps.
I know this is not a big deal but it is still bothersome. When I try to run video while on Yahoo's site I get message "Cannot play video - Sorry this video cannot be played." I have no issues with ESPN, Cnet, etc. I'm able to run these yahoo videos on my wife's Eris with 2.1 (v.3).
Anyone know how to deal with this issue?
I am using the following code to display a video file in the android emulator,it works fine when the video file is stored in a SDcard.But when i give any URL of a video the code not working.
import android.app.Activity;
import android.media.MediaPlayer;
import android.os.Bundle;
import android.view.SurfaceHolder;
import android.view.View;
import android.widget.*;
public class playerActivity extends Activity
In the above code if change the path variable the Emulator screen is black with single button.May be i have to do some more things to display the video from the Remote URL,i dont know what to do.Any one having any idea about this please help Me.
What's the best way to record a video showing things running on the Android Emulator? I want to record little demo videos of stuff running so I can put it on YouTube. I'm running the emulator on either Windows or a Mac.
View 6 Replies View RelatedI've converted a movie to MPEG1 to view on my G1.I couldn't find it in the Gallery section, nor under MixZing's Video tab.So I went through Astro to find it.Sure enough, I see the icon for it, but when I tap the icon to view the movie I get a warning saying,"Cannot play video.Sorry, this video cannot be played."So I converted to MPEG2.Am I doing something wrong or can mpegs not be played on the G1? (I'm pretty sure they can.I once watched a downloaded TV series on it.)
View 1 Replies View RelatedWhen trying to view video from some certain sites I get this circle with what appears to be a f and a exclamation point and if I select it I get a message that I cannot play this content on this devide. I have a HTC Hero. Is there an app ofr something that I need to be apply to get these video's to play?
View 1 Replies View Relatedi am biginner in android development and try to play video from link but it's give error "sorry,we can't play this video" i tride so many links but for all links its show same error.
View 4 Replies View RelatedHow to play a video in android? where do I put my video file?
View 2 Replies View RelatedWhen I run video on my android emulator, it's volume is slow. So anybody have ans for that. So please give me hint.
View 1 Replies View RelatedHow can I test the video recording functionality in the new emulator in 1.5 android preview SDK?
View 4 Replies View RelatedI am new to android.I have fileexplorer.apk file.how to install / use the application in the android emulator?
View 2 Replies View RelatedIs there a limit to the size of the .apk file when using it on the emulator. When I run the default app created while creating a project, the .apk file size is about 5K and it runs ok. When I try to run a real app which uses other application libraries so that the total size is about 325K, I get the following error: Failed to upload Benchmark.apk on device 'emulator-5554' java.io.IOException: Unable to upload file: timeout Launch canceled! I had increased the heap size of emulator to 64 MB and RAM size to 192 MB.
View 2 Replies View Related