new SKBlob(data)
Snapchat Blob wrapper
Parameters:
Name | Type | Description |
---|---|---|
data |
Buffer |
- Source:
Members
-
<readonly> data
-
The underlying data for the image or video.
- Source:
Properties:
Type Description Buffer -
<readonly> isImage
-
Whether or not this blob represents an image (PNG or JPEG).
- Source:
Properties:
Type Description boolean -
<readonly> isMedia
-
Whether or not this blob represents a supported image or video format.
- Source:
Properties:
Type Description boolean -
<readonly> isMPEG4
-
Whether or not this blob represents an MPEG4 video.
- Source:
Properties:
Type Description boolean -
<readonly> isVideo
-
Whether or not this blob represents a video (MPEG4).
- Source:
Properties:
Type Description boolean -
<readonly> overlay
-
The overlay for the video if applicable.
- Source:
Properties:
Type Description Buffer -
<readonly> type
-
Information about the media type.
- Source:
Properties:
Type Description Buffer
Methods
-
<static> decompress(data, cb)
-
Unarchives blobs initialized with anonymous data.
Parameters:
Name Type Description data
Buffer cb
function - Source:
-
<static> decrypt(data, story, cb)
-
Parameters:
Name Type Description data
Buffer story
Story cb
function - Source:
-
<static> initWithData(data, cb)
-
Initializes and returns a new SKBlob from the given raw data. Does not handle encrypted data.
Parameters:
Name Type Description data
Buffer cb
function - Source:
-
<static> initWithStoryData(data, story, cb)
-
Initializes and returns a new SKBlob from the given story and raw data.
Parameters:
Name Type Description data
Buffer story
Story cb
function - Source: