io.antmedia.statistic.IStreamStats Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ant-media-server Show documentation
Show all versions of ant-media-server Show documentation
Ant Media Server supports RTMP, RTSP, MP4, HLS, WebRTC, Adaptive Streaming, etc.
package io.antmedia.statistic;
public interface IStreamStats {
/**
* Register a new viewer to a stream
* @param streamId
* @param sessionId
*/
void registerNewViewer(String streamId, String sessionId, String subscriberId);
/**
* Return the number of viewers of the stream
* @param streamId
* @return
*/
int getViewerCount(String streamId);
}