How to extract metadata from udp stream of a ts file
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
Hi, i have an udp stream from which i'd like to extract metadata flow. I'm streaming a ts file from vlc media player.
I can stream but i can't receive metadata. I'm using the following code to extract metadata:
```
override fun onTracksChanged(
trackGroups: TrackGroupArray,
trackSelections: TrackSelectionArray
) {
simpleExoPlayer?.addAnalyticsListener(EventLogger(trackSelector))
for (i in 0 until trackGroups.length) {
val trackGroup = trackGroups.get(i)
for (j in 0 until trackGroup.length) {
val trackMetadata = trackGroup.getFormat(j)
if (trackMetadata != null) {
//do something with metadata
}
}
}
}
```
but i don't receive nothing, i need to receive metadata like: duration, in playback title, next and previous program etc...
how can i resolve this issue? Thank you!
Contributor guide
Assessment
This issue has not been assessed yet.