SKBlob


new SKBlob(data)

Snapchat Blob wrapper

Parameters:
Name Type Description
data Buffer
Source:

Members


<readonly> data

The underlying data for the image or video.

Properties:
Type Description
Buffer
Source:

<readonly> isImage

Whether or not this blob represents an image (PNG or JPEG).

Properties:
Type Description
boolean
Source:

<readonly> isMedia

Whether or not this blob represents a supported image or video format.

Properties:
Type Description
boolean
Source:

<readonly> isMPEG4

Whether or not this blob represents an MPEG4 video.

Properties:
Type Description
boolean
Source:

<readonly> isVideo

Whether or not this blob represents a video (MPEG4).

Properties:
Type Description
boolean
Source:

<readonly> overlay

The overlay for the video if applicable.

Properties:
Type Description
Buffer
Source:

<readonly> type

Information about the media type.

Properties:
Type Description
Buffer
Source:

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: