Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Docs/Migration: 1.x → 2.x breaking API changes are not documented (package rename, ConnectChecker rename)

Open
#2,118 0 comments 0 reactions 1 assignee View on GitHub

Maintainers usually reply within 2 days

@pedroSG94 is already working on this.

Since Jul 30, 2026.

Assessment

This issue has not been assessed yet.

Description

enhancement

Summary

RootEncoder 2.x introduced significant breaking changes to the public API compared to 1.x. These changes are not reflected in the README or a migration guide, which makes upgrading unnecessarily painful. This issue documents what changed and requests a migration guide.

Affected versions

Migrating from library:1.x → library:2.4.7

Breaking changes discovered

1. Package rename for streaming classes
1.x 2.x
com.pedro.rtplibrary.rtmp.RtmpCamera1 com.pedro.library.rtmp.RtmpCamera1
com.pedro.rtplibrary.rtsp.RtspCamera1 com.pedro.library.rtsp.RtspCamera1
2. ConnectCheckerRtmp replaced by ConnectChecker
1.x 2.x
com.pedro.rtmp.utils.ConnectCheckerRtmp com.pedro.common.ConnectChecker
3. Callback method renames (removed protocol-specific suffixes)
1.x callback 2.x callback
onConnectionSuccessRtmp() onConnectionSuccess()
onConnectionFailedRtmp(reason) onConnectionFailed(reason)
onNewBitrateRtmp(bitrate) onNewBitrate(bitrate) (from BitrateChecker)
onDisconnectRtmp() onDisconnect()
onAuthErrorRtmp() onAuthError()
onAuthSuccessRtmp() onAuthSuccess()
(not present) onConnectionStarted(url)
4. prepareVideo signature change
// 1.x
boolean prepareVideo(int width, int height, int fps, int bitrate, CameraHelper.Facing facing)

// 2.x
boolean prepareVideo(int width, int height, int fps, int bitrate, int rotation)
5. GlInterface.setCustomImageToStream() / clearCustomImageToStream() removed

In 2.x the static-image injection API was removed. The replacement is to use BaseFilterRender via glInterface.setFilter(...), but there is no documented equivalent for injecting a static bitmap frame.

Request

Please add a MIGRATION.md or a "Migrating from 1.x to 2.x" section in the README. Even a brief table of renames would save users hours of debugging.

Thank you for the great library!

Dominant language
Kotlin
Stars
3k
Forks
946
Avg merge
4d 6h
Merged PRs (30d)
9

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from pedroSG94/RootEncoder

All issues in pedroSG94/RootEncoder

Similar issues

More Kotlin issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.