You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A RuntimeException occurs when attempting to start streaming using the RootEncoder library version 2.4.5. The error is related to the BaseEncoder class and seems to happen during the initialization of the encoder.
To Reproduce
Steps to reproduce the behavior:
Go to the streaming feature in the app.
Click on the "Start Stream" button.
The app crashes with a RuntimeException.
Expected behavior
The streaming should start successfully without causing any exceptions.
Screenshots
N/A
Smartphone (please complete the following information):
Library version: 2.4.5
Device: Samsung A10, Samsung On7xelte
OS: Android 8.1 (SDK 27), Android 9 (SDK 28)
Media server: SRS, version 5.0
Class used: RtmpCamera1
Additional context
The exception occurs with the following error:
Exception java.lang.RuntimeException:
at android.app.ActivityThread.deliverResults (ActivityThread.java:4519)
at android.app.ActivityThread.handleSendResult (ActivityThread.java:4563)
at android.app.ActivityThread.-wrap21
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1779)
at android.os.Handler.dispatchMessage (Handler.java:106)
at android.os.Looper.loop (Looper.java:164)
at android.app.ActivityThread.main (ActivityThread.java:7000)
at java.lang.reflect.Method.invoke
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:441)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1408)
Caused by java.lang.IllegalStateException:
at com.pedro.encoder.BaseEncoder.start (BaseEncoder.java:78)
at com.pedro.library.base.StreamBase.startSources (StreamBase.kt:379)
at com.pedro.library.base.StreamBase.startStream (StreamBase.kt:152)
Are you sure that prepareVideo and prepareAudio returned true and you called it before startStream?
Using StreamBase you only need call it the first time to configure parameters. After that, StreamBase automatically do it for you when it is needed.
Describe the bug
A
RuntimeException
occurs when attempting to start streaming using theRootEncoder
library version2.4.5
. The error is related to theBaseEncoder
class and seems to happen during the initialization of the encoder.To Reproduce
Steps to reproduce the behavior:
RuntimeException
.Expected behavior
The streaming should start successfully without causing any exceptions.
Screenshots
N/A
Smartphone (please complete the following information):
RtmpCamera1
Additional context
The exception occurs with the following error:
Environment details
com.github.pedroSG94.RootEncoder:library:2.4.5
The text was updated successfully, but these errors were encountered: