As far as I know there is no way to use MediaRecorder to associate a marker with the video stream. Unfortunately when you hand the camera object over to the MediaRecorder you really lose access to the camera. The best solution that I can think of is that you associate a data file with the video.
Basically, you will want to have a file/DB with the marker info in that associated with the video. You can start a handler when you start recording that fires ever 100 ms to mark the corresponding time of the video, then if the user clicks a button you can associate that click with a time in the video in your file/DB. I have not worked with the MediaStore, but it looks like once the video is taken you might be able to use MediaStore.Video to access meta info for the videos. <a href="http://developer.android.com/ reference/android/provider/ MediaStore.Video.VideoColumns.html">MediaStore.Video<a> Have you had any issues with the onPreviewFrame? see http://groups.google.com/group/fametest/browse_thread/thread/3cc326afe66b84bb/e99eded4a0580241?q=restarting+onPreviewFrame#e99eded4a0580241 Hope that helps, esse On Aug 22, 9:47 am, darrinps <[email protected]> wrote: > I looked through the API for the Android Mediarecorder and didn't see > any way to do this, but I was hoping maybe I missed something. > > In short, what I want to do is allow the user to click a button on the > screen and have an application insert a marker of sorts into thevideo > stream as they are making arecording. > > I have gotten the app to recordvideojust fine and save it off to my > SD card, but I cannot figure out how to inject a marker. > > Any thoughts? > > Thanks. > > Darrin -- 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

