Hello,
I have some questions about rtsp protocol.

1. Is it possible to save rtsp video stream on the sd card, instead of
redisplay on the screen?

2. Is it possible to capture displayed screen of the movie?


Code (in VideoView.java) shownbelow make only black screenshot of the
videoview/surface contener.



View mView = getRootView();

Bitmap bitmap = Bitmap.createBitmap(mView.getMeasuredWidth(),
mView.getMeasuredHeight(), Bitmap.Config.RGB_565);

Canvas canvas = new Canvas(bitmap);

draw(canvas);

try {

  FileOutputStream fos = new FileOutputStream("/sdcard/test.jpg");

  bitmap.compress(Bitmap.CompressFormat.JPEG, 100, fos);

  fos.close();

}

catch (FileNotFoundException e) { Log.d("error",e.getMessage()); }

catch (IOException e) { Log.d("error",e.getMessage()); }

catch (Exception e) { Log.d("error",e.getMessage()); }



...

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

Reply via email to