Java API
record

ProbeResult

me.tamkungz.codecmedia.model.ProbeResult

Version
1.2.0
Java
17
Source file
me/tamkungz/codecmedia/model/ProbeResult.java
Repository
View source ↗
public record ProbeResult( Path input, String mimeType, String extension, MediaType mediaType, Long durationMillis, List<StreamInfo> streams, Map<String, String> tags )

Components 7

input

Path input

mimeType

String mimeType

extension

String extension

mediaType

MediaType mediaType

durationMillis

Long durationMillis

streams

List<StreamInfo> streams

tags

Map<String, String> tags

Methods 1

primaryCodec

public Optional<String> primaryCodec()

Returns the codec of the first stream, when available. <p>This helper avoids direct {@code streams().get(0)} access for callers and safely handles cases where probe results contain no streams.