INNER CODE UNIT · Java
encodeWithMediaRecorder
fyhertz/libstreaming · src/net/majorkernelpanic/streaming/MediaStream.java:306
protected abstract void encodeWithMediaRecorder() throws IOException;
protected abstract void encodeWithMediaCodec() throws IOException;
/**
* Returns a description of the stream using SDP.
* This method can only be called after {@link Stream#configure()}.
* @throws IllegalStateException Thrown when {@link Stream#configure()} was not called.
*/
public abstract String getSessionDescription();
/**
* Returns the SSRC of the underlying {@link net.majorkernelpanic.streaming.rtp.RtpSocket}.
* @return the SSRC of the stream
*/
public int getSSRC() {
return getPacketizer().getSSRC();
}