Android : Playing Video File
Apr 1, 2009I have problem in playing video file. Video file is playing nice but i want to play video file in the whole emulator (size).Right now video file is playing but in small size.
View 3 RepliesI have problem in playing video file. Video file is playing nice but i want to play video file in the whole emulator (size).Right now video file is playing but in small size.
View 3 RepliesFrom weeeks i m trying to play a video file from raw folder .but no success.
I have used this code:..................
I plan to have a 3gp video file that will come with the installation package, it will be placed in /files/ subdirectory, and I would like to ask the native Android media player to play it when I want that.
Here is what I have planned to do/code:
Intent intent = new Intent(android.content.Intent.ACTION_VIEW);
Uri data = Uri.parse("BattlestarGalactica.3gp"); intent.setDataAndType(data,"video/3gpp"); startActivity(intent);
However, when I try to launch the lines above, I get the following error:
CODE:.............
And the video can not be played.
What am I doing wrong that is not applicable to Android platform?
This is 2010. I refuse to believe that you can only play movies/video files that have .avi, .mp4, .mpg, .mkv file formats by converting. I remember Sony was slow on the uptake when they started the media server streaming which I use on a daily basis at home now.Is there a program that will decode the files as you stream them? Any codecs to install on the Droid X? I have thousands of video files and "converting" is time consuming not to mention creating two video files instead of one to play on devices. Converting is BS and whoever thought "Let's just have the users convert the video files" needs to take a long walk off a short pier.
View 5 Replies View RelatedI am having issues with playing videos on my X10. I have used Media Go to convert .avi to .mp4 before and they have worked fine but now I can only get 1 file to work out of 10. I have played the converted files in Mediscape and now they dont want to work.
So......
I have tried several different conversion programs (Smart C, Double Twist and some others I cant remember) and I have also tried a couple of different players as well (Rock Player, YxFlash, Real Player) and nothing works.
YxFlash used to let me play .avi and I believe that Rock Player is supposed to be able to support .avi as well. Now, nothing.
I dont mind converting the files, IF THEY WORK.
i am trying to play a mp4 video file from remote url in android media player.but i am getting an error code i hv searched for the error code and found that this error is returned if the resource required in processing of a request is not being available.A typical example is, a socket node connection not available for streaming.
View 3 Replies View RelatedI am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".
The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.
Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).
(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)
I am using the Alcatel OT-918d (stock rom, root access enabled) and while playing videos in the browser, I do not get an action prompt to choose from the available video players and browser plays the video using "default video player".
The so called "default video player" has been uninstalled though. Have cleared cache, clear defaults, clear data for the browser but still do not get a prompt to choose a video player while playing videos from the browser.
Also installed the "Default App Manager" to check for the default video player. However, it indicates no defaults to play any videos (either from file or streaming videos).
(If I play a stored video from phone or SD card, I do get the prompt to choose a video player. But do not get a prompt if playing any video in the browser.)
Kindly provide me the code/steps for Android application which will provide the Video Streaming & Video playing functionalities by accesssing the Videos from various video websites available on Internet.
View 1 Replies View RelatedUsing the Android SDK, is it possible to play a video stream using the MMS protocol I am streaming video from a PC using windows media. I can use Windows Media Player to play the stream by just inputting the following URL in Windows Media Player mms://192.168.223.194:8081. Is it possible to play the same stream using the Android SDK?
Which video player for Android supports "MKV" video file?
View 2 Replies View Relatedwhile I am playing the video from browser (youtube.com), I am getting the PVMFInfoUnderflow event. Could some one explain why I am getting? in which scenarios we get this error. and if possible try to provide the solution also.
View 2 Replies View RelatedI'm trying to play video's on Android, by launching an intent. The code ...
View 1 Replies View RelatedI have had this problem for a while, and my boyfriend has too. I have the moto droid and he has droid eris. When certain people send me picture messages and I touch them to open and view it plays as a video, the picture will play for a second and then go to black screen and then back to the messaging screen. It wasn't sent as a video message by the person so why is it "playing " instead of just letting me open it in the gallery and view it like most? I've searched google and other forums for an answer but still nothing.. its not a huge deal but I would like to fix it if possible.
View 3 Replies View RelatedCan any one suggest the way by which i can resize the SurfecView while Playing the Video on it.actually I tried the onMeasure() method which is called by measure() .but it does not resized.
View 3 Replies View RelatedWe are trying to test the Music Player (Music.apk) with Monkey. We have added the permissions in AndroidManifest.xml of Camera application (Camera.AK): <uses-permission android:name="android.permission.SET_ACTIVITY_WATCHER" /> In the same file, we have added intent for MovieView Activity: <category android:name="android.intent.category.MONKEY" /> We use the following commands: # Launch the Music Player am start -a android.intent.action.MAIN -n com.android.music/ com.android.music.VideoBrowserActivity # Launch Monkey to test Music player monkey -p com.android.music -v -v -v 500 But, we get the error message: "// Rejecting start of Intent.
View 2 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 have code that will bring up a Youtube video on their webpage and the user has to then tap the play option to play it:
CODE:..............
This works fine but what I would really like is to have the video come up in the player on the phone immediately without the user ending up on the webpage and having to tap the play option.
I have two simple programmes, server and client, both at localhost. What I want to do is to streaming the video from the server to the client through socket and the client can play it by using filediscriptor of the socket. First I try to send some message and the client can receive it. After that I send a few bytes of the video from the server'sd card to the client. The client can receive those bytes but cannot play it. Anyone know how to solve the problem?
Here is my server and client code snippets:
Server:
CODE:..............
Client:
CODE:..........................
I have written a video player app. Its working fine, but the problem is the screen is going to in sleep mode after playing some time. When I click on "Menu" button on the device, then only it wakes up.
How can I solve this?
I got a question is it possible in Android to load the video data into a VideoView without it instantly starting to play?? If so, how could I do that?
View 1 Replies View RelatedI've got an Activity with two views set up in a ViewFlipper. One of the views is a layout with a GLSurfaceView and a few other widgets, the other just has a layout with a TextView and a VideoView. When I click on something in the GLSurfaceView, the ViewFlipper swaps so the video can play. In this screenshot, you can see the plain GLSurfaceView rendering a map on the left. On the right is what it looks like after the ViewFlipper has flipped and the video starts playing. The empty transparent area where the GLSurfaceView shows through is where the video is supposed to be. I can hear it playing through the speaker and the timeline is moving forward, so I know it's playing.
View 1 Replies View RelatedI got this message when trying to play mp4 video on android from url ( video is not valid for streaming on this device )
the code i use to play mp4
Intent intent = new Intent(Intent.ACTION_VIEW);intent.setDataAndType(Uri.parse(url), "video/mp4");startActivity(intent);
how to solve this problem?
I have a problem in playing video file in android using VideoView. When I keep the .3gp video file locally in res/raw folder, the video file plays successfully. But when I keep this same file on live web server and stream it, it runs on Android G1, Nexus one and Tatoo which I have for testing. But It fails to stream and play on Motorola milestone. I got the error on device as: 'This video is not valid for streaming'. What problem it should be, I am really seek of finding it. Is it the issue of programming or file format?
View 2 Replies View RelatedDid anyone try playing audio/video through http/rtsp. I am having a problem with either of the approach.... I am getting an error Command PLAYER_INIT completed with PVMFError I some cases I got Command PLAYER_INIT completed with PVMFErrorContentInvalidForProgressiveDownoload.
Can some one explain what is the problem. The code snippet I am using is given below. Code...
The code works fine when I say mVideoView.setVideoPath("/sdcard/vv.3gp"); but not able to play if I give a rtsp/http urls. In case of http it says PVMFErrorContentInvalid for progressive download.
Can some body tell me what is the problem. Can you please post the code if someone has been successful in playing audio/video through http/rtsp.
I am facing problem in properly converting the video for iphone & Android phones. I have converted the video to mp4 using following command...
View 2 Replies View RelatedI want to accept incoming calls and play an audio file for the caller. Is there a possibility of playing an audio file during a phonecall, so that the caller hears a wav- file? It seems to me that nothing is possible during a phone call since release 1.0. Hope this is getting better in the next release.
View 5 Replies View RelatedDoes G1 can support the following feature: When in "In Call" state, user can play a mp3 file instead of the voice from microphone, and the one in the other side can hear the mp3. Can I modify the kernel part or framework part to support that with G1?
View 2 Replies View RelatedDoes Android MediaPlayer can only work with file sources? I would like play media (video) from a network stream, but the stream comes in a non-standard protocol, so I have to somehow feed Android MediaPlayer with the data only. Is there anyway to do that? I found a few web pages suggesting using a temporary file for the buffered media data etc. but I would like to minimize the I/O usage as much as I can, so I'm looking for a API only solution if there is any? how about JNI? but looks like the permissions going to be an issue with that also.
View 1 Replies View RelatedI want to play an audio file on a voice call as following:
The application initiates a call from device X to device Y
When Y replies application on device X should inject an audio file in the stream of the call so device Y hears this audio file.