Class ShadowVideoView


  • @Implements(android.widget.VideoView.class)
    public class ShadowVideoView
    extends ShadowSurfaceView
    • Constructor Detail

      • ShadowVideoView

        public ShadowVideoView()
    • Method Detail

      • setOnPreparedListener

        @Implementation
        protected void setOnPreparedListener​(android.media.MediaPlayer.OnPreparedListener l)
      • setOnErrorListener

        @Implementation
        protected void setOnErrorListener​(android.media.MediaPlayer.OnErrorListener l)
      • setOnCompletionListener

        @Implementation
        protected void setOnCompletionListener​(android.media.MediaPlayer.OnCompletionListener l)
      • setVideoPath

        @Implementation
        protected void setVideoPath​(java.lang.String path)
      • setVideoURI

        @Implementation
        protected void setVideoURI​(android.net.Uri uri)
      • start

        @Implementation
        protected void start()
      • stopPlayback

        @Implementation
        protected void stopPlayback()
      • suspend

        @Implementation
        protected void suspend()
      • pause

        @Implementation
        protected void pause()
      • resume

        @Implementation
        protected void resume()
      • isPlaying

        @Implementation
        protected boolean isPlaying()
      • canPause

        @Implementation
        protected boolean canPause()
      • seekTo

        @Implementation
        protected void seekTo​(int msec)
      • getCurrentPosition

        @Implementation
        protected int getCurrentPosition()
      • getDuration

        @Implementation
        protected int getDuration()
      • getOnPreparedListener

        public android.media.MediaPlayer.OnPreparedListener getOnPreparedListener()
        Returns:
        On prepared listener.
      • getOnErrorListener

        public android.media.MediaPlayer.OnErrorListener getOnErrorListener()
        Returns:
        On error listener.
      • getOnCompletionListener

        public android.media.MediaPlayer.OnCompletionListener getOnCompletionListener()
        Returns:
        On completion listener.
      • getVideoPath

        public java.lang.String getVideoPath()
        Returns:
        Video path.
      • getVideoURIString

        public java.lang.String getVideoURIString()
        Returns:
        Video URI.
      • getCurrentVideoState

        public int getCurrentVideoState()
        Returns:
        Current video state.
      • getPrevVideoState

        public int getPrevVideoState()
        Returns:
        Previous video state.
      • setDuration

        public void setDuration​(int duration)