Android :: VideoView Continues To Play / Stop It?
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
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
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
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
View Related
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
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
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
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
Sep 20, 2013
How I can stop update the google play version automatically ??
Because if I donwgrade them to 4.0 he automatically update to 4.3 !!
View 2 Replies
View Related
Jun 24, 2009
Since i don't want to have double entries, but would like a fast spreading, here's my post:
http://groups.google.com/group/android-beginners/browse_thread/thread...
View 2 Replies
View Related
Jul 18, 2010
I am looking for a music player that will continue to play in the background. There are some streaming apps that will do this, but I am looking for one that plays mp3's. The HTC player quits playing when I push and hold the home key to switch to another app. So does RockPlayer.
View 7 Replies
View Related
Aug 21, 2010
Scrolling down at random and the only thing that will stop it for a little bit is pushing the SD card either In or out. Also stopped when the operating system prompted me to close or wait for app " phone" do I have a bad SD card.. bad refurbished phone.. am i going to switch back to a old Verizon phone? Help it makes it impossible to use while this is going on. I also reset all setting on sd card and phonne..
View 3 Replies
View Related
Jul 17, 2010
When i first got my hero i was told to install a taskiller.I found this annoying and bothersome and my phone had several issues such as force closing and awake time.Then i read somewhere online that Android "is a smart os" and you don't need a task killer.So I uninstalled.Everything got better.My phone will lag or slow down here and there, but i think that's more the insufficient hardware of the hero.Usually I just wait a second and it's fine.Or press the home key.But here's the thing.I bought my wife an Intercept, and two best buy mobile employees told me to install a task killer - that this is how you "manage" android.Honestly, if this were true.Which I don't believe it is.I would not like the Android OS.But then a Sprint employee told me to also install a task killer.Only HTC has confirmed my earlier understanding that they're not necessary.So I've heard mixed things.In my own limited experience, it's not necessary.But i still see articles and forum posts talking about using them.So what is it? Are task killers a nagging and persistent myth.Or is there any real net benefit from using them? Or is it that they were more useful to version 1.5?
View 16 Replies
View Related
Jun 29, 2010
The scenario: My phone is sleeping. I get a text message. I have Handcent. I open the notification but the sound continues going off. I can't figure out how to interupt it. I have tried the volume keys, they don't work. I have tried the power/sleep key, it doesn't work. I have also tried swiping down the notification bar and opening the message from there but it still doesn't silence the sound.
View 5 Replies
View Related
Aug 21, 2012
I am new to using Android. I am wondering if there is any video (MP4) player that would continue playing the video even when I use the home button to switch to other apps (e.g. check my email etc.) I have a few documentaries/discussions to watch and sometimes minimize the video player to check other information on my phone and the video stops.
Any Video players that continue playing when minimized. I know that the Meridian Player continues playing when the screen is switched off, but it stops if you press the home button.
(I use a Galaxy Nexus with Jelly Bean.)
View 2 Replies
View Related
Feb 17, 2014
I have a ZTE V889S (aka ZTE Blade C, ZTE V807) with android 4.1.2. When I download any application/game off the Play Store, it will download up to 100%, yet not install. If I exit google play, wipe the process, and start it again, then it will install the application that it already downloaded. when applications update, I have to restart google play multiple times to update everything, which becomes a nuisance.
I had the problem even on the original android 4.1.2 rom (with the default/not updated play store app), and I currently have Lewa OS (A chinese custom rom), which still has the problem. There is enough space in every possible install location (I've tried setting it to the SD card and the internal storage). The alternative chinese app market has no problem installing applications right after downloading them.
View 2 Replies
View Related
Jul 12, 2012
Currently android devices play/pause on audio cable plugin. But I need it to do the exact same thing with the charge cable. Mainly because I use a dock for music playback on one of my stereo's and would like to just drop it into the dock and it will start playing, or pull it and it will pause
View 1 Replies
View Related
May 9, 2014
I factory reset my old unused S3 and I'm now trying to re-purpose it (as a wifi only device). The problem is when I re-add my Google account to it, Google Play automatically starts re-downloading ALL my apps to it and I don't want that (probably over 100) - I just need 4 to 5 apps from that account re-downloaded (I don't mind doing it manually). How do I get Google Play to NOT automatically re-download all those apps?
View 2 Replies
View Related
Sep 14, 2010
I am trying to code an app where you can paint (Finger paint) free hand on a running video in a VideoView.I have the two things running separately but not together.I can draw my paint on a balance screen and i can play my video on my videoView, which is implementer in an xml layout.Is there a way to overlay the xml videoview View with an other View which can be drawable?
View 1 Replies
View Related
Aug 3, 2010
I have a VideoView and I set a VideoURI that is basically http://foo.com/videoName?authentication=xyz When the url is hit, some authentication is processed, then the url gets redirected to rtsp://foo2.com/videoName.3gp for example.
The VideoView seems to not be able to follow the redirect to play the video. If I use the rtsp directly I can play the video though.
View 3 Replies
View Related
Mar 29, 2010
How to add an icon on the top of VideoView, I want my player VideoView window should contain the brand image of my player. How to add it to the VideoView.
View 2 Replies
View Related
May 23, 2009
I think that I found a problem with Android SDK in a relative form, try to add An ImageView and A VideoView In an activity, retrieve your VideoView and try to retrieve his SurfaceHolder....Your application have to crash with a real big tracelog in LogCat.
View 2 Replies
View Related
Apr 11, 2010
When I use the VideoView to play the RTSP streaming, the VideoView will buffering some cache buffer. Is there any method to tell the VideoView DON'T buffer? My code:
String VideoUri = "rtsp://192.168.5.121:6666/live/h264"; mVideoView = (VideoView) findViewById(R.id.video_view); mVideoView.setVideoURI(Uri.parse(VideoUri)); mVideoView.start();
View 5 Replies
View Related
Jun 3, 2010
I am using VideoView to display a video in my app. The problem is that, once the layout gets created there is lag of almost 10-30 seconds before which the video starts to play. I can see in LogCat that the video is buffering during the lag. Is there a way I can minimize this lag, or tell MediaPlayer to play the video sooner?
View 1 Replies
View Related
Jan 13, 2010
I'm confused about how VideoView can be used to play video: from a local file, as progressive download and streaming. This example work for me (on 1.5 and 2.0 at least) by downloading the file and playing it locally. But is it necessary to download the video before playing: is it possible to play video as progressive download, or by streaming, simply by using setVideoPath or setVideoURI, as in VideoViewDemo in the API samples?
The VideoViewDemo code suggests using setVideoURI for streaming, but I'm not clear what kind of URL I should be using. Does someone have an example URL for a video that can be streamed to the Android emulator using the VideoViewDemo code? Can progressive download be used with VideoViewDemo? I get a 'sorry, this video cannot be played' message using setVideoPath with URLs that work fine with the blog example linked to above.(Is this a problem in the emulator? I've tried 1.5 and 2.0.)
View 3 Replies
View Related
Sep 12, 2010
Our video server protect video data with cookie authentication. Video player app must authenticate and store session key to cookie strage before access to video server. First, My android video player app access to authentication server using HttpClient class in android library. Next, app access to video server with HttpClient's cookie data. But I think HttpClient can't pass cookie data to VideoView.
View 3 Replies
View Related
Jul 28, 2010
I have a bit of a problem with a SlidingDrawer that I created and that should go over my VideoView. When the activity is opened for the first time you can see the slider above the video and when you tap it, it slides open. However, as soon as you close the slider it seems to disappear underneath the VideoView and is not visible anymore. It is still there and when you tap the location where the handle is located the slidingDrawer reappears, but I would rather prefer if it wasn't hiding all the time ;) If anyone knows what I can do about that and help me out, that would be really fantastic because I have been trying for hours now and I have no idea what I should do. I also haven't found a similar issue or a solution for that.
This here is the xml code for the videoview and the slidingDrawer:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/ android"
android:layout_width="fill_parent" android:layout_height="fill_parent"
android:background="@drawable/shape_background_gradient" >
<VideoView android:layout_width="240px" android:layout_height="180px"
android:id ="@+id/VideoViewEdit" android:layout_centerHorizontal="true" >
</VideoView> <ScrollView android:layout_width="fill_parent"
android:layout_height="wrap_content" android:layout_below="@id/VideoViewEdit">
<TableLayout android:layout_width="fill_parent" android:layout_height="fill_parent"
android:stretchColumns="0"> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_videotrack"
android:padding="5px" android:layout_gravity="left"/>
</TableRow> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageView android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_audiotrack"
android:padding="5px" android:layout_gravity="left"/>
</TableRow> <TableRow android:background="@drawable/shape_track_background"
android:padding="5px" > <ImageButton android:layout_width="wrap_content"
android:layout_height="wrap_content" android:src="@drawable/ic_editor_add_media"
android:padding="5px" android:layout_gravity="left" />
</TableRow> </TableLayout> </ScrollView> <SlidingDrawer android:id="@+id/drawer"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:handle="@+id/handle"
android:content="@+id/content"> <ImageView android:id="@id/handle"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:src="@drawable/slider_handle" />
<LinearLayout android:id="@id/content" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<ImageButton android:id="@+id/button_exposure" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_properties"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:background="#77000000" android:src="@drawable/ic_slider_properties"
android:padding="5px" android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_special_effects" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_special_effects" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_test" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
<ImageButton android:id="@+id/button_test2" android:layout_width="wrap_content"
android:layout_height="wrap_content" android:background="#77000000"
android:src="@drawable/ic_slider_exposure" android:padding="5px"
android:layout_marginBottom="1px" android:layout_gravity="left"/>
</LinearLayout> <ViewStub android:id="@+id/stub" android:layout_width="fill_parent"
android:layout_height="fill_parent" android:background="#77000000">
</ViewStub> </SlidingDrawer> </RelativeLayout>
View 3 Replies
View Related
Jun 2, 2010
I am using MediaPlayer to play a video in my app. The video takes a while to buffer and the videoview is blank for that time. Is there a way to start the buffering when the user is in the previous screen, so that when he comes to the video playing screen, the video is ready to play?
View 2 Replies
View Related
Apr 16, 2010
I am attempting to make a VideoView to obviously play videos on. When I use the following code though I get the error "Cannot cast from View to VideoView" on the marked line below.
public class VideoView extends Activity { private String video_link;
private VideoView video_view;
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState);
setContentView(R.layout.youtube_player);
video_view = (VideoView) findViewById(R.id.video_view);
***ERROR "Cannot cast from View to VideoView"
Bundle video_bundle = getIntent().getExtras();
video_link = video_bundle.getString("LINK"); } }
View 3 Replies
View Related