package com.vacenter.Taurus;

import com.vacenter.Taurus.Base;

/* JADX INFO: loaded from: classes.dex */
public class RtspServer {
    private long nativeImpl;

    public interface RtspServerObserver {
        void onStartAudioStream();

        void onStartVideoStream();

        void onStopAudioStream();

        void onStopVideoStream();

        void onVideoBitrateChange(int i2);

        void onVideoKeyframeRequest();
    }

    public RtspServer(long j2) {
        this.nativeImpl = 0L;
        this.nativeImpl = j2;
    }

    public native int addRtspServerObserver(RtspServerObserver rtspServerObserver);

    public long getNativeImpl() {
        return this.nativeImpl;
    }

    public native String getUrl();

    public native int pushAudioFrame(byte[] bArr, int i2);

    public native int pushVideoFrame(byte[] bArr, int i2);

    public native int startRtspServer(String str, int i2, boolean z2, Base.AudioStreamConfiguration audioStreamConfiguration, boolean z3, Base.VideoStreamConfiguration videoStreamConfiguration);

    public native int stopRtspServer();
}
