Package com.wowza.wms.transport.mpeg2
Class LanguageDescriptor.LanguageCode
- Object
-
- com.wowza.wms.transport.mpeg2.LanguageDescriptor.LanguageCode
-
- Enclosing class:
- LanguageDescriptor
public class LanguageDescriptor.LanguageCode extends Object
The Class LanguageCode.
-
-
Field Summary
Fields Modifier and Type Field Description String
code
ISO-639~language-code - Identifies the language or languages used by the associated program element.int
type
The audio type specifies the associated stream using the table below 0x00 Undefined 0x01 Clean Effects 0x02 Hearing Impaired 0x03 Visual Imparted commentary 0x04 - 0xFF reserved
-
Constructor Summary
Constructors Constructor Description LanguageCode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
binarySize()
How big is the language code in binary.void
toBin(java.nio.ByteBuffer buffer)
Encodes the Language code into binary form for use in transportString
toString()
-
-
-
Field Detail
-
code
public String code
ISO-639~language-code - Identifies the language or languages used by the associated program element. The ISO-639-language-code contains a 3-character code as specified by IS0 639, Part 2. Each character is coded into 8 bits according to IS0 8859-l and inserted in order into this 24-bit field. In the case of multilingual audio streams the sequence of ISO-639-language-code fields shall reflect the content of the audio stream.
-
type
public int type
The audio type specifies the associated stream using the table below 0x00 Undefined 0x01 Clean Effects 0x02 Hearing Impaired 0x03 Visual Imparted commentary 0x04 - 0xFF reserved
-
-
Method Detail
-
binarySize
public int binarySize()
How big is the language code in binary.- Returns:
- the total size of the language code in binary form
-
toBin
public void toBin(java.nio.ByteBuffer buffer)
Encodes the Language code into binary form for use in transport- Parameters:
buffer
- ByteBuffer to put the binary data
-
toString
public String toString()
- Overrides:
toString
in classObject
-
-