|
|
|
@ -207,6 +207,7 @@ object NativeLib { |
|
|
|
width: Int = 0, height: Int = 0, rotation: Int = 0, audio: Boolean = true, videoCodec: Int = 1): Int = |
|
|
|
width: Int = 0, height: Int = 0, rotation: Int = 0, audio: Boolean = true, videoCodec: Int = 1): Int = |
|
|
|
nativeStreamFeed(id, video, pts, key, data, revision, width, height, rotation, audio, videoCodec) |
|
|
|
nativeStreamFeed(id, video, pts, key, data, revision, width, height, rotation, audio, videoCodec) |
|
|
|
fun streamTxStats(id: Long): LongArray? = nativeStreamTxStats(id) |
|
|
|
fun streamTxStats(id: Long): LongArray? = nativeStreamTxStats(id) |
|
|
|
|
|
|
|
fun streamSetAudioEnabled(id: Long, enabled: Boolean): Boolean = nativeStreamSetAudioEnabled(id, enabled) |
|
|
|
fun streamStop(id: Long) { nativeStreamStop(id) } |
|
|
|
fun streamStop(id: Long) { nativeStreamStop(id) } |
|
|
|
fun streamPull(id: Long, positionUs: Long = -1, wantVideo: Boolean = true, audioAheadUs: Long = 80000): ByteArray? = |
|
|
|
fun streamPull(id: Long, positionUs: Long = -1, wantVideo: Boolean = true, audioAheadUs: Long = 80000): ByteArray? = |
|
|
|
nativeStreamPull(id, positionUs, wantVideo, audioAheadUs) |
|
|
|
nativeStreamPull(id, positionUs, wantVideo, audioAheadUs) |
|
|
|
@ -231,6 +232,7 @@ object NativeLib { |
|
|
|
private external fun nativeStreamFeed(id: Long, video: Boolean, pts: Long, key: Boolean, data: ByteArray, |
|
|
|
private external fun nativeStreamFeed(id: Long, video: Boolean, pts: Long, key: Boolean, data: ByteArray, |
|
|
|
revision: Long, width: Int, height: Int, rotation: Int, audio: Boolean, videoCodec: Int): Int |
|
|
|
revision: Long, width: Int, height: Int, rotation: Int, audio: Boolean, videoCodec: Int): Int |
|
|
|
private external fun nativeStreamTxStats(id: Long): LongArray? |
|
|
|
private external fun nativeStreamTxStats(id: Long): LongArray? |
|
|
|
|
|
|
|
private external fun nativeStreamSetAudioEnabled(id: Long, enabled: Boolean): Boolean |
|
|
|
private external fun nativeStreamStop(id: Long) |
|
|
|
private external fun nativeStreamStop(id: Long) |
|
|
|
private external fun nativeStreamPull(id: Long, position: Long, wantVideo: Boolean, audioAhead: Long): ByteArray? |
|
|
|
private external fun nativeStreamPull(id: Long, position: Long, wantVideo: Boolean, audioAhead: Long): ByteArray? |
|
|
|
private external fun nativeStreamStatus(id: Long): LongArray? |
|
|
|
private external fun nativeStreamStatus(id: Long): LongArray? |
|
|
|
|