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.
-
Folks,
I'm wondering what exceptions a client to the
RootEncoder
will see if the client callsRtmpCamera1.startStreamAndRecord(streamUrl, filePath)
and the device's disk gets full while the recording is in progress? ThestartStreamAndRecord
method is defined to throw anIOException
, but what about write-related errors that occur later while the stream is in progress? Is aRuntime
exception thrown that the client can catch, or is it swallowed by theRootEncoder
?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions