This is the documentation for ToiMediaPlayerBaseAudioStreamInfo.
Audio stream data structure used to return audio stream information. Depending on the stream format some fields will be reported as unknown. Use toi.statics.ToiMediaPlayerBaseAudioStreamInfo.create(<encoding>, <sampleRate>, <channelFormat>, <channelMode>, <language>, <subLanguage>, <audienceType>, <componentTag>) to create an instance of ToiMediaPlayerBaseAudioStreamInfo.
import "ToiMediaPlayerBaseAudioStreamInfo.idl";
Public Attributes | |
attribute string | encoding |
attribute long | sampleRate |
attribute ToiMediaPlayerBase::TToiAudioChannelFormat | channelFormat |
attribute ToiMediaPlayerBase::TToiAudioChannelMode | channelMode |
attribute string | language |
attribute string | subLanguage |
attribute ToiMediaPlayerBase::TToiAudioAudienceType | audienceType |
attribute long | componentTag |
The audience type of the audio.
attribute ToiMediaPlayerBase::TToiAudioChannelFormat ToiMediaPlayerBaseAudioStreamInfo::channelFormat |
Indicates the channel format.
Indicates the current channel mode.
attribute long ToiMediaPlayerBaseAudioStreamInfo::componentTag |
The audio component tag value. The value will be set to -1 if it does not exist for the stream.
attribute string ToiMediaPlayerBaseAudioStreamInfo::encoding |
Type of audio encoding used. The string is empty if the encoding is unknown. The content of the string is determined by the decoder and is supplied for trouble-shooting reasons.
attribute string ToiMediaPlayerBaseAudioStreamInfo::language |
A three character code, as specified by ISO 639 part 2. For the dual mono format, it describes the main channel language.
attribute long ToiMediaPlayerBaseAudioStreamInfo::sampleRate |
The sample rate of the audio in samples per second. The value will be set to -1 if the sample rate is unknown. This will be reported as unknown if it is not the currently active audio stream.
attribute string ToiMediaPlayerBaseAudioStreamInfo::subLanguage |
A three character code, as specified by ISO 639 part 2. Only set for dual mono format, it describes the sub channel language