Android OpenTV Player SDK  4.23.3.1610362082
MediaInfo Class Reference

Public Member Functions

final int getBitrate ()
 Returns the media bitrate variant as presented by the underlying adaptive bitrate manifest. More...
 
final String getResolution ()
 Returns the media resolution as presented by the underlying adaptive manifest. More...
 
final int getTotalSizeEstimate ()
 Returns an estimate of the total size in bytes. More...
 
final long getTotalSizeEstimateWithLong ()
 Returns an estimate of the total size in bytes. More...
 
final int getTotalSizeDownload ()
 Returns the total size in bytes downloaded so far. More...
 
final long getTotalSizeDownloadWithLong ()
 Returns the total size in bytes downloaded so far. More...
 
final int getNumberOfSegmentsDownloaded ()
 Returns the number of segments acquired so far and currently present in storage. More...
 
final String toString ()
 Get a String representation of this Asset. More...
 

Detailed Description

This class aggregates all the information pertaining to an adaptive streaming media representation.

The information contained in it is a snapshot of the current download.

See also
Asset

Member Function Documentation

◆ getBitrate()

final int getBitrate ( )

Returns the media bitrate variant as presented by the underlying adaptive bitrate manifest.

Returns
the media bitrate in Kbps.

◆ getNumberOfSegmentsDownloaded()

final int getNumberOfSegmentsDownloaded ( )

Returns the number of segments acquired so far and currently present in storage.

Returns
the number of segments acquired so far.

◆ getResolution()

final String getResolution ( )

Returns the media resolution as presented by the underlying adaptive manifest.

Returns
the media resolution if exists.

◆ getTotalSizeDownload()

final int getTotalSizeDownload ( )

Returns the total size in bytes downloaded so far.

This value can over or under shoot compared to the estimate, but it represent the occupied space on storage at any moment in time.

Returns
the total size downloaded so far in bytes. -1 means the total size is overflow, please use getTotalSizeDownloadWithLong()
Deprecated:

◆ getTotalSizeDownloadWithLong()

final long getTotalSizeDownloadWithLong ( )

Returns the total size in bytes downloaded so far.

This value can over or under shoot compared to the estimate, but it represent the occupied space on storage at any moment in time.

Returns
the total size downloaded so far in bytes.

◆ getTotalSizeEstimate()

final int getTotalSizeEstimate ( )

Returns an estimate of the total size in bytes.

The resulting downloaded size in bytes can differ slightly.

Returns
an estimate of the total size in bytes. -1 means the total size is overflow, please use getTotalSizeEstimateWithLong()
Deprecated:

◆ getTotalSizeEstimateWithLong()

final long getTotalSizeEstimateWithLong ( )

Returns an estimate of the total size in bytes.

The resulting downloaded size in bytes can differ slightly.

Returns
an estimate of the total size in bytes.

◆ toString()

final String toString ( )

Get a String representation of this Asset.