Any ideas what causes this error ?
and still no picture even thou the video plays ?

Thanks in advance

On 11/27/2011 08:04 PM, New Developer wrote:
Not sure if I'm going forward or backward
I rewrote what I had

MainActivity
     Intent intent = new Intent();
     intent.setClass(getApplicationContext(), Display.class);
     intent.putExtra("fileName", fName);
     startActivity(intent);

Display class  extends Activity
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED , WindowManager.LayoutParams.FLAG_HARDWARE_ACCELERATED);
        fName      = getIntent().getStringExtra("fileName");

setContentView(R.layout.video_viewer); <- contains a VideoView with id = video
        video    = (VideoView)   findViewById(R.id.video   );
*video.setLayerType(View.LAYER_TYPE_HARDWARE,   null); * <<   Note:  later
        video.setVideoPath(fName);
        playBtn  = (ImageButton) findViewById(R.id.playBtn );
        frames   = (SeekBar)     findViewById(R.id.frames  );
        speed    = (SeekBar)     findViewById(R.id.speed   );
        currTime = (TextView)    findViewById(R.id.currTime);
        maxTime  = (TextView)    findViewById(R.id.stopTime);
        playBtn.setOnClickListener(new playVideoListener() );

Video_Viewer.xml
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"; android:orientation="horizontal" android:layout_width="1280px" android:layout_height="800px" *android:layerType="hardware" >*<< Note: later <VideoView android:id="@+id/video" android:background="#00aa44" android:layout_width="1170px" android:layout_height="700px" *android:layerType="hardware" /> *<< Note: later
....
....


Now the error changes
11-27 19:41:34.047: E/display(24510): on Start()     called
11-27 19:41:34.047: E/display(24510): video is false <= false even after getWindow and xml has layerType = hardware
11-27 19:41:34.047: E/display(24510): on Resume()    called
11-27 19:41:34.047: E/display(24510): video       is  false
11-27 19:41:34.557: D/MediaPlayer(24510): getMetadata

play Button Pressed

11-27 19:41:41.437: E/display(24510): video is true <= somehow changed I'm thinking above is again due to onCreate 11-27 19:41:41.457: E/libEGL(24510): call to OpenGL ES API with no current context (logged once per thread)

Note: the new error message
I still get audio   and    NO video

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to