本帖最后由 u012921395 于 2013-11-26 16:51:12 编辑

解决方案 »

  1.   

    在里面把对象释放一下mVideoView.release();
      

  2.   

    onCompletion方法执行了吗?执行了
      

  3.   

    在里面把对象释放一下mVideoView.release();这个类中没有release()这个方法下面是这个类的完整代码package com.ly.a16.screen;
    import android.content.Context;
    import android.util.AttributeSet;
    import android.widget.VideoView;public class MyVideoView extends VideoView {
    public static int WIDTH;
    public static int HEIGHT;
    public MyVideoView(Context context, AttributeSet attrs) {
            super(context, attrs);
        }@Override
    protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) {
        int width = getDefaultSize(WIDTH, widthMeasureSpec);    int height = getDefaultSize(HEIGHT, heightMeasureSpec);      setMeasuredDimension(width,height);}
    }