Skip to content

[Enhancement] Feature Request: Support bounded playback of embedded videos using byte offset and length #2495

Description

@guzhi123

Which platform is your feature request for?

Windows, Android, iOS, macOS, tvOS, visionOS

Description

Feature request

We would like AVPro Video to support playing multiple embedded video files from a single package/container by specifying both a byte offset and a byte length.

Use case

Our application packages multiple videos into one large binary file for deployment and content protection.

The package layout is conceptually:

[video A][video B][video C]...

Activity

  1. guzhi123 commented on Aug 7, 2026

    @guzhi123
    Author

    The current PlatformOptionsAndroid.fileOffset API only specifies the
    starting byte offset. There is no public API to specify the maximum byte
    range or length of the embedded media.

    We need the player to read only this range:

    [offset, offset + length)

    This is required because multiple independent video files are stored in a
    single package. The player must not read or demux bytes belonging to the
    following video.

    The requested behavior is:

    1. Start reading at byteOffset.
    2. Limit all reads to byteLength.
    3. Support seeking within the selected range.
    4. Report duration and seekable times for the selected media only.
    5. Return an error if the media cannot be parsed within the specified range.

    An API such as the following would work:

    mediaPlayer.PlatformOptionsAndroid.fileOffset = offset;
    mediaPlayer.PlatformOptionsAndroid.fileLength = length;
    or:
    mediaPlayer.OpenMedia(
        MediaPathType.AbsolutePathOrURL,
        packagePath,
        autoPlay: true,
        byteOffset: offset,
        byteLength: length
    );
  2. added
    AndroidAndroid platform
    and removed
    triageNeeds triage
    on Oct 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

AndroidAndroid platformenhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions