Interface MediaStreamStats2

  • All Superinterfaces:
    MediaStreamStats
    All Known Implementing Classes:
    MediaStreamStats2Impl

    public interface MediaStreamStats2
    extends MediaStreamStats
    An extended interface for accessing the statistics of a MediaStream. The reason to extend the MediaStreamStats interface rather than adding methods into it is to allow the implementation to reside in a separate class. This is desirable in order to: 1. Help to keep the old interface for backward compatibility. 2. Provide a "clean" place where future code can be added, thus avoiding further cluttering of the already overly complicated MediaStreamStatsImpl.
    Author:
    Boris Grozev
    • Method Detail

      • getReceiveStats

        ReceiveTrackStats getReceiveStats()
        Returns:
        the instance which keeps aggregate statistics for the associated MediaStream in the receive direction.
      • getSendStats

        SendTrackStats getSendStats()
        Returns:
        the instance which keeps aggregate statistics for the associated MediaStream in the send direction.
      • getReceiveStats

        ReceiveTrackStats getReceiveStats​(long ssrc)
        Returns:
        the instance which keeps statistics for a particular SSRC in the receive direction.
      • getSendStats

        SendTrackStats getSendStats​(long ssrc)
        Returns:
        the instance which keeps statistics for a particular SSRC in the send direction.
      • getAllSendStats

        Collection<? extends SendTrackStats> getAllSendStats()
        Returns:
        all per-SSRC statistics for the send direction.
      • getAllReceiveStats

        Collection<? extends ReceiveTrackStats> getAllReceiveStats()
        Returns:
        all per-SSRC statistics for the receive direction.
      • clearSendSsrc

        void clearSendSsrc​(long ssrc)
        Clears send ssrc stats.
        Parameters:
        ssrc - the ssrc to clear.