Android : How To Play A Video In VideoView In Droid?
Jul 16, 2010
I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK?
View 2 Replies
Jul 16, 2010
I can't figure out why am i not able to play the video in my VideoView. All i'm getting a message is Cannot Play Video : Sorry, this video cannot be played. I created an SD card for my emulator as well. Do i need to place me SD card in a particular folder in my SDK? Please comment.
View 3 Replies
View Related
Feb 11, 2009
VideoView video_view = new VideoView(context); video_view.setVideoPath("res/raw/movie.mp4"); video_view.setMediaController(new MediaController(context)); video_view.requestFocus(); video_view.start();
Seems simple, but even with video files that I've seen work in other video players on the phone, I keep getting the "Sorry, this video cannot be played" message. And this associated debug info: INFO/MediaPlayer-JNI(234): prepareAsync: surface=0x1a3ff0 (id=1) ERROR/MediaPlayer(234): Error (-4,0) DEBUG/VideoView(234): Error: -4,0
what those errors mean or how I can fix this? If this is not how I should be using VideoView please let me know. I'd appreciate being sent in the right direction for how to get a local video file playing within a view.
View 4 Replies
View Related
May 28, 2010
VideoView cannot play long path video issue: Bug#8699
enviroment: Platform 2.0 simulator and G2 H/W.
If setVideoPath("/data/data/com.abc.android.abcd/Transformers.mp4");
It can play well.
While, If setVideoPath("/data/data/com.abc.android.abcd/content/ Transformers.mp4");
It cannot play.
Btw: familiar things occured when I display the jpeg file
bit = BitmapFactory.decodeFile(fileName); mImgView.setImageBitmap(bit);
If the fileName is /data/data/com.abc.android.abcd/content/2.jpeg It cannot display
While, If the fileName is /data/data/com.abc.android.abcd/2.jpeg It display well.
View 3 Replies
View Related
Jul 23, 2009
I have used videoview to play mp4 formate movie, but when start to play it, the videoview can't play smoothly, that means there have a little lag,
but in the: http://developer.android.com/guide/appendix/media-formats.html the android support media formate have mp4..
the code is very simple,just like in the sample code...
View 11 Replies
View Related
Jun 9, 2010
I have a ListView with information about videos. Once a row is selected, I use a ViewFlipper to show the VideoView. If I go back to the listview (I have a button), the videoview keeps playing. How can I stop the video and hide the videoview when I go back to the listview?
View 3 Replies
View Related
Nov 19, 2010
I have kept a list of videos in vector {http://a/video1.mp4, http://a/video2.mp4, http://a/video3.mp4, http://a/video4.mp4, http://a/video5.mp4, http://a/video6.mp4} I want to play all the videos one after the another using the Android native player VideoView.
View 1 Replies
View Related
Feb 18, 2010
I'm using VideoView to play an RTSP video stream. It works fine, however on my Android phone the audio lags the video by about 3 seconds. If I watch it on my computer with VLC both the audio and video are in sync. Has anyone else experienced this audio delay before and how might I go about correcting it on the phone.
View 4 Replies
View Related
Jul 2, 2010
I wanted to stream A/V from my machine to Android over HTTP
(http://lists.mplayerhq.hu/pipermail/libav-user/2010-July/004944.html).
But that does not seem feasible using FFMpeg. I am planning to try FFMpeg streaming over RTSP. But I am not sure whether MediaPlayer or VideoView classes on Android support RTSP playback. Is playing RTSP stream possible in simple application?
View 3 Replies
View Related
Jul 23, 2010
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 Related
May 10, 2010
I am using a VideoView to display a video. I am using setOnPreparedListener and setOnCompletionListener to do stuff before and after the video starts and ends.
I was wondering how I could go about detecting some point of time in the video. For eg, say I want to write log to a file when the video has played for 10s. How can I detect the 10s mark?
View 1 Replies
View Related
Sep 10, 2010
I'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 Related
Sep 27, 2010
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 Related
Jun 8, 2010
I have two Activities: one with VideoView attached to MediaPlayer and the second one.
I start watching a video in the first Activity, then during playback I start second Activity.
After going back to first Activity I can hear sound but see no picture.
My Video Layout...
Do you have any ideas why video doesn't appear?
View 2 Replies
View Related
Aug 4, 2010
How does Android handle scaling of a video being played within a VideoView?
So for example if I have a video that is say 480 X 270 (width and height), aspect ratio 16:9. And, say the VideoView is added to a LinearLayout with LayoutParams of (480, 270). What will be width and height of the rendered video in portrait orientation in a device that is 320 X 480? In landscape? In another device that is 320 X 550?
View 1 Replies
View Related
Aug 7, 2011
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]....
View 7 Replies
View Related
Dec 10, 2009
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 Related
Dec 6, 2009
I am using Videoview to playback mp4 file from local machine using android emulator. I hear the audio, but the screen is blank and no video is seen. Android SDK 2.0.1
What is missing here:
CODE:............
Main.xml
CODE:.....................
View 2 Replies
View Related
Jan 6, 2010
I was just wondering if it's possible out of the box or via a library.
View 1 Replies
View Related
Mar 5, 2010
Is there any way to play video in Android App widget.
View 1 Replies
View Related
Jun 23, 2010
Am able to play videos from URLs but not able to play from local disc. The file is stored in the C:/users/workspace/test/res/raw/test4.mp4 how do I parse this path in Uri.parse??
View 1 Replies
View Related
Nov 15, 2009
Can you play any fancast.com files on the Android OS? Thinking about getting the HTC Droid Eris but want to know all about it first so don't make a mistake. I am currantly running Skyfire for my browser and it works really fast and can watch any video.
View 3 Replies
View Related
Dec 3, 2009
Can anyone tell me if the Android MediaPlayer class is able to play a video stored in a remoted URL? Just for testing purposes, can I use the URL http://localhost/video-name.3gp. Another question is if the MediaPlayer works well on the emulator?
View 2 Replies
View Related
Aug 19, 2010
can the android 1.8.2 version play youtebe video ? I can't open youtube in China.
View 2 Replies
View Related
Apr 26, 2010
so what is the deal with the youtube not being able to play video?
View 4 Replies
View Related
Feb 24, 2010
Every video I try to watch on You Tube comes back as "Can not play this video" I have the icon, why would I need to download any further application to watch you tube?mm
View 11 Replies
View Related
Nov 3, 2010
I have a Droid Eris and the NFL football app. I wanna be able to hook my Eris to my tv and stream the video to play from my phone onto my tv.
View 3 Replies
View Related
Feb 9, 2010
I wanted to download a movie to the phone but I am not sure if there is a player on it.
View 7 Replies
View Related
Sep 21, 2010
I just keep getting the same message whenever I try and play video on my Droid..."Sorry this video cannot be played on this devise" It worked fine before the software upgrade. I have already done a factory reset and rebooted my phone multiple times.
View 11 Replies
View Related
Nov 24, 2010
I want to subscribe to tennistv.com so I can watch tennis and would love to watch it on my Samsung Galaxy S phone too.
It uses a WMP DRM'd stream for live matches, is there any media players on android that I can use or maybe a 3rd party service which can transcode the stream in a format the phone can understand?
View 1 Replies
View Related