Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Since build 1.1.0.20 it is possible to receive messages containing current publishing or playback bitrate from server and to control channel quality based on client and server bitrates difference.

...

Code Block
languagejava
themeRDark
    playStream.enableConnectionQualityCalculation(true);
    playStream.setConnectionQualityCallback((quality, clientRate, serverRate) -> {
       checkVideoMuted(quality, clientRate, serverRate);
    });
...
    public void updateQualityStatuscheckVideoMuted(ConnectionQuality quality, double clientRate, double serverRate) {
        if (quality != UNKNOWN && quality != BAD) {
            if (serverRate < 10000) {
                // Video is muted by publisher
            }
        }
    }