|
|
@ -357,6 +357,11 @@ public class SrsEncoder {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void onGetPcmFrame(byte[] data, int size) {
|
|
|
|
public void onGetPcmFrame(byte[] data, int size) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mPausetime > 0){
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Check video frame cache number to judge the networking situation.
|
|
|
|
// Check video frame cache number to judge the networking situation.
|
|
|
|
// Just cache GOP / FPS seconds data according to latency.
|
|
|
|
// Just cache GOP / FPS seconds data according to latency.
|
|
|
|
AtomicInteger videoFrameCacheNumber = flvMuxer.getVideoFrameCacheNumber();
|
|
|
|
AtomicInteger videoFrameCacheNumber = flvMuxer.getVideoFrameCacheNumber();
|
|
|
@ -388,6 +393,11 @@ public class SrsEncoder {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public void onGetRgbaFrame(byte[] data, int width, int height) {
|
|
|
|
public void onGetRgbaFrame(byte[] data, int width, int height) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(mPausetime > 0){
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Check video frame cache number to judge the networking situation.
|
|
|
|
// Check video frame cache number to judge the networking situation.
|
|
|
|
// Just cache GOP / FPS seconds data according to latency.
|
|
|
|
// Just cache GOP / FPS seconds data according to latency.
|
|
|
|
AtomicInteger videoFrameCacheNumber = flvMuxer.getVideoFrameCacheNumber();
|
|
|
|
AtomicInteger videoFrameCacheNumber = flvMuxer.getVideoFrameCacheNumber();
|
|
|
|