- From: Luc Yriarte <luc.yriarte@linux.intel.com>
- Date: Thu, 18 Apr 2013 15:39:23 +0200
- To: public-nfc@w3.org
Using Don's input on NDEFMessage / NDEFRecord constructors. - added byte[]constructor to NDEFMessage, and a getBytes method. - added NDEFRecord mother class constructor with tnf, type string, payload and id. - The getPayload method also moves to the NDEFRecord mother class. I'd rather keep getPayload / getBytes as asynchronous methods instead of record / message attributes. In some situations / platforms only the record header may be decoded for a MIME record (Media, MIMEMedia, I have no strong feelings about the name) and the user may not need the content. Typically that would be the case for a SmartPoster, that can contain an array of MIME records that the user can ignore. I'd also like to make the MIME record use the media capture API http://www.w3.org/TR/html-media-capture/ so that a web app would not have to see the media item raw bytes, but directly manipulate it as media content. More generally, I think manipulating byte[] in Javascript should be a solution of last resort so to speak :) Cheers Luc -- Luc YRIARTE - OTC Software Engineer INTEL Corp. Montpellier, France
Received on Thursday, 18 April 2013 13:40:44 UTC