> MailboxManager.markRead() method is called when you do a GET for a > particular voicemail (in VoicemailResourceDownload.represent()). This method > would work fine when we are not using the audio tags, i.e. when we use the > download link, which will just do a GET for the vm in question, > automatically marking the mailbox as read. With the audio tags however, we > could try disable auto buffering, so that we don't do a GET for the vm file > until the user clicks the play button. I am not sure if it will work though, > because the player might still try and load some of the media to get and > display the duration information. > > I checked both with/without auto buffering but the GET is called once the audio tag is displayed I also spent some time to find a way to call markRead() *after* the audio file is completely played. HTML 5 to which <audio tag belongs comes with a set of events on this matter: onended, but it is never triggered in a Tapestry environment (I used @EventListener annotation to accomplish this), only standard events are triggered (like onclick) Also, another problem with handling such javascript events would be for browser that does not support <audio tag and need to fall back to the download link - it won't work (http://track.sipfoundry.org/browse/XX-5523)
I also spent some time looking on GWT-VOICES http://code.google.com/p/gwt-voices/wiki/GettingStarted It has support to handle events that are triggered after an audio file is completely played: onPlaybackComplete should do the job - but it looks to me that this will also break http://track.sipfoundry.org/browse/XX-5523 because it does not provide a nice player widget to integrate in the Voicemail Tapestry page. So I can see one solution: Put a button below the table that - on user click will mark read all selected voicemails Please share your thoughts... Thanks, Mircea > > Arjun >
_______________________________________________ sipx-dev mailing list [email protected] List Archive: http://list.sipfoundry.org/archive/sipx-dev Unsubscribe: http://list.sipfoundry.org/mailman/listinfo/sipx-dev sipXecs IP PBX -- http://www.sipfoundry.org/
