Re: Recording user actions in the RevMedia IDE
Trevor Devore has a framework and some ideas for the implementation of multiple undo in his "Application Framework" http://www.bluemangolearning.com/revolution/software/libraries/glx-application-framework/ - Stephen Barncard San Francisco http://houseofcubes.com/disco.irev 2009/12/16 Alejandro Tejada > > Hi all, > > Last Monday, i took three hours showing > RevMedia to some teachers. > > Besides the interface shock and the unique > need to name each object that you create, > it was the lack of multiple undo that raised > most eyebrows. > > If you want experiment, then how could you > recover your work if you lose it? > > Other programs, make this is possible with > multiple undo. In fact, many software allows > you to choose how many undo you want. > > My question is: How could we record every > user action in the IDE, to revert any destructive > (or simply blocking) change that users could > make? Does this strategy (storing every user > action) could actually works as a multiple undo > replacement? > > Thanks in advance. > > Alejandro > > -- > View this message in context: > http://n4.nabble.com/Recording-user-actions-in-the-RevMedia-IDE-tp965668p965668.html > Sent from the Revolution - User mailing list archive at Nabble.com. > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your > subscription preferences: > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Recording user actions
Thanks for this comprehensive suggestion. Sounds like it could work. I'll give it a try. Richard On Feb 20, 2005, at 12:02 AM, J. Landman Gay wrote: On 2/19/05 7:12 AM, Richard Miller wrote: I've got a user on one computer watching a video from inside of a Rev application I've provided. They can draw objects (mostly circles and lines) on top of that video while it is playing back in slow motion. I need to record all of this drawing so it can be recreated / replayed at a later time on a different computer. Not only does the motion / drawing need to be recorded, but also the specific times at which the drawing of the different objects occurred. I suppose, in some sense, this is an animation. The entire "marking up" session will not exceed 3-5 minutes. How do I record this activity AND keep the file size down as small as possible (as it needs to be quickly transmitted from the user who did the marking up to the user that needs to view it)? You could try writing a mousemove handler (or a "send in " handler) that repeatedly checks the current tool, and if it is a drawing tool then have it store the mouse location every so many milliseconds, along with the currentTime of the QT movie, the current tool, and whatever else you need (pen color, linewidth, etc.) If the user changes drawing tools or creates a new object, add a blank line to the list you are creating. The list could be stored in a custom property. Then for playback, you'd create a single polygon object. Read the list one line at a time and compare the movie time stored there to the currentTime of the movie that is playing. If the times match, set the points of the polygon to the set of recorded points that have been accumulated up to then. You can use a single polygon object to simulate any number of drawn objects on screen. An empty line in the object's points list will cause the pen to "lift" and then set down again, effectively creating a new visual object. That's why your recorded list of points should include a blank line each time the original user changes tools or creates a new object. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
Re: Recording user actions
On 2/19/05 7:12 AM, Richard Miller wrote: I've got a user on one computer watching a video from inside of a Rev application I've provided. They can draw objects (mostly circles and lines) on top of that video while it is playing back in slow motion. I need to record all of this drawing so it can be recreated / replayed at a later time on a different computer. Not only does the motion / drawing need to be recorded, but also the specific times at which the drawing of the different objects occurred. I suppose, in some sense, this is an animation. The entire "marking up" session will not exceed 3-5 minutes. How do I record this activity AND keep the file size down as small as possible (as it needs to be quickly transmitted from the user who did the marking up to the user that needs to view it)? You could try writing a mousemove handler (or a "send in " handler) that repeatedly checks the current tool, and if it is a drawing tool then have it store the mouse location every so many milliseconds, along with the currentTime of the QT movie, the current tool, and whatever else you need (pen color, linewidth, etc.) If the user changes drawing tools or creates a new object, add a blank line to the list you are creating. The list could be stored in a custom property. Then for playback, you'd create a single polygon object. Read the list one line at a time and compare the movie time stored there to the currentTime of the movie that is playing. If the times match, set the points of the polygon to the set of recorded points that have been accumulated up to then. You can use a single polygon object to simulate any number of drawn objects on screen. An empty line in the object's points list will cause the pen to "lift" and then set down again, effectively creating a new visual object. That's why your recorded list of points should include a blank line each time the original user changes tools or creates a new object. -- Jacqueline Landman Gay | [EMAIL PROTECTED] HyperActive Software | http://www.hyperactivesw.com ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution
RE: Recording user actions
Following this undo madness... You can use a card script that records mousedown events, put them in an array using the seconds as array key and save that. The target, or shape type, it's position is also easy to save. To transfer the information you can either create a blank stack with the array as a custom property or create an xml or readeable output to read for the replay. Filter the "mouse" keywords in the revdocs to see the possibilities. Drag is also possible... As to the best method for event polling... i'll leave that to others - i usually rely on mousedown, repeat while mouse is down, mouseleave... and the target in a card script. cheers Xavier > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Richard Miller > Sent: Saturday, February 19, 2005 14:13 > To: How to use Revolution > Subject: Recording user actions > > Not sure of the best way to do this. Here's the scenario: > > Essentially, I'm looking for a way to mark up a Quicktime > video so that one user can do the marking up and then another > can see what has been done after receiving this "marked up" > video through the Internet. > > In other words... > > I've got a user on one computer watching a video from inside > of a Rev application I've provided. They can draw objects > (mostly circles and > lines) on top of that video while it is playing back in slow > motion. I need to record all of this drawing so it can be > recreated / replayed at a later time on a different computer. > Not only does the motion / drawing need to be recorded, but > also the specific times at which the drawing of the different > objects occurred. I suppose, in some sense, this is an animation. > > The entire "marking up" session will not exceed 3-5 minutes. > > How do I record this activity AND keep the file size down as > small as possible (as it needs to be quickly transmitted from > the user who did the marking up to the user that needs to view it)? > > Thanks for your suggestions. > > Richard Miller > Imprinter Technologies > > ___ > use-revolution mailing list > use-revolution@lists.runrev.com > http://lists.runrev.com/mailman/listinfo/use-revolution > ___ use-revolution mailing list use-revolution@lists.runrev.com http://lists.runrev.com/mailman/listinfo/use-revolution