WebAPI/WebMMS: Difference between revisions

Line 103: Line 103:
   interface MmsAttachmentStorage
   interface MmsAttachmentStorage
   {
   {
     getter MmsAttachment getAttachment(DOMString name);
     getter Blob getAttachment(DOMString name);
     setter creator void setAttachment(DOMString name, MmsAttachment attachment);
     setter creator void setAttachment(DOMString name, Blob attachment);
     deleter void deleteAttachment(DOMString name);
     deleter void deleteAttachment(DOMString name);
  }
 
  /**
  * MmsAttachment constructor (cf. Blob constructor)
  */
  MmsAttachment MmsAttachment(
    [optional] Array parts,
    [optional] BlobPropertyBag properties
  );
 
  /**
  * MMS attachments extend the DOM Blob type, akin to how File extends Blob.
  */
  [Constructor]
  interface MmsAttachment : Blob
  {
    /**
    * Name of the attachment as it is referenced within the SMIL document (cf. File::name)
    */
    readonly attribute DOMString name;
   
    /**
    * An absolute URI under which User Agent makes the attachment available for download.
    * This is provided so that the data does not have to be loaded into memory first, but
    * can directly be linked to from an <img>, <video>, or <audio> element.
    */
    readonly attribute DOMString uri;
   
    /**
    * Inherited from Blob. See https://developer.mozilla.org/en/DOM/Blob
    */
    readonly attribute unsigned long long size;
    readonly attribute DOMString type;
   }
   }


canmove, Confirmed users
725

edits