Package com.amazonaws.ivs.player
Class UnavailableQuality
java.lang.Object
com.amazonaws.ivs.player.UnavailableQuality
Describes a media rendition that is unavailable for playback
The quality was either removed by the server or by the client.
Unavailable qualities cannot be used as a normal Quality object,
and do not map to a source rendition.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
If populated, describes the authorization failures which resulted in the server removing this quality from the available quality list.int
Gets the bitrate of the media expressed as bits per second.Gets the codec string representing the media codec information, e.g.If populated, describes the technical reasons which resulted in the server or client removing this quality from the available quality list.float
Gets the framerate of the quality expressed as frames per second.getGroup()
Gets the HLS group ID of the quality object.int
Gets the height of the unavailable quality in pixels.getName()
Gets the name of the quality.int
getWidth()
Gets the width of the unavailable quality in pixels.int
hashCode()
-
Constructor Details
-
UnavailableQuality
public UnavailableQuality(@NonNull String name, @NonNull String codecs, int width, int height, @NonNull String group, int bitrate, float framerate, @NonNull List<String> filterReasons, @NonNull List<String> authReasons) Creates a new UnavailableQuality instance.- Parameters:
name
- name of the quality, suitable for use in a user interfacecodecs
- codec string representing the media codec information, e.g. "avc1.64002A,mp4a.40.2"width
- the width of the unavailable quality in pixelsheight
- the height of the unavailable quality in pixelsgroup
- the HLS group ID of the quality objectbitrate
- the bitrate of the media expressed as bits per secondframerate
- the framerate of the quality expressed as frames per secondfilterReasons
- if populated, describes the technical reasons which resulted in the server or client removing this qualityauthReasons
- if populated, describes the authorization failures which resulted in the server removing this quality
-
-
Method Details
-
getName
Gets the name of the quality.- Returns:
- name of the quality
-
getCodecs
Gets the codec string representing the media codec information, e.g. "avc1.64002A,mp4a.40.2"- Returns:
- codec string
-
getWidth
public int getWidth()Gets the width of the unavailable quality in pixels.- Returns:
- width in pixels
-
getHeight
public int getHeight()Gets the height of the unavailable quality in pixels.- Returns:
- height in pixels
-
getGroup
Gets the HLS group ID of the quality object.- Returns:
- group ID
-
getBitrate
public int getBitrate()Gets the bitrate of the media expressed as bits per second.- Returns:
- bitrate in bps
-
getFramerate
public float getFramerate()Gets the framerate of the quality expressed as frames per second.- Returns:
- framerate or 0 if unknown
-
getFilterReasons
If populated, describes the technical reasons which resulted in the server or client removing this quality from the available quality list.- Returns:
- list of filter reasons
-
getAuthReasons
If populated, describes the authorization failures which resulted in the server removing this quality from the available quality list.- Returns:
- list of authorization reasons
-
equals
-
hashCode
public int hashCode()
-