public class PictureVideoPlayActivity extends PictureBaseActivity implements android.media.MediaPlayer.OnErrorListener, android.media.MediaPlayer.OnPreparedListener, android.media.MediaPlayer.OnCompletionListener, android.view.View.OnClickListener
cameraPath, colorPrimary, colorPrimaryDark, compressDialog, config, container, dialog, mHandler, numComplete, openWhiteStatusBar, originalPath, selectionMedias
Constructor and Description |
---|
PictureVideoPlayActivity() |
Modifier and Type | Method and Description |
---|---|
protected void |
attachBaseContext(android.content.Context newBase) |
int |
getResourceId()
获取布局文件
|
protected void |
initWidgets() |
void |
onClick(android.view.View v) |
void |
onCompletion(android.media.MediaPlayer mp) |
protected void |
onCreate(android.os.Bundle savedInstanceState) |
protected void |
onDestroy() |
boolean |
onError(android.media.MediaPlayer player,
int arg1,
int arg2) |
void |
onPause() |
void |
onPrepared(android.media.MediaPlayer mp) |
void |
onResume() |
void |
onStart() |
closeActivity, createNewFolder, dismissCompressDialog, dismissDialog, getContext, getImageFolder, handleMessage, handlerResult, initPictureSelectorStyle, onRequestPermissionsResult, onResult, onSaveInstanceState, removeImage, showCompressDialog, showPleaseDialog, startOpenCamera
public int getResourceId()
PictureBaseActivity
getResourceId
in class PictureBaseActivity
protected void initWidgets()
initWidgets
in class PictureBaseActivity
protected void attachBaseContext(android.content.Context newBase)
attachBaseContext
in class PictureBaseActivity
protected void onCreate(android.os.Bundle savedInstanceState)
onCreate
in class PictureBaseActivity
protected void onDestroy()
onDestroy
in class PictureBaseActivity
public void onStart()
public void onPause()
public void onResume()
public boolean onError(android.media.MediaPlayer player, int arg1, int arg2)
onError
in interface android.media.MediaPlayer.OnErrorListener
public void onCompletion(android.media.MediaPlayer mp)
onCompletion
in interface android.media.MediaPlayer.OnCompletionListener
public void onClick(android.view.View v)
onClick
in interface android.view.View.OnClickListener
public void onPrepared(android.media.MediaPlayer mp)
onPrepared
in interface android.media.MediaPlayer.OnPreparedListener