FrameInfo

public class FrameInfo extends Object
implements Parcelable

A FrameInfo instance is a Parcelable that contains data about a video frame of a streaming session.

Inherited Constant Summary

Field Summary

public static final Creator<FrameInfo> CREATOR

Public Constructor Summary

FrameInfo(int frameId, int frameSizeBytes, long frameReceiveStartTimeUs, long frameReceiveEndTimeUs)
FrameInfo constructor requires frame id, frame size in bytes, and the first and the last packet arrival/receiving time of the frame.

Public Method Summary

int
getFrameId()
The ID of the frame, or frame number.
long
getFrameReceiveEndTimeUs()
The arrival time of the last packet for this frame in microseconds.
long
getFrameReceiveStartTimeUs()
The arrival time of the first packet for this frame in microseconds.
int
getFrameSizeBytes()
The size of the frame in bytes.
String
void
writeToParcel(Parcel dest, int flags)

Inherited Method Summary

Fields

public static final Creator<FrameInfo> CREATOR

Public Constructors

public FrameInfo (int frameId, int frameSizeBytes, long frameReceiveStartTimeUs, long frameReceiveEndTimeUs)

FrameInfo constructor requires frame id, frame size in bytes, and the first and the last packet arrival/receiving time of the frame.

The timing should be consistent with ClockType configured.

Public Methods

public int getFrameId ()

The ID of the frame, or frame number.

It should be >= 0 and monotonically increasing in one streaming session. This is used for Stream Protect to determine the effectiveness of protection.

public long getFrameReceiveEndTimeUs ()

The arrival time of the last packet for this frame in microseconds.

public long getFrameReceiveStartTimeUs ()

The arrival time of the first packet for this frame in microseconds.

public int getFrameSizeBytes ()

The size of the frame in bytes. It should be >=0.

public String toString ()

public void writeToParcel (Parcel dest, int flags)