1

I am working on music app where i play music from url. I am new to ExoPlayer, i don't know how to get metadata information from ExoPlayer. I want to show metadata info in notification.

I have used MediaSource for passing source to ExoPlayer like this :

MediaSource mediaSources = new ExtractorMediaSource(Uri.parse("***.mp3"),
                dataSourceFactory, extractorsFactory, null, null);

Any possibility to get metadata from ExoPlayer?

4

1 回答 1

0

使用 2.1 版,您可以收听元数据。只需添加

公共无效 addMetadataOutput(元数据输出监听器)

到 SimpleExoPlayer。

于 2019-10-18T10:47:52.893 回答