Skip to content

HLS: chunkless preparation breaks fmp4 content playback #5524

@SukritGupta17

Description

@SukritGupta17

Issue description

When trying to play fmp4 content with chunkless preparation turned on, at the end of video playback the player state never changes to ended and the playback continues with the timeline ticking on.

Reproduction steps

The bug can be reproduced in the ExoPlayer demo app.

  1. turn chunkless preparation on:
    in PlayerActivity.java make the following code changes under the buildMediaSource function:
case C.TYPE_HLS:
        return new HlsMediaSource.Factory(dataSourceFactory)
            .setPlaylistParserFactory(
                new DefaultHlsPlaylistParserFactory(getOfflineStreamKeys(uri)))
            .setAllowChunklessPreparation(true)
            .createMediaSource(uri);
  1. Select the fmp4 bipbop content from the HLS demo content.

  2. The playback never ends.

Link to test content

The fragment mp4 demo test content:

        "name": "Apple master playlist advanced (fMP4)",
        "uri": "https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_fmp4/master.m3u8"

Version of ExoPlayer being used

ExoPlayer - tag version 2.9.5

Device(s) and version(s) of Android being used

Device: LG G6
Android version: 7.0

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions