Added 'isAllFramesUploaded' and 'getVideoFrameCacheCount' methods.

camera2
Zohaad Afzal 6 years ago
parent 5995f66933
commit 8a1f71cda9

@ -218,6 +218,17 @@ public class SrsPublisher {
} }
} }
public boolean isAllFramesUploaded(){
return mFlvMuxer.getVideoFrameCacheNumber().get() == 0;
}
public int getVideoFrameCacheCount(){
if(mFlvMuxer != null) {
return mFlvMuxer.getVideoFrameCacheNumber().get();
}
return 0;
}
public void switchToSoftEncoder() { public void switchToSoftEncoder() {
mEncoder.switchToSoftEncoder(); mEncoder.switchToSoftEncoder();
} }

Loading…
Cancel
Save