Skip to content

[video_player] Convert implementation to Kotlin - #13683

Merged
auto-submit[bot] merged 15 commits into
flutter:mainfrom
stuartmorgan:video-player-kotlin-impl
Nov 19, 2026
Merged

auto-submit[bot] merged 15 commits into
flutter:mainfrom
stuartmorgan:video-player-kotlin-impl

Conversation

@stuartmorgan

Copy link
Copy Markdown
Contributor

Converts video_player_android implementation code from Java to Kotlin.

Similar to my other conversions, the process was:

  • Use the Android Studio deterministic auto-conversion.
  • Do manual cleanup, as separate commits by topic.
  • Do a local Gemini review for where the code could be improved as Kotlin code, and address most of that feedback.

Part of flutter/flutter#188630

Pre-Review Checklist

Footnotes

  1. Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. ↩ ↩2

@stuartmorgan stuartmorgan added the triage-android Should be looked at in Android triage label Nov 17, 2026
@flutter-dashboard flutter-dashboard Bot added the CICD Run CI/CD label Nov 17, 2026
@stuartmorgan
stuartmorgan force-pushed the video-player-kotlin-impl branch from cc74148 to 9a8afe9 Compare November 17, 2026 01:08

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request converts the native Android implementation of the video player plugin from Java to Kotlin. The feedback identifies type mismatch issues with range checks on Long variables, potential integer truncation vulnerabilities during bounds checking, and opportunities to use string templates instead of concatenation.

@stuartmorgan

Copy link
Copy Markdown
Contributor Author

Since the changes were almost all mechanical, I went ahead and did the entire implementation at once; that also avoided the need to temporarily add @Jvm* annotations in a bunch of places. But if you would prefer this to be cut up into smaller sets of files, I can do it that way instead.

@stuartmorgan stuartmorgan changed the title Video player kotlin impl [video_player] Convert implementation to Kotlin Nov 17, 2026

@mboetger mboetger left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Hope your enjoying retirement, Stuart :)

@stuartmorgan stuartmorgan added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 19, 2026
@auto-submit
auto-submit Bot merged commit 89e0693 into flutter:main Nov 19, 2026
13 checks passed
opensource-fork-sync Bot pushed a commit to cla7aye15I4nd/opensource-flutter__flutter that referenced this pull request Nov 20, 2026
…er#197056)

flutter/packages@81b7c44...898818d

2026-11-20 [email protected] [material_ui] Use correct time format for
Sinhala locale (flutter/packages#13645)
2026-11-20 [email protected] [material_ui]
Fix showModalBottomSheet safe area on display-feature sub-screens
(flutter/packages#13428)
2026-11-20 [email protected] [material_ui]
Fix M3 doc errors in the `ElevatedButton` and `FilledButton`
(flutter/packages#13685)
2026-11-19 [email protected] [video_player] Convert implementation
to Kotlin (flutter/packages#13683)
2026-11-19 [email protected] [flutter_svg] Add
SvgLoader.provideSvgInIsolate for unsendable loaders
(flutter/packages#13598)
2026-11-19 [email protected] [VPAT] Expose modal drawers with the
dialog semantics role (flutter/packages#13660)
2026-11-19 [email protected] [VPAT] Keep a11y_assessments tooltips
open while hovered (flutter/packages#13657)
2026-11-19 [email protected] [flutter_svg] Stabilize network SVG cache
keys (flutter/packages#13597)
2026-11-19 [email protected]
[image_picker_ios] Return an error instead of an empty file when an
image cannot be saved (flutter/packages#12998)
2026-11-19 [email protected] [cupertino_ui]
Fix CupertinoNavigationBarBackButton assertion debug
(flutter/packages#13397)
2026-11-19 [email protected] [go_router] Document when
GoRouterState.name and path are null (flutter/packages#13486)

If this roll has caused a breakage, revert this CL and set the roller
to dry run mode using the controls here:
https://autoroll.skia.org/r/flutter-packages-flutter-autoroll
Please CC [email protected] on the revert to ensure that a
human
is aware of the problem.

To file a bug in Flutter:
https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App CICD Run CI/CD p: video_player platform-android triage-android Should be looked at in Android triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants