<INPUT TYPE=audio> (was: Re: Client side file push)

Mirsad Todorovac (tm@rasips2.rasip.etf.hr)
Fri, 10 Nov 1995 18:20:42 +0100 (MET)


>
> At 09:40 11/03/95 PST, Fisher Mark wrote:
>
> Do any other browsers not "in wide distribution" support it?
>
> By the way, this from the IESG:
>
> The IESG has reviewed the Internet-Draft "Form-based File Upload in HTML"
> <draft-ietf-html-fileupload-03.txt> and recommends that it be published
> by the RFC Editor as an Experimental RFC. This document is the product of
> the HyperText Markup Language Working Group. The IESG contact persons are
> John Klensin and Harald Alvestrand.

This RFC came out as RFC 1867: "Form-based File Upload in HTML" .
( URL: http://www.rasip.fer.hr/cgi-bin/rfc/rfc1867.txt )

It's not quite obvious why there shouldn't be some more input types for
forms (of course it is not elegant to clutter browsers with hundreds of types),
like e.g.

<INPUT TYPE="audio" ACCEPT="audio/basic">
<INPUT TYPE="video" ACCEPT="video/mpeg">

which should be handled differently by their nature than plain files.

Of course, this could be implied by <INPUT TYPE=file ACCEPT="audio/basic">,
but this would open a file browser with filter "*.au" for browsing for the
audio record.

What INPUT TYPE "audio" could bring is posibility to record audio immediatelly
from hardware audio device, with a "microphone" button. Then we could play it
to see how it sounds, browse for audio file instead, save recording and
finaly press submit.

Sending mechanism proposed in RFC 1867 could be respected without changes;
setting apropriate MIME type/subtype.

Example:
------------------------------------------------------------------------------
<FORM ACTION="/cgi-bin/process-registration"
METHOD=POST ENCTYPE="multipart/form-data">
Please enter your userid: <INPUT TYPE="text"><BR>
Please enter your password: <INPUT TYPE="password"><BR>
Enter your voice signature: <INPUT TYPE="audio"
ACCEPT="audio/basic, audio/adpcm, audio/*"><BR>
<INPUT TYPE="submit"><BR>
</FORM>
------------------------------------------------------------------------------
Which could be rendered as:
------------------------------------------------------------------------------

Please enter your userid: ___________________
Please enter your password: ___________________
Enter your voice signature:
___________________________________________
/ \
| [Record] [Rewind] [PLAY] [Browse] [Save] |
| |
| [#######>######] Playing ... 14sec/30sec |
\___________________________________________/

[Submit Form]

------------------------------------------------------------------------------
-- Mirsad

-- 
Mirsad Todorovac at Electrical Engineering Faculty, University Zagreb, Croatia
mirsad.todorovac@etf.hr, tm@rasip.etf.hr, http://www.rasip.fer.hr/