On Dienstag, 17. Juli 2018 16:07:28 CEST Linus Jahn wrote:
> On Tue, 17 Jul 2018 15:36:06 +0200, Jonas Wielicki <jo...@wielicki.name> 
wrote:
> > Yes. Not tying this to <composing/> seems like a good idea for
> > flexibility. My suggestion would be to put your new elements next to
> > the existing XEP-0085 elements, not as children of them. E.g.:
> > 
> > <message>
> > 
> >   <composing xmlns='http://jabber.org/protocol/chatstates'/>
> >   <uploading
> >   
> >     type='image'
> >     progress='0.4'/>
> > 
> > </message>
> 
> Makes sense. +1
> 
> > @progress would be optional and give the upload progress from 0 to 1.
> > @type would indicate what’s being uploaded (although I’m not 100%
> > sure if that makes sense to have). The valid values for @type should
> > be enumerated; it might make sense to allow use of MIME types here.
> 
> I was thinking about just using an integer from 0-99 for the progress.

There’s no reason to restrict to integer here. Using 0..1 as range is more 
pure mathematically speaking (you can just divide the number of bytes sent by 
the total number of bytes to obtain this, no need to multiply with 100). This 
just as a rationale for my suggestion.

> > > Apart from that, there should be states for uploading media files
> > > and states for the creation of the media files (user is recording
> > > audio/video or taking a picture).
> > 
> > I’m not sure what the use-case for this would be in general.
> 
> As Paul wrote Telegram and I think even Whatsapp use this to display
> something as "recording a voice message" or "recording a video".
> Additionally I would add a state for "taking a photo", when the user
> takes a photo via. the client (mobile clients often have the
> possibility to "take a photo").

Right.

kind regards,
Jonas

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: standards-unsubscr...@xmpp.org
_______________________________________________

Reply via email to