File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -11505,6 +11505,7 @@ package android.media {
1150511505 method public void setVideoSource(int) throws java.lang.IllegalStateException;
1150611506 method public void start() throws java.lang.IllegalStateException;
1150711507 method public void stop() throws java.lang.IllegalStateException;
11508+ field public static final int MEDIA_ERROR_SERVER_DIED = 100; // 0x64
1150811509 field public static final int MEDIA_RECORDER_ERROR_UNKNOWN = 1; // 0x1
1150911510 field public static final int MEDIA_RECORDER_INFO_MAX_DURATION_REACHED = 800; // 0x320
1151011511 field public static final int MEDIA_RECORDER_INFO_MAX_FILESIZE_REACHED = 801; // 0x321
Original file line number Diff line number Diff line change @@ -721,12 +721,17 @@ public void reset() {
721721 public native int getMaxAmplitude () throws IllegalStateException ;
722722
723723 /* Do not change this value without updating its counterpart
724- * in include/media/mediarecorder.h!
724+ * in include/media/mediarecorder.h or mediaplayer.h !
725725 */
726726 /** Unspecified media recorder error.
727727 * @see android.media.MediaRecorder.OnErrorListener
728728 */
729729 public static final int MEDIA_RECORDER_ERROR_UNKNOWN = 1 ;
730+ /** Media server died. In this case, the application must release the
731+ * MediaRecorder object and instantiate a new one.
732+ * @see android.media.MediaRecorder.OnErrorListener
733+ */
734+ public static final int MEDIA_ERROR_SERVER_DIED = 100 ;
730735
731736 /**
732737 * Interface definition for a callback to be invoked when an error
@@ -741,6 +746,7 @@ public interface OnErrorListener
741746 * @param what the type of error that has occurred:
742747 * <ul>
743748 * <li>{@link #MEDIA_RECORDER_ERROR_UNKNOWN}
749+ * <li>{@link #MEDIA_ERROR_SERVER_DIED}
744750 * </ul>
745751 * @param extra an extra code, specific to the error type
746752 */
You can’t perform that action at this time.
0 commit comments