java.lang.Object | ||
↳ | FrameLayout | |
↳ | com.akamai.media.VideoPlayerContainer |
VideoPlayerView container. User control to be added to the Android layout. Depending on the decoding method selected by the application, this control will instantiate one user control or other.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | MODE_AUTOMATIC | Automatic mode: - For Android 4.0 and above devices: Hardware Advanced - For Android 3.x and below: If device CPU is multicore: Software mode If device CPU is singlecore: Hardware mode | |||||||||
int | MODE_HARDWARE | Hardware decoding mode. | |||||||||
int | MODE_HARDWARE_ADVANCED | Hardware Advanced decoding mode. | |||||||||
int | MODE_NATIVE_BASIC | Native basic decoding mode. | |||||||||
int | MODE_NONE | Internal only | |||||||||
int | MODE_SOFTWARE | Software decoding mode. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor of the class
| |||||||||||
Constructor of the class
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Gets a reference to the VideoPlayerView object used for playing an audio-only stream
| |||||||||||
Returns the current decoding mode.
| |||||||||||
Gets a reference to the VideoPlayerView object used for playing the video
| |||||||||||
Sets the decoding method.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Automatic mode: - For Android 4.0 and above devices: Hardware Advanced - For Android 3.x and below: If device CPU is multicore: Software mode If device CPU is singlecore: Hardware mode
Hardware decoding mode. Compatible with Android 1.6 and above.
Hardware Advanced decoding mode. Compatible and recommeded for Android 4.0 and above.
Native basic decoding mode. Media is managed by the native player of the device.
Internal only
Software decoding mode. Compatible with Android 1.6 and above.
Constructor of the class
context | Context of the application |
---|
Constructor of the class
context | Context of the application |
---|---|
attrs | Attributes |
Gets a reference to the VideoPlayerView object used for playing an audio-only stream
Returns the current decoding mode.
Gets a reference to the VideoPlayerView object used for playing the video
Sets the decoding method. Possible options are: - MODE_SOFTWARE. The control will use software based codecs for decoding the video/audio. - MODE_HARDWARE. The control will use H.264/AAC decoding hardware that is present in the Android device. - MODE_HARDWARE_ADVANCED. Better performance hardware decoding mode for Android devices 4.0 and above. - MODE_NATIVE_BASIC. This mode uses the internal media player of the Android device. - MODE_AUTOMATIC. The control will choose the decoding mode based on: - For Android 4.0 and above devices: Hardware Advanced - For Android 3.x and below: If device CPU is multicore: Software mode If device CPU is singlecore: Hardware mode