NetworkUsage

@objc
public protocol NetworkUsage

Network analytics related to network usage

  • Returns the number of bytes downloaded so far

    Declaration

    Swift

    func bytesDownloaded() -> Int64

    Return Value

    the number of bytes downloaded so far

  • Returns the empirical throughput, in bits per second, across all media downloaded

    Declaration

    Swift

    func downloadBitrate() -> Double

    Return Value

    the throughput, in bits per second

  • Returns the video track’s average bit rate, in bits per second

    Declaration

    Swift

    func downloadBitrateAverage() -> Double

    Return Value

    the video track’s average bit rate, in bits per second

  • Returns the number of media read requests from the server to this client

    Declaration

    Swift

    func numberOfMediaRequests() -> Int

    Return Value

    The number of media read requests from the server to this client or -1 if unknown

  • Returns the accumulated duration, in seconds, of active network transfer of bytes

    Declaration

    Swift

    func transferDuration() -> TimeInterval

    Return Value

    the accumulated duration, in seconds, of active network transfer of bytes or -1 if unknown

  • Returns the total number of times that downloading the segments took too long.

    Declaration

    Swift

    func downloadsOverdue() -> Int

    Return Value

    the total number of times that downloading the segments took too long or -1 if unknown