io.antmedia.webrtc.api.IWebRTCMuxer 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.webrtc.api;
import java.util.Queue;
public interface IWebRTCMuxer extends IStreamInfo {
public void setWebRTCAdaptor(IWebRTCAdaptor webRTCAdaptor);
/**
* Register to WebRTC Adaptor
*/
public void registerToAdaptor();
public String getStreamId();
/**
* Register new WebRTCClient to send video data
* First packet to send should be video conf data
* @param webRTCClient
*/
public void registerWebRTCClient(IWebRTCClient webRTCClient);
/**
* Deregisters WebRTCClient from its list and does not send any
* video or audio packet to this WebRTCClient
* @param webRTCClient
*/
public boolean unRegisterWebRTCClient(IWebRTCClient webRTCClient);
/**
* Send video packet to WebRTCClients
* @param videoPacket
* @param isKeyFrame
*/
public void sendVideoPacket(byte[] videoPacket, boolean isKeyFrame, long timestamp);
/**
* Send audio packet to WebRTCClients
* @param audioPacket
*/
public void sendAudioPacket(byte[] audioPacket, long timestamp);
/**
* Returns number of WebRTCClients registered to the muxer
*/
public int getClientCount();
public boolean contains(IWebRTCClient webRTCClient);
/**
* Return the list of webrtc clients receiving data from webrtc muxer
* @return
*/
public Queue getClientList();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy