Skip to content

Galaxy Camera startStream error #2158

Description

@oertion

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Smartphone (please complete the following information):

  • Library version : 2.6.6
  • Device: Galaxy Camera (Samsung EK-KC120L)
  • OS: sdk 16
  • Media server [e.g. srs, version 5.0]
  • Class used : RtmpCamera1

Additional context
Add any other context about the problem here.

Hello.
I am making good use of the library you provided.

I am experiencing an issue with a device running Android sdk 16 specifically, the Galaxy Camera (Samsung EK-KC120L)—where the transfer does not seem to be working.
Could you please look into this?

private boolean prepareEncoders() {
    int width = 640;
    int height = 480;
    bitrate = 500 * 1024;

    boolean prepareVideo = rtmpCamera.prepareVideo(width, height, 30, bitrate, CameraHelper.getCameraOrientation(this));
    boolean prepareAudio = rtmpCamera.prepareAudio();
    return prepareVideo && prepareAudio;
}
if (prepareEncoders()) {
      rtmpCamera.startStream(ffmpeg_link);
}
public void startStream(String url) {
    streaming = true;
    if (!recordController.isRunning()) { <--- this is null
      startEncoders();
    } else {
      requestKeyFrame();
    }
    startStreamImp(url);
    onPreview = true;
}

20260728164438.092->java.lang.NullPointerException
2026-07-28 16:44:38.095 12143-24693 System.out com.example.javacv.stream.test2 I at com.pedro.library.base.Camera1Base.startStream(Camera1Base.java:694)
2026-07-28 16:44:38.095 12143-24693 System.out com.example.javacv.stream.test2 I at com.example.javacv.stream.ui.MainActivity.startStreaming(MainActivity.java:386)
2026-07-28 16:44:38.095 12143-24693 System.out com.example.javacv.stream.test2 I at com.example.javacv.stream.ui.MainActivity$4.run(MainActivity.java:345)
2026-07-28 16:44:38.095 12143-24693 System.out com.example.javacv.stream.test2 I at java.util.Timer$TimerImpl.run(Timer.java:284)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions