Package org.robolectric.shadows
Class ShadowVideoView
java.lang.Object
org.robolectric.shadows.ShadowView
org.robolectric.shadows.ShadowSurfaceView
org.robolectric.shadows.ShadowVideoView
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowSurfaceView
ShadowSurfaceView.FakeSurfaceHolderNested classes/interfaces inherited from class org.robolectric.shadows.ShadowView
ShadowView.WindowIdHelper -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class org.robolectric.shadows.ShadowView
attributeSet, realView, scrollToCoordinates, viewReflector -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleancanPause()protected intintprotected intintprotected booleanprotected voidpause()protected voidresume()protected voidseekTo(int msec) voidsetDuration(int duration) protected voidprotected voidprotected voidprotected voidsetVideoPath(String path) protected voidsetVideoURI(Uri uri) protected voidstart()protected voidprotected voidsuspend()Methods inherited from class org.robolectric.shadows.ShadowSurfaceView
getFakeSurfaceHolder, getHolder, onAttachedToWindowMethods inherited from class org.robolectric.shadows.ShadowView
__constructor__, addGlobalPerformClickListener, addGlobalPerformLongClickListener, addOnAttachStateChangeListener, addOnLayoutChangeListener, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearAnimation, clearAnimations, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getAnimations, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getLocationOnScreen, getOnAttachStateChangeListeners, getOnClickListener, getOnCreateContextMenuListener, getOnLayoutChangeListeners, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getSourceLayoutResId, getWindowDisplayFrame, getWindowId, getWindowVisibleDisplayFrame, initialAwakenScrollBars, innerText, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, mapRectFromViewToScreenCoords, onLayout, onLayoutWasCalled, onTouchEvent, performClick, performHapticFeedback, performLongClick, post, postDelayed, postInvalidateDelayed, removeCallbacks, removeGlobalPerformClickListener, removeGlobalPerformLongClickListener, removeOnAttachStateChangeListener, removeOnLayoutChangeListener, requestLayout, reset, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, useRealGraphics, visualize, wasInvalidated
-
Field Details
-
STOP
public static final int STOP- See Also:
-
START
public static final int START- See Also:
-
SUSPEND
public static final int SUSPEND- See Also:
-
PAUSE
public static final int PAUSE- See Also:
-
RESUME
public static final int RESUME- See Also:
-
-
Constructor Details
-
ShadowVideoView
public ShadowVideoView()
-
-
Method Details
-
setOnPreparedListener
-
setOnErrorListener
-
setOnCompletionListener
-
setVideoPath
-
setVideoURI
-
start
-
stopPlayback
-
suspend
-
pause
-
resume
-
isPlaying
-
canPause
-
seekTo
-
getCurrentPosition
-
getDuration
-
getOnPreparedListener
- Returns:
- On prepared listener.
-
getOnErrorListener
- Returns:
- On error listener.
-
getOnCompletionListener
- Returns:
- On completion listener.
-
getVideoPath
- Returns:
- Video path.
-
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)
-