Skip to content

Support format changes in Transformer #3079

@dorobonneko

Description

@dorobonneko

Version

Media3 1.9.2

More version details

No response

Devices that reproduce the issue

redmi k20 pro
raphael

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps

		trans=new Transformer.Builder(context).build();
		trans.addListener(this);
		trans.start(MediaItem.fromUri(m3u8.getAbsolutePath()),download.getTempPath());

Expected result

Caused by: java.lang.IllegalStateException: Format changes are not supported.
at androidx.media3.transformer.ExoAssetLoaderBaseRenderer.readInput(ExoAssetLoaderBaseRenderer.java:353)

Actual result

当本地m3u8文件中包含部分广告片段,并且广告片段格式与视频本身格式不一致就会抛Caused by: java.lang.IllegalStateException: Format changes are not supported.
at androidx.media3.transformer.ExoAssetLoaderBaseRenderer.readInput(ExoAssetLoaderBaseRenderer.java:353)
希望可以允许跳过该片段

Media

https://vip.dytt-cinema.com/20260114/45459_8df878a8/3000k/hls/mixed.m3u8

Bug Report

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions