Thanks. That's exactly the idea I had too...separate file to keep track of things. The only difference is that instead of something firing off every 100ms or so, I'd just take a time stamp of when the video recording starts and then another one each time the user presses the "Mark" button. I know there are ways with Java on a PC to combine these (insert a text message into the video stream) so I will probably go that route.
On Aug 23, 8:41 am, esse <[email protected]> wrote: > 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? > seehttp://groups.google.com/group/fametest/browse_thread/thread/3cc326af... > > 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

