Class ShadowVideoView


@Implements(android.widget.VideoView.class) public class ShadowVideoView extends ShadowSurfaceView
  • Field Details

  • Constructor Details

    • ShadowVideoView

      public ShadowVideoView()
  • Method Details

    • setOnPreparedListener

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

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

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

      @Implementation protected void setVideoPath(String path)
    • setVideoURI

      @Implementation protected void setVideoURI(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 MediaPlayer.OnPreparedListener getOnPreparedListener()
      Returns:
      On prepared listener.
    • getOnErrorListener

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

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

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

      public 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)