Android : How To Play A Media File On Emulator?
Feb 4, 2010I 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 RepliesI 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 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 Replies View RelatedRecent news say that flash porting is finished for android and HTC Hero has support for flash. Can I use MediaPlayer API to play flv media file? Is there such documents?
View 3 Replies View RelatedIs there any support for avi and other media formats except mp4 and 3gpp? If there is no support may I develop a support through correct the program? Will that be too difficult ?I don't know where to put my hands into first, should I correct programs in opencore first or should I just correct programs in directory frameworks/base/include/ media . I want to have a clear mind how I can achieve my goal, I need a roadmap to guide me how to do it.
I am trying to get familiar with the SDK 1.0 now. another question, my chip is from freescale and it supports hardware codecs of mpeg4, h.263 and h.264, I don't know whether I can change the program or the architecture of mediaplayer to utilize my hardware codecs instead of software codecs provided by android opencore. I once implement an mplayer to my platform, there is problems about sync of audio and video due to the quality of my chips(CPU can support software codecs but is not fast enough to make sure sync of audio and video), So I am worried about when the android is implemented, there would also be the same problem, and for this reason, I am thinking whether I can utilize my hardware codecs for mediaplayer.
I want to develop application in which i want to listen call and play medial file so caller can listen it. Can some one tell me how can i do it ? any code snippt or link of resource.
View 7 Replies View RelatedWe've a mpeg4 source that we would like to play in the media player. Our source is not in a file or on an rtsp server. It is hand coded to generate mpeg4 source on the fly. Imagine the data is coming from an unix pipe stream instead of rtsp or a file. How can I use that stream in media player?
View 1 Replies View RelatedDoes anyone know of any instructions or tutorials for how to play an mp3 on my computer on my droid, without having to transfer the file?
View 1 Replies View RelatedUnable 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 RelatedDoes anyone know where to find a media player that would allow you to play streaming videos on Android Browser?
I want to know if you can play streaming videos on your web browser on your android os phone.
the media provider cleans the media files, if files didn't get read since last two month. does it cleans(delete) the private application media file stored on sdcard, too if didn't get read from last two month? or Appl Private media file does not come under media file?
View 2 Replies View RelatedI guess no one cares to listen to their favorite music in the order the artist intended? we now listen to timeless classic Opera in whatever order? makes no difference? Classic Rock albums out of order? Pink Floyd "Dark Side of the Moon"?
View 6 Replies View RelatedMy application gets playlist from a XML file, requests URL of mp3 file from server, downloads and plays it. It was able to download mp3 file but unable to play it. When I used emulator with Android 2.1, it was displayed in LogCat:
[Quote]
I 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(); }
Let'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?
Is there any way to get the details of media files that is executed in android(default) media player?
View 3 Replies View RelatedI just started with creating my own media player application by looking at the code samples given in Android SDK. While I am trying to play a local media file (m.3gp), I am getting IOException error :: error(1,-4).
package com.mediaPlayer;
import java.io.IOException;
import android.app.Activity;
import android.app.AlertDialog;
import android.content.DialogInterface;
import android.os.Bundle;...........
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.
Im 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]....
Emulator wont play video from you tube.
View 3 Replies View RelatedWhen we insert images or media files to sdcard, how we can see this in emulator, means in which folder, i inserted some images and checked in "pictures", but i cant see anything there, just blank only --"No Pictures found" displaying. For media i checked in "Media scanner" under 'Dev tools", there also cant see anything.Can anybody guide me in this issue.
View 5 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.
On Windows Mobile I used TCPMP and it could play any format; FLV, MP4, AVI (Could play DivX in theory, but the phone lacked physical resources I guess). Is there a program for Android that let's me play most formats?
View 14 Replies View RelatedI am able play a media using MediaPlayer. The media played via the ear piece. But how can I play the media with speaker phone? I have tried: AudioManager audio Manager = (AudioManager) mActivity.getSystemService(Context.AUDIO_SERVICE); audio Manager.setSpeakerphoneOn(true); but that does not work. And I have added this to my Manifest file <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> Can someone please tell me what am i missing?
View 3 Replies View RelatedI have a small mp3 (326KB) in my res/raw folder. In my code, I have mPlayer = MediaPlayer.create(FakeCallScreen.this, R.raw.sample); Player.prepare(); mPlayer.start(); The application just crashes when it tries to start the activity, I cannot figure out why.
View 2 Replies View RelatedI create a "mplayer" to play the rtsp on the emulator. When the "mplayer" play the http ,it is ok.
MediaPlayer mplayer = new MediaPlayer();
mplayer.setDataSource("rtsp://test.intra.3g.sina.com.cn/streaming/ 20090313/wenjiabao1.mp4");
mplayer.prepare(); mplayer.start(); but when it play the rtsp, it doesn't work. The Wireshark shows UDP Checksum Incorrect.
Can an Android Phone play WMV attachement?
View 1 Replies View RelatedI am able play a media using MediaPlayer. The media played via the ear piece. But how can I play the media with speaker phone? e)But that does not work. And I have added this to my Manifest file.
View 7 Replies View RelatedCan anyone please tell me if Android Media Player is able to play a video that is placed in a remote server, in a supported format?
View 5 Replies View RelatedI tried to play a piec of 16-bit .wav audio file, no sound came out from my earphone, but .mp3 file would be OK. Do any one else have this kind of experience? This is the code: player = MediaPlayer.create(this, R.raw.test); // I put test.wav in /res/raw player.start();
View 4 Replies View Related