pause implementation

Why wasn't it used?
camera2
thegobot 4 years ago committed by GitHub
parent 7f0fe5a82d
commit bfbdd0c0ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save