Android :: Any Way To Minimize Buffering Lag With VideoView?
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
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 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
Aug 23, 2010
Installed Vlingo and am absolutely loving it so far. One thing that is a minor annoyance though is that I'm not finding a way to minimize the keyobard at all. On the default keyboard for the HTC Hero there is a button that minimizes the keyboard. Is this not an option at all with the Vlingo keyboard or am I just missing it?
View 4 Replies
View Related
Dec 31, 2009
How can I minimize the stuttering of my graphics?I am using MANY ImageView's in my program (and JUST ImageView's). I change their positions directly, when I need to change them without using "onDraw" to redraw everything. Is it ok, If I do not overwrite onDraw? I have in average 10 objects which I added to the mainscreen-layout.These 10 objects are 5 trees and 5 flowers. The trees and flowers have 5 different states and therefore 5 different ImageViews which I all added to the layout, whose just are invisible. So I have about 50 ImageViews added to my main screen When one of these objects changes its state, I just make its ImageView invisible and the ImageView of the new state visible.Is it ok to do it like that?I realized that if I just use one ImageView for every object and change the ressource of it when its state changes, all objects, which are currently added to the mainscreen-layout, change their position to (0;0). That was the reason, I have so many ImageView's added to the mainscreen-layout.Is there a better solution for that?
View 4 Replies
View Related
Jan 5, 2010
I will create a service to do something when some hot situation occurs.
By hot situation I mean:
the GPS/cell coordinates are in known zone;
known Bluetooth device detected;
known Wi-Fi network detected;
weather info has change;
considerable movement speed change detected: eg. from walking to travel by car.
As you see these tasks are heavy, and will be run frequently. 15 mins, but sometimes even more, when I have to detect the movement speed of the device.
The question I have, will this drain the battery heavily?
If so, what recommendations do you have to minimize battery drain with the above tasks?
View 2 Replies
View Related
Oct 19, 2010
Is double buffering makes any sense on android? Can it be implemented?
View 1 Replies
View Related
Sep 1, 2010
If you click on the top left corner, on the logo of whatever channel you are listening to, it gives you an options menu for buffering. But I really don't know what all these numbers and settings actually mean. You click on a "Start Buffer" and there are just 5 numbers to choose from. Can anyone explain what all these settings are?
View 1 Replies
View Related
Aug 6, 2010
Is there a way to change the buffer size in the media player on Android? I'm trying to stream video to mobile devices over rtsp. It works fine, but on android v1.6+ the buffer overflows leading to degraded video quality. Is there any way to configure the media player to use a bigger buffer, or take any other measures to prevent overflow?
View 3 Replies
View Related
Oct 14, 2010
I'm playing video on Android using media player via RTSP. The player takes about 12s to buffer before it starts playing. Anyone know how I can convince the player to buffer less? I have full control over the RTSP server and the SDP it returns.
View 1 Replies
View Related
Jun 9, 2009
Do anyone here having experience of applying double-buffering in Android 2D animation/ games? I'm sure this is a pretty basic functionality people will discuss about when writing games on Android, but seems like the source I found on web was pretty little. The only one I found is using OpenGL blit (intro by Chris Pruett in Google IO 2009 session). If I want only a 2D, how do I do that?
View 14 Replies
View Related
Jun 4, 2010
I have an app that displays a video using VideoView. The layout consists of a Clock and a VideoView laid out in a simple vertical LinearLayout. Here's my code snippet that I use:
VideoView mVideoView = new VideoView(this);
mVideoView.setVideoPath(myVideoURL);
mVideoView.requestFocus();
mVideoView.start();
Since the buffering of the video takes about 8-10 seconds, the layout comes up with the Clock, but the VideoView stays blank. What I want to achieve is this:
- Display an ImageView for the 10s while the video is buffering
- Detect when the video is ready to be played (onPrepared?)
- Show the Clock and VideoView and start the Video
View 1 Replies
View Related
Mar 5, 2010
Hope this hasn't been asked already, but here goes. When I had my G1 occasionally i would find a few apps running in the background needlessly, and would close them down. With the Nexus One every time i check, there is at least 15-20 apps running that dont need to be. Is there a way to minimize this to conserve battery?
View 2 Replies
View Related
Dec 14, 2009
I have a problem streaming live video files. When I stream a file say of duration 5 minutes, it stops after streaming 2 to 3 minutes and enters in to endless buffering state. The VideoViews's OnBufferingListener is endlessly executed, however it shows that the buffering is not progressing anymore : MediaPlayer's buffer says it has buffered for example 90% whereas when I call videoView.getBufferPercentage(), I get something very low, like 1% or 5% ... After a while in the buffering state, the application crashes. It seems like the buffering is taking all the memory.
View 2 Replies
View Related
Jan 1, 2013
How do i remove the buffering sound from an radio app for android? My phone is rooted. I transferred the app to my pc and then I used apktools for extracting. The extracted .apk contains a few maps with a lot of xml and smali files and a few image files. I could'nt find any audio files in any of these maps (which could be the irritating loading sound that i want to remove).
View 3 Replies
View Related
Jul 13, 2010
I've flashed with the new froyo ROM with senseUI and am finding it brill. One quirk though is that when typing out a text message, there's no key in the bottom left to minimize/esc from the keyboard. If I use the Back key it exits the app (chomp). It's still beta!)
View 6 Replies
View Related
Dec 30, 2012
What I'd like to be able to do is:
if I'm connected to a specific wifi AP (my prepaid hotspot),
1) turn off autoupdates from the Google Play app
2) turn off data for all apps except the foreground app
3) or let me decided which apps I want to allow to transfer data when connecting via that hotspot
This is to minimize costs associated with using that prepaid hotspot, but the same concept could apply for people who have limited data bandwidth per month.I'm using Android 4.1 on a Samsung S3 if it matters.
View 3 Replies
View Related
Jan 21, 2013
I am Using Sony Wt19i flashed with CynogenMod 9.
I have noticed that i could start a music app in cm9 using the walkman key, but was not able to minimize it.
I want to know if it is possible to minimize the app using the walkman key on my phone as in the Stock ROM.
View 1 Replies
View Related
Jan 26, 2012
Often I'll be busy browsing or writing a message or whatever and I'll be interrupted by the full-screen incoming call display.
I'm looking for something that automatically puts incoming calls in the background, ideally just in the notification bar or something without interrupting the current app.
It's particularly annoying when I'm writing a message in Opera for example and an incoming call wipes the message because Opera doesn't have a proper restore state.
I don't want to block calls all together, just make them less intrusive.
I found a program called backgrounder, but it didn't seem to work, and from the youtube video I saw of it, a full screen still appears to pop up on an incoming call.
View 8 Replies
View Related
Sep 13, 2009
Why Update buffering is always 0% when mediaplayer play the rtsp? I try to play this both on the emulator and on the device. But eveytime it shows that the Update buffering is always 0%. Could anyone give me a reason?
At last it always shows the log
E/MediaPlayer( 1455): stop called in state 4
E/MediaPlayer( 1455): error (-38, 0)
E/PlayerDriver( 1088): Command (7) was canceled
View 2 Replies
View Related
Mar 28, 2009
I am unsure of the jargon so please bear with me, I am seeking advice on the best way to go about drawing the graphics for an app I am developing. Imagine you are creating a game of checkers, where you can drag/drop one piece at a time to a blank space on the board. When the piece is being moved, it seems to me that you should not need to redraw all of the pieces that are not being moved. Using the LunarLander example, is there a way to store the background image and only draw the piece being moved over it? I have been trying to figure out a way to capture the canvas as an bitmap that is occasionally refreshed.
View 5 Replies
View Related
Oct 13, 2010
I'm developing an application on Android 2.2. This application have to read some h264 videos using HTTP protocol. To read a video, I'm using following methods :
// INIT PART mMediaPlayer = new MediaPlayer(); mMediaPlayer.reset();
mMediaPlayer.setOnErrorListener(this); mMediaPlayer.setOnBufferingUpdateListener(this);
mMediaPlayer.setOnCompletionListener(this); mMediaPlayer.setOnPreparedListener(this);
mMediaPlayer.setOnSeekCompleteListener(this);
mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);
// SET DATASOURCE mMediaPlayer.reset(); mMediaPlayer.setDataSource(url);
mMediaPlayer.prepareAsync();
In prepareAsync callback : public void onPrepared(MediaPlayer mediaplayer) { mMediaPlayer.start();
}
View 2 Replies
View Related
Apr 20, 2010
I know I saw this somewhere, but couldn't find it. Anybody have a zip or some sort of file to get the keyboard back from 1.5 onto the 2.1 ROMs? Not having the button to minimize/hide the keyboard is bugging me and I hate the swipe to hide.
View 4 Replies
View Related
May 26, 2010
So the "minimize keyboard" button in the lower left of the landscape qwerty keyboard works maybe every 5th time. I only started noticing this after the 2.1 OTA. However my wife has the 2.1 on her Eris as well and hers works perfectly. If I make sure to push the very top edge of the button, it works fine, but just pressing it normally in the middle rarely works. Perhaps there is something wrong with that corner if the screen.
View 6 Replies
View Related
Jun 3, 2010
So I'm using NexBeast v1.1 on my Droid and noticed in the clock app there is a brightness button that dims the screen even further (similar to the bedside app I'm guessing). Unfortunately the screen dimness only lasts while in that app. I was wondering: is there a way to set the overall phone brightness itself that low or keep the screen that dim outside of the app? The lowest brightness in the Droid settings is still a bit too bright for me.
View 5 Replies
View Related
Jan 6, 2014
I've recently upgraded my Nexus 4, Nexus 7 and Nexus 10 all to Android 4.4 and as soon as I upgraded my Wi-Fi has been awful.The Wi-Fi is incredibly unstable, steaming media has major buffering / intermittency issues, messages sent over instant messaging apps are sometimes instant and sometimes take 30+ seconds to send.
Skype is the most telling of the issues as it randomly loses connection and my notifications literally never come through..Router Wi-Fi Settings: I've tried Channels, 1, 2, 4, 6, 8, 10 and 11
I've also tried adding
Code:
gDataInactivityTimeout=200
to the WCNSS_qcom_cfg.ini file as found:URL>...Wi-Fi is Always On, Wi-Fi Frequency is Auto or 2.4, Wi-Fi Optimization is Off.The wireless / wifi works fine on other tablets, laptops and wireless devices just my nexus devices on 4.4
View 5 Replies
View Related
Dec 31, 2013
I got this weird issue on all my devices where after a certain point the video freezes, buffers for ~8 seconds, plays for a couple and repeat. This is not video specific and changing the quality does not fix this, it just makes the problem appear later on. In HQ quality, after about 1:45 minutes of playing flawlessly it starts buffering the whole damn time. SQ quality can play up to 3-4 minutes before any issues arise.
This is on a broad range of devices, both mine and those of friends. My own Samsung Galaxy S2 running CM10.1 and Cube U30GT running CM10, but had the issue on stock, and a stock Galaxy Note and HTC Hero 2.
Other info. It's not network related. Happens on both wifi and 3g and on different connections/ISPs. My own Internet connection clocks up to 20mbps and has no problem playing any YT video on my PC. Other "streaming" video stuff work great. Twitch.tv plays great as does dailymotion. Other players, other than the default YT app, have no issues playing videos even on HQ. YT through the browser works fine but somehow doesn't let me switch to HQ and the "UI" generally feels bad. Feedly (which is great btw), has a sort of plugin that uses the YT app to play videos natively. Any videos played in the feedly app, using this "plugin" play great even in HQ, which is weird. I've tried reinstalling, uninstalling, stalling, killing, maiming, clearing data+cache, completely wiping the devices and sacrificing firstborns to Lucifer.
This feels like a caching issue of the youtube app. It feels like it starts caching up to a point (playing great in the process) and at some points cache fills up and starts deleting in order to make space to cache further. That leads to the pause and buffering of the video.
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