Merge pull request #708 from Zohaad97/develop

Added 'isAllFramesUploaded' and 'getVideoFrameCacheCount' methods.
camera2
Leo Ma 6 years ago committed by GitHub
commit a18f87cd88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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() {
mEncoder.switchToSoftEncoder();
}

Loading…
Cancel
Save