Mircea Mihai Carasel wrote:
> 
>     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)
> 

One other option is, we could have a single player on the page (with autoplay 
enabled), and put a link next to each vm. On clicking the link, the vm loads in 
the player, the player does a GET, in turn marking the voicemail as read.

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/

Reply via email to