Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

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

オープン
#2,118 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 3 日以内に返信

@pedroSG94 がすでに取り組んでいます。

2026年7月30日 から。

評価

この issue はまだ評価されていません。

説明

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!

主要言語
Kotlin
スター
3k
フォーク
946
平均マージ
5日 1時間
マージ済み PR(30日)
6

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

pedroSG94/RootEncoder のほかの issue

pedroSG94/RootEncoder の issue をすべて見る

似ている issue

Kotlin の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。