MediaStreamInfo
The detailed information of the media stream.
public class MediaStreamInfo { private int streamIndex; private int mediaStreamType; private String codecName; private String language; private int videoFrameRate; private int videoBitRate; private int videoWidth; private int videoHeight; private int videoRotation; private int audioSampleRate; private int audioChannels; private int audioBytesPerSample; private long duration; public MediaStreamInfo() {} }
Attributes
- streamIndex
- The index of the media stream.
- mediaStreamType
- The type of the media stream.
- STREAM_TYPE_UNKNOWN(0): The type is unknown.
- STREAM_TYPE_VIDEO(1): The video stream.
- STREAM_TYPE_AUDIO(2): The audio stream.
- STREAM_TYPE_SUBTITLE(3): The subtitle stream.
- codecName
- The codec of the media stream.
- language
- The language of the media stream.
- videoFrameRate
- This parameter only takes effect for video streams, and indicates the video frame rate (fps).
- videoBitrate
- This parameter only takes effect for video streams, and indicates the video bitrate (bps).
- videoWidth
- This parameter only takes effect for video streams, and indicates the video width (pixel).
- videoHeight
- This parameter only takes effect for video streams, and indicates the video height (pixel).
- videoRotation
- This parameter only takes effect for video streams, and indicates the video rotation angle.
- audioSampleRate
- This parameter only takes effect for audio streams, and indicates the audio sample rate (Hz).
- audioChannels
- This parameter only takes effect for audio streams, and indicates the audio channel number.
- audioBytesPerSample
- This parameter only takes effect for audio streams, and indicates the bit number of each audio sample.
- duration
- The total duration (ms) of the media stream.