FrameInfo
Stay organized with collections
Save and categorize content based on your preferences.
This class is deprecated.The Stream Protect API will be shutdown in 2023.
A FrameInfo
instance is a Parcelable
that contains data about a video frame of a streaming
session.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_STABILITY_LOCAL |
|
int |
PARCELABLE_STABILITY_VINTF |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Public Constructor Summary
FrameInfo
(int frameId, int frameSizeBytes, long
frameReceiveStartTimeUs, long frameReceiveEndTimeUs) This constructor is deprecated. The Stream Protect API will be shutdown in
2023.
Public Method Summary
int |
getFrameId
() This method is deprecated. The Stream Protect API will be shutdown in
2023.
|
long |
|
long |
|
int |
getFrameSizeBytes
() This method is deprecated. The Stream Protect API will be shutdown in
2023.
|
String
|
|
void |
|
Inherited Method Summary
From class java.lang.Object
From interface android.os.Parcelable
abstract int |
describeContents
()
|
int |
getStability
()
|
abstract void |
writeToParcel
( Parcel
arg0,
int arg1)
|
Public Constructors
public
FrameInfo
(int frameId, int
frameSizeBytes, long frameReceiveStartTimeUs, long frameReceiveEndTimeUs)
This constructor is deprecated.The Stream Protect API will be shutdown in 2023.
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
()
This method is deprecated.The Stream Protect API will be shutdown in 2023.
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
()
This method is deprecated.The Stream Protect API will be shutdown in 2023.
The arrival time of the last packet for this frame in microseconds.
public long
getFrameReceiveStartTimeUs
()
This method is deprecated.The Stream Protect API will be shutdown in 2023.
The arrival time of the first packet for this frame in microseconds.
public int
getFrameSizeBytes
()
This method is deprecated.The Stream Protect API will be shutdown in 2023.
The size of the frame in bytes. It should be >=0.
public void
writeToParcel
( Parcel
dest, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eFrameInfo\u003c/code\u003e is a deprecated Parcelable class containing data about a video frame in a streaming session, part of the Stream Protect API which will be shut down in 2023.\u003c/p\u003e\n"],["\u003cp\u003eIt includes information such as frame ID, size, and the start and end times of packet arrival for the frame.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides methods to access these frame details, like \u003ccode\u003egetFrameId()\u003c/code\u003e, \u003ccode\u003egetFrameSizeBytes()\u003c/code\u003e, \u003ccode\u003egetFrameReceiveStartTimeUs()\u003c/code\u003e, and \u003ccode\u003egetFrameReceiveEndTimeUs()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should be aware of its deprecation and the impending shutdown of the Stream Protect API.\u003c/p\u003e\n"]]],[],null,["# FrameInfo\n\npublic class **FrameInfo** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \n**This class is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023.\n\nA [FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo)\ninstance is a `Parcelable` that contains data about a video frame of a streaming\nsession. \n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_STABILITY_LOCAL | |\n| int | PARCELABLE_STABILITY_VINTF | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Field Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------|---|\n| public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo)\\\u003e | [CREATOR](/android/reference/com/google/android/gms/streamprotect/FrameInfo#CREATOR) | |\n\n### Public Constructor Summary\n\n|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo#FrameInfo(int,%20int,%20long,%20long))(int frameId, int frameSizeBytes, long frameReceiveStartTimeUs, long frameReceiveEndTimeUs) *This constructor is deprecated. The Stream Protect API will be shutdown in 2023.* |\n\n### Public Method Summary\n\n|-------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| int | [getFrameId](/android/reference/com/google/android/gms/streamprotect/FrameInfo#getFrameId())() *This method is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| long | [getFrameReceiveEndTimeUs](/android/reference/com/google/android/gms/streamprotect/FrameInfo#getFrameReceiveEndTimeUs())() *This method is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| long | [getFrameReceiveStartTimeUs](/android/reference/com/google/android/gms/streamprotect/FrameInfo#getFrameReceiveStartTimeUs())() *This method is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| int | [getFrameSizeBytes](/android/reference/com/google/android/gms/streamprotect/FrameInfo#getFrameSizeBytes())() *This method is deprecated. The Stream Protect API will be shutdown in 2023.* |\n| [String](//developer.android.com/reference/java/lang/String.html) | [toString](/android/reference/com/google/android/gms/streamprotect/FrameInfo#toString())() |\n| void | [writeToParcel](/android/reference/com/google/android/gms/streamprotect/FrameInfo#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| int | getStability() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nFields\n------\n\n#### public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo)\\\u003e\n**CREATOR**\n\nPublic Constructors\n-------------------\n\n#### public **FrameInfo** (int frameId, int frameSizeBytes, long frameReceiveStartTimeUs, long frameReceiveEndTimeUs)\n\n**This constructor is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \n[FrameInfo](/android/reference/com/google/android/gms/streamprotect/FrameInfo)\nconstructor requires frame id, frame size in bytes, and the first and the last packet\narrival/receiving time of the frame.\n\nThe timing should be consistent with [ClockType](/android/reference/com/google/android/gms/streamprotect/ClockType)\nconfigured.\n\nPublic Methods\n--------------\n\n#### public int **getFrameId** ()\n\n**This method is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nThe ID of the frame, or frame number.\n\nIt should be \\\u003e= 0 and monotonically increasing in one streaming session. This is\nused for Stream Protect to determine the effectiveness of protection. \n\n#### public long **getFrameReceiveEndTimeUs** ()\n\n**This method is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nThe arrival time of the last packet for this frame in microseconds. \n\n#### public long **getFrameReceiveStartTimeUs** ()\n\n**This method is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nThe arrival time of the first packet for this frame in microseconds. \n\n#### public int **getFrameSizeBytes** ()\n\n**This method is deprecated.** \n\nThe Stream Protect API will be shutdown in 2023. \nThe size of the frame in bytes. It should be \\\u003e=0. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **toString** ()\n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags)"]]