Skip to content

Support for Telegram-like floating video? #196

@ONESECTOR

Description

@ONESECTOR

Hi! I'm trying to implement a Telegram-like floating video feature in my Compose Multiplatform app using this library.

The goal:
Video plays inside a LazyColumn item (circular video widget)
When user scrolls and the video goes out of view, it should seamlessly continue playing in a small floating widget (for example bottom-left corner of screen)
When scrolling back, video should return to the original position without restart or rebuffering

The problem:
LazyColumn destroys composables when they scroll out of view. I tried several approaches:

  1. Single VideoPlayerComposable positioned over the list (very complex and hacky solution)
  2. Two VideoPlayerComposable instances sharing one MediaPlayerHost → video restarts when switching between them
  3. movableContentOf → same issues as 1, very complex

Question:
Does your library support this kind of use case at all? Is it possible to keep video playback alive while moving between different UI containers?
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions