Skip to content

[video_player_videohole] Fix crash/seek on progressive HTTP MPEG-TS live - #1087

Open
CodeToolPerson wants to merge 2 commits into
flutter-tizen:masterfrom
CodeToolPerson:fix/videohole-progressive-ts-live
Open

[video_player_videohole] Fix crash/seek on progressive HTTP MPEG-TS live#1087
CodeToolPerson wants to merge 2 commits into
flutter-tizen:masterfrom
CodeToolPerson:fix/videohole-progressive-ts-live

Conversation

@CodeToolPerson

@CodeToolPerson CodeToolPerson commented Aug 13, 2026

Copy link
Copy Markdown

Avoid calling adaptive GetLiveDuration on non-adaptive URIs, and skip seek/pause paths that fail when duration is zero.

Summary

Progressive HTTP MPEG-TS live URLs (e.g. plain .ts / /live/) can fail to start or crash with video_player_videohole:

  • adaptive GetLiveDuration may SIGSEGV on non-adaptive streams
  • duration == 0 triggers Dart seekTo(0) / pause paths that fail on live TS

Changes

  • Skip adaptive live-duration API for progressive live URIs; use a 1ms placeholder duration
  • Skip seek on live streams; treat pause as no-op when not PLAYING
  • Dart-side live/open-ended heuristic to avoid mistaken seek/pause

Test plan

  • Tizen TV: progressive HTTP .ts live starts and plays
  • Tizen TV: HLS .m3u8 still works
  • Seek/pause on live does not throw PlatformException / crash

Avoid calling adaptive GetLiveDuration on non-adaptive URIs, and skip
seek/pause paths that fail when duration is zero.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a6189c0bae

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread packages/video_player_videohole/lib/video_player.dart Outdated
Comment thread packages/video_player_videohole/CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant