Interface IMediaPlayer

    • Method Detail

      • setDisplay

        void setDisplay​(android.view.SurfaceHolder sh)
      • setDataSource

        void setDataSource​(android.content.Context context,
                           android.net.Uri uri)
                    throws java.io.IOException,
                           java.lang.IllegalArgumentException,
                           java.lang.SecurityException,
                           java.lang.IllegalStateException
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
        java.lang.SecurityException
        java.lang.IllegalStateException
      • setDataSource

        void setDataSource​(android.content.Context context,
                           android.net.Uri uri,
                           java.util.Map<java.lang.String,​java.lang.String> headers)
                    throws java.io.IOException,
                           java.lang.IllegalArgumentException,
                           java.lang.SecurityException,
                           java.lang.IllegalStateException
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
        java.lang.SecurityException
        java.lang.IllegalStateException
      • setDataSource

        void setDataSource​(java.io.FileDescriptor fd)
                    throws java.io.IOException,
                           java.lang.IllegalArgumentException,
                           java.lang.IllegalStateException
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
        java.lang.IllegalStateException
      • setDataSource

        void setDataSource​(java.lang.String path)
                    throws java.io.IOException,
                           java.lang.IllegalArgumentException,
                           java.lang.SecurityException,
                           java.lang.IllegalStateException
        Throws:
        java.io.IOException
        java.lang.IllegalArgumentException
        java.lang.SecurityException
        java.lang.IllegalStateException
      • getDataSource

        java.lang.String getDataSource()
      • prepareAsync

        void prepareAsync()
                   throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • start

        void start()
            throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • stop

        void stop()
           throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • pause

        void pause()
            throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • setScreenOnWhilePlaying

        void setScreenOnWhilePlaying​(boolean screenOn)
      • getVideoWidth

        int getVideoWidth()
      • getVideoHeight

        int getVideoHeight()
      • isPlaying

        boolean isPlaying()
      • seekTo

        void seekTo​(long msec)
             throws java.lang.IllegalStateException
        Throws:
        java.lang.IllegalStateException
      • getCurrentPosition

        long getCurrentPosition()
      • getDuration

        long getDuration()
      • release

        void release()
      • reset

        void reset()
      • setVolume

        void setVolume​(float leftVolume,
                       float rightVolume)
      • getAudioSessionId

        int getAudioSessionId()
      • setLogEnabled

        @Deprecated
        void setLogEnabled​(boolean enable)
        Deprecated.
      • isPlayable

        @Deprecated
        boolean isPlayable()
        Deprecated.
      • setAudioStreamType

        void setAudioStreamType​(int streamtype)
      • setKeepInBackground

        @Deprecated
        void setKeepInBackground​(boolean keepInBackground)
        Deprecated.
      • getVideoSarNum

        int getVideoSarNum()
      • getVideoSarDen

        int getVideoSarDen()
      • setWakeMode

        @Deprecated
        void setWakeMode​(android.content.Context context,
                         int mode)
        Deprecated.
      • setLooping

        void setLooping​(boolean looping)
      • isLooping

        boolean isLooping()
      • setSurface

        void setSurface​(android.view.Surface surface)