// Path: vrlib/src/main/java/com/martin/ads/vrlib/constant/PanoStatus.java
// public enum PanoStatus
// {
//     IDLE, PREPARED,BUFFERING, PLAYING, PAUSED_BY_USER, PAUSED, STOPPED, COMPLETE, ERROR
// }
// 
// Path: vrlib/src/main/java/com/martin/ads/vrlib/utils/StatusHelper.java
// public class StatusHelper {
//     private PanoStatus panoStatus;
//     private PanoMode panoDisPlayMode;
//     private PanoMode panoInteractiveMode;
//     private Context context;
//     public StatusHelper(Context context) {
//         this.context = context;
//     }
// 
//     public Context getContext() {
//         return context;
//     }
// 
//     public PanoStatus getPanoStatus() {
//         return panoStatus;
//     }
// 
//     public void setPanoStatus(PanoStatus panoStatus) {
//         this.panoStatus = panoStatus;
//     }
// 
//     public PanoMode getPanoDisPlayMode() {
//         return panoDisPlayMode;
//     }
// 
//     public void setPanoDisPlayMode(PanoMode panoDisPlayMode) {
//         this.panoDisPlayMode = panoDisPlayMode;
//     }
// 
//     public PanoMode getPanoInteractiveMode() {
//         return panoInteractiveMode;
//     }
// 
//     public void setPanoInteractiveMode(PanoMode panoInteractiveMode) {
//         this.panoInteractiveMode = panoInteractiveMode;
//     }
// }


import android.content.res.AssetFileDescriptor;
import android.graphics.SurfaceTexture;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.view.Surface;
import com.martin.ads.vrlib.constant.PanoStatus;
import com.martin.ads.vrlib.utils.StatusHelper;
import java.io.IOException;
package com.martin.ads.vrlib;




/**
 * Created by Ads on 2016/5/2.
 */
public class PanoMediaPlayerWrapper implements
        SurfaceTexture.OnFrameAvailableListener,
        MediaPlayer.OnCompletionListener,
        MediaPlayer.OnErrorListener,
        MediaPlayer.OnPreparedListener,
        MediaPlayer.OnVideoSizeChangedListener,
        MediaPlayer.OnInfoListener,
        MediaPlayer.OnBufferingUpdateListener{
    public static String TAG = "PanoMediaPlayerWrapper";

// Path: vrlib/src/main/java/com/martin/ads/vrlib/constant/PanoStatus.java
// public enum PanoStatus
// {
//     IDLE, PREPARED,BUFFERING, PLAYING, PAUSED_BY_USER, PAUSED, STOPPED, COMPLETE, ERROR
// }
// 
// Path: vrlib/src/main/java/com/martin/ads/vrlib/utils/StatusHelper.java
// public class StatusHelper {
//     private PanoStatus panoStatus;
//     private PanoMode panoDisPlayMode;
//     private PanoMode panoInteractiveMode;
//     private Context context;
//     public StatusHelper(Context context) {
//         this.context = context;
//     }
// 
//     public Context getContext() {
//         return context;
//     }
// 
//     public PanoStatus getPanoStatus() {
//         return panoStatus;
//     }
// 
//     public void setPanoStatus(PanoStatus panoStatus) {
//         this.panoStatus = panoStatus;
//     }
// 
//     public PanoMode getPanoDisPlayMode() {
//         return panoDisPlayMode;
//     }
// 
//     public void setPanoDisPlayMode(PanoMode panoDisPlayMode) {
//         this.panoDisPlayMode = panoDisPlayMode;
//     }
// 
//     public PanoMode getPanoInteractiveMode() {
//         return panoInteractiveMode;
//     }
// 
//     public void setPanoInteractiveMode(PanoMode panoInteractiveMode) {
//         this.panoInteractiveMode = panoInteractiveMode;
//     }
// }


// Path: vrlib/src/main/java/com/martin/ads/vrlib/PanoMediaPlayerWrapper.java
import android.content.res.AssetFileDescriptor;
import android.graphics.SurfaceTexture;
import android.media.AudioManager;
import android.media.MediaPlayer;
import android.net.Uri;
import android.view.Surface;
import com.martin.ads.vrlib.constant.PanoStatus;
import com.martin.ads.vrlib.utils.StatusHelper;
import java.io.IOException;

package com.martin.ads.vrlib;




/**
 * Created by Ads on 2016/5/2.
 */
public class PanoMediaPlayerWrapper implements
        SurfaceTexture.OnFrameAvailableListener,
        MediaPlayer.OnCompletionListener,
        MediaPlayer.OnErrorListener,
        MediaPlayer.OnPreparedListener,
        MediaPlayer.OnVideoSizeChangedListener,
        MediaPlayer.OnInfoListener,
        MediaPlayer.OnBufferingUpdateListener{
    public static String TAG = "PanoMediaPlayerWrapper";

    private StatusHelper statusHelper;