What exceptions does a client see when record operations fail? #1488
Replies: 4 comments 2 replies
-
|
Hello, The write errors should be catch here: |
Beta Was this translation helpful? Give feedback.
-
|
Hi Pedro, |
Beta Was this translation helpful? Give feedback.
-
|
Hello, Yes, that will works. default void onError(Exception e) {}Also, I need to test full disk case to make sure that the error is properly catch. |
Beta Was this translation helpful? Give feedback.
-
|
Added here: implementation 'com.github.pedroSG94.RootEncoder:library:b3e3675511' |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Folks,
I'm wondering what exceptions a client to the
RootEncoderwill see if the client callsRtmpCamera1.startStreamAndRecord(streamUrl, filePath)and the device's disk gets full while the recording is in progress? ThestartStreamAndRecordmethod is defined to throw anIOException, but what about write-related errors that occur later while the stream is in progress? Is aRuntimeexception thrown that the client can catch, or is it swallowed by theRootEncoder?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions