Android :: Video Playback On VideoView Disappears After Going Back From Another Activity / Why Is So?

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?

Android :: Video playback on VideoView disappears after going back from another Activity / Why is so?


Android : Media Controls Bar Disappears After Appearing For Second In VideoView Droid

Sep 18, 2010

I am able to play a video using VideoView in combination with MediaController. The problem when I started my activity , a bar appears below with media controllers play,pause,rewind ,progress bar representing video. But it disappears after displaying 1 second. Then I how can I make this media Controller bar with controls to display as long as my video plays so that I can pause,rewind my video.

View 1 Replies View Related

Motorola Droid X :: Video Playback - Framerate - Jerky Playback

Aug 27, 2010

Been struggling with this since receiving my X. Seems like no matter what player I use the playback is jerky. It's very subtle, almost as if the video is dropping a frame or so every second. I've tried the stock player, Astro, Rockplayer, mPlayer, Zimly, Act, and the list goes on and the problem still persists.

I've encoded (using handbrake) with all of the settings suggested on the boards and have tweaked things on my own trying to find the proper setting, but still no luck. The strange and frustrating thing is that the exact same files play just fine on my 1st gen iPod touch (clearly an inferior piece of hardware) and on my wife's incredible. These encodes are of standard def DVDs at average settings (a full movie is about 1.3gb, all h.264 mp4 files.

I was able to improve playback by rebooting the X and then playing the video, but this doesn't seem like an acceptable solution every time I want to watch something. I tend to encode and watch a lot of stuff on my commute to/from work, and I'd really like to replace my touch with the X, but the media capabilities are falling way short. Considering switching to the Inc as I know it's able to play my media properly, but I'd prefer to keep the X for the larger screen size (though the Inc does seem to feel better when using one-handed). I'm on the fence right now, but if the X can't function as expected then it might be going back. Unfortunately I only have until the 1st to return it so I don't think I can hold out and see if 2.2 fixes this issue.

View 1 Replies View Related

Android :: Gps Icon Disappears / Way To Get Back?

Jul 22, 2010

I am using the GPS and something I do in my program causes the GPS icon in the notification area of my phone to disappear for a few seconds then come back, then disappear again. None of the other GPS programs I use have this "problem"... if it is actually a problem. I've read all kinds of articles about the GPS icon staying on after the program exits, but I can't find anything about it disappearing while the application is using it. What causes the GPS icon to disappear?

View 5 Replies View Related

Android :: Cannot Play Video - VideoView Broken?

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

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 View Related

Android : Can't Play Video In VideoView In Droid / How To Fix?

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

Android :: VideoView Cannot Play Long Path Video

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

Android :: Load Video Into VideoView Without Instantly Playing?

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

Android :: VideoView - Detect Point Of Time In Video

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

Android :: VideoView In ViewFlipper Is Transparent When Video Is Playing

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

Android :: Streaming And Playing Video Using Videoview On Motorola Milestone

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

Android :: VideoView Video Scaling - Different Screen Orientations And Devices

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

Android :: Overlaying One Video Playback On Top Of Another Video

Aug 13, 2010

Does android support overlaying of one video playback on top of another video ?

For example, let's say one media is getting played in android player in full screen and on top of this i want to overlay another video.

View 2 Replies View Related

Android :: Pausing VideoView When Launching A New Intent / Resume It To Starts Up Activity Again?

Jul 23, 2009

I have an activity that is showing a video and when the user clicks a button, a new activity is launched. When the video activity stops, I pause the video view. When the video activity starts up again, I try to resume the video view videoView.start(), however, the video starts over from the beginning. I'm thinking that the buffer must be lost somewhere, so I now try to capture the current position via videoView.getCurrentPosition(), however, this is always returning 0.

Anybody know how to resume video playback when an activity starts up again?

View 5 Replies View Related

General :: Video Playback / Can't Play Video At This Time

Mar 1, 2013

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 Related

HTC Desire : Contact Notes Info Disappears / How To Get Back?

Nov 2, 2010

could be losing my mind here but I've noticed that when I have added information to my contacts (note section particularly) when I go to check it there is no sign of it, and on one occaision I was checking my recent saved entry and the note section vanished infront of my eyes! My contacts sync with Google and when I add the info to the notes section in google on my laptop it stays on the phone ok.

View 1 Replies View Related

Android :: Cannot Playback Video From Internal Storage - Data-data-com.myapp-some-folders-video.mp4

Aug 4, 2010

I have an application with a lot of media data (images and videos) that were previously stored on the sdcard. With that, images and videos are displayed fine in my app.

Now, in order to secure the content more, I wanted to move the content to the internal storage / data dir of the app, which I did. I copied all media with a routine within my app to the data folder (/data/data/com.myapp/some/folders/video.mp4) and adjusted the path in my app so that it would look for the media in the internal storage data directory and not the sdcard anymore.

Everything works fine, images are being displayed (decoded) properly, but videos don't play. They files do exist though - I do not get a FileNotFound exception. But an IOException: java.io.IOException: Prepare failed.: status=0xFFFFFFFC

Why is that? Everything is handled within my one app and the videos have been copied with the same routine as the images, thus having the same permission settings. Looking at the stack trace, it all runs in process id 18060).

Why I cannot playback the video from internal storage? Or how can I?

CODE:......................

View 2 Replies View Related

Android :: Android Videoview - Screen Blank No Video Seen

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

Android :: Gapless Video Playback

Oct 5, 2010

I'm trying to build a live streaming player by downloading video segments (which are generated in real-time) and then playing them back in sequence. While I can get the segments to play, I need to get it so that there isn't a pause between playback of successive segments. I've tried using both MediaPlayer (with an appropriate SurfaceView) and VideoView, but there's always a small gap between segments.

If I try to load a new video into a MediaPlayer when the first segment finishes playing, it seems to take half a second or so before the next segment is loaded and starts playing. I have also tried having multiple SurfaceViews within a single ContentView (with only the active one being visible), but it seems like you can't prepare a video until the associated SurfaceView is visible. I also tried having multiple ContentViews that I switch between, but again, this has similar issues.

Any ideas or suggestions? Is it possible to somehow get the next segment to begin decoding as soon as the first one is decoded (which could be before it finishes playing)? Am I going to need to build a custom video player in order to do this?

View 3 Replies View Related

Media :: Video Playback On Android

Aug 28, 2009

I never used an android phone before and i'm thinking to get myself a samung galaxy, but before that I'd like to know a couple of things concerning video playback on android. First of all, is there any way to play DIVX and XVID on an android phone WITHOUT converting? Do you need some particular paid application from the market or you can do it with the default player? How much this application would cost?

Another question: lot of my movies are quite big in resolution (you know the normal size that you use for pc's). Is there any need of resizing the movie to let it play on an android phone? I used to have a samsung omnia (rip); winmo sucked badly but it can play any video at almost any resolution very smoothly with free players also.

View 7 Replies View Related

Android :: Noise During Video Playback

Aug 19, 2010

I have noticed that during playback of video I take with my Motorola droid, I hear a sort of a pop every now and then. The first time I heard it, I thought it was something going on around me when taking the video, but it's not, it appears that the sound is coming from the droid, though I do not hear the pop when recording. There is no rhyme or reason to it. Sometimes you don't hear it at all, sometimes it's every 30 seconds, and a lot of times, I hear the pop right at the end of the video, but sometimes it happens right in the middle.

View 2 Replies View Related

Android :: Scale Down Video Playback

Nov 9, 2010

How to scale down a video playback as there is a memory constraint and the video playback uses software codecs...

View 3 Replies View Related

General :: CM7 - Video Playback In Android

Feb 14, 2012

I recently switched to CM7 on my Galaxy S I9000 and it seems I lost all the codecs Samsung bundled with their phone. Video playback is choppy and buggy. I have Googled for possible solutions and tried most of the available players on the market but the problem remains. So how do other non-Samsung Android phone owners cope with this situation?

View 1 Replies View Related

Android :: Video Playback - Apk Package To Zoom2 MDP

Mar 22, 2010

I am developing a video rating tools which use Android's MediaPlayer class to playback the video sequences. I used the APIdemo at Android SDK to playback my encoded sequences but the picture stalled at the first frame on the emulator. Since I didn't have the commercial Android phone so I don't know whether this problem comes from my video coding profiles or the emulator itself. Here are the two sequences I used to test:

http://www.megaupload.com/?d=5I4AGSCX [url] I use x264 to encode, with baseline profile and bitrate=400k, fps=30or25.

And by the way, how can I install an apk package to the Zoom2 MDP, besides using the adb tools. I am wondering there's someone who is familiar with Zoom2 and Android so I put the question here.

View 5 Replies View Related

Android :: Video Playback Scratching My Head

Oct 15, 2009

I am trying to play a video in my app. It has to be embedded.I am able to play my video using VideoView as mentioned in this discussion. But there are a few problems.

1. I need full screen video, how to stretch videoview to full screen ? will that stretch the video too ?

2. i dont need the default play forward stop buttons at all. basically I need continuous loop playing of the video.

What is the string format should look like if i have my video file in res/raw directory ? I really dont want video file played from sdcard. how can it be bundled along with the app ?if any of these 2 approaches works, i will be better off.

View 2 Replies View Related

Android :: MPEG4 Playback - Black Video?

Sep 17, 2009

We have a clent that has videos online that stream. we are taking the same videos an converting them to MPEG4 for mobile playback. they work for fine for most of the phones that we tested except the Andiod Phone? Does anyone have any solutions. the test allowed audio playback but the video was black?

View 6 Replies View Related

Android :: How Can Implement Video Rotation During Playback

Dec 8, 2009

How can implement video rotation during playback (or before starting playing)? I tried: private SurfaceView video = null; video = new SurfaceView(); video.getHolder().setType(SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS); video.getHolder().lockCanvas().rotate(90);

it gives me error: 12-08 15:39:54.551: WARN/System.err(17811): android.view.SurfaceHolder $BadSurfaceTypeException: Surface type is SURFACE_TYPE_PUSH_BUFFERS.

If somebody could give me simple example or just references how to establish it, that would be great. Maybe Android does not support video rotation at all. Could somebody confirm that?

View 3 Replies View Related

Android :: Change Direction Of Playback Video?

Jun 1, 2009

I am using Tablet skin for running emulator output. All the menu and list items are displayed properly e.g. Horizontally whereas Videos are being played vertically. How can I change the direction of video? Kindly reply as soon as possible.

View 2 Replies View Related

Android : Application Disappears From "recent Apps" List / How To Get Back?

Dec 15, 2009

I am writing an app that wants to be able to handle URLs. I also want to be able to launch it stand-alone with no arguments, so I've specified two intent filters: I have also specified android:launchMode="singleTask". Now, if I explicitly launch my application from the application list, its name and icon can be found in the "recent apps" list that pops up when I hold the home key. If I then use the email application to open a URL in my application, my application disappears from the "recent apps" list. Why does this happen, and what can I do about it? I notice that the Browser application doesn't behave like this, and it has similar intent filters and the same launchMode..

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved