How can I use VideoView to streaming without buffering?

by Kelvin » Wed, 14 Apr 2010 03:23:51 GMT


Sponsored Links
 I have a question.
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();

Is anybody help me?
Thanks.

--



How can I use VideoView to streaming without buffering?

by MobDev » Wed, 14 Apr 2010 19:32:49 GMT


 well most of the time buffering is just part of streaming...
it's there so that a user will get a more seamless playback of the
video/audio...
The flipside is that it starts a little later because it has to buffer
beforehand, and when it has enough data to play a specific amount of
time seamlessly it will start..
Cutting out the buffering might mean frequent hickups during play...
The first case might be acceptable for users (buffering) the second
one definitely isn't (frequent hickups)...




--


Sponsored Links


How can I use VideoView to streaming without buffering?

by Chirag » Fri, 23 Apr 2010 08:04:55 GMT


 When you want live video streaming, second case is fine. Is there any
way to reduce buffer size???





--



Other Threads

1. SMS Question

How can I tell, using "android.telephony.SmsManager," if the phone
supports SMS?  Will the getDefault() value be null?  Anyone have any
idea?

Thanks!

2. Activity and Interface

I've a problem to solve about pass reference between objects Activity.
Suppose follow situation with 3 class and 1 interface:

I don't know how pass the reference of MyEvents (_engine) to ActivityB
from ActivityA::StartActivityB()

public interface MyEvents {
        public abstract void MakeThis();
}
public class Engine implements Runnable, MyEvents {
        void Init(){
                _th = new Thread(this);
                _th.start();
        }
        public void run() {
                ....
        }
        void MakeThis(){
                ...
        }
}

public class ActivityA extends Activty {
        Engine _engine;
        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
                _engine = new Engine();
                _engine.Init(); // start thread
        }
        void StartActivityB(){
                Intent intent = new Intent(ActivityA.this, ActivityB.class);
        startActivity(intent);
        }

}

public class ActivityB extends Activty {
        MyEvents _myEvent;

        ActivityB(MyEvents myEvent){
                _myEvent = myEvent;
        }

        public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
                _myEvent.MakeThis();
        }
}


Thanks

-- 

3. moved Code: can't open a browser anymore (via FBRocket)

4. Icons revisited

5. No stats? 0 total; 0 active installs while 5000 AdMob impressions??

6. dynamic receiver enable/disable?

7. HERO HAMPIR BRICKED!!!