public class VideoPlayerContainer
extends FrameLayout
Modifier and Type | Field and Description |
---|---|
static 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
|
static int |
MODE_HARDWARE
Hardware decoding mode.
|
static int |
MODE_HARDWARE_ADVANCED
Hardware Advanced decoding mode.
|
static int |
MODE_NATIVE_BASIC
Native basic decoding mode.
|
static int |
MODE_NONE
Internal only
|
static int |
MODE_SOFTWARE
Software decoding mode.
|
Constructor and Description |
---|
VideoPlayerContainer(Context context)
Constructor of the class
|
VideoPlayerContainer(Context context,
AttributeSet attrs)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
VideoPlayerView |
getAudioPlayer()
Gets a reference to the VideoPlayerView object used for playing an audio-only stream
|
int |
getMode()
Returns the current decoding mode.
|
VideoPlayerView |
getVideoPlayer()
Gets a reference to the VideoPlayerView object used for playing the video
|
void |
loadConfig(AMPConfig config) |
void |
setMode(int mode)
Sets the decoding method.
|
public static final int MODE_NONE
public static final int MODE_SOFTWARE
public static final int MODE_HARDWARE
public static final int MODE_HARDWARE_ADVANCED
public static final int MODE_NATIVE_BASIC
public static final int MODE_AUTOMATIC
public VideoPlayerContainer(Context context)
context
- Context of the applicationpublic VideoPlayerContainer(Context context, AttributeSet attrs)
context
- Context of the applicationattrs
- Attributespublic void loadConfig(AMPConfig config)
public VideoPlayerView getVideoPlayer()
public VideoPlayerView getAudioPlayer()
public void setMode(int mode)
mode
- public int getMode()