Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

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

Aperta
#2,118 0 commenti 0 reazioni 1 assegnatario Vedi su GitHub

I maintainer di solito rispondono entro 3 giorni

@pedroSG94 ci sta già lavorando.

Dal 30/7/2026.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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!

Lingua principale
Kotlin
Stelle
3k
Fork
946
Merge medio
5g 1h
PR unite (30g)
6

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pedroSG94/RootEncoder

Tutte le issue di pedroSG94/RootEncoder

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.