public class VideoViewAdapter extends java.lang.Object implements StreamAdapter
VideoView
with standard
android api.StreamAdapter.Meta
Constructor and Description |
---|
VideoViewAdapter(android.widget.VideoView videoView)
Create the adapter with the given
VideoView . |
Modifier and Type | Method and Description |
---|---|
int |
getDuration()
Returns the duration by calling the method
VideoView.getDuration() . |
int |
getHeight()
Returns the height of the
VideoView |
StreamAdapter.Meta |
getMeta()
Returns the meta object.
|
int |
getPosition()
Returns the position by calling the method
VideoView.getCurrentPosition() . |
int |
getWidth()
Returns the width of the
VideoView |
boolean |
isCasting()
Returns if video is streaming.
|
public VideoViewAdapter(android.widget.VideoView videoView)
VideoView
.videoView
- The video viewjava.lang.NullPointerException
- If the parameter videoView
is null
.public StreamAdapter.Meta getMeta()
getMeta
in interface StreamAdapter
StreamAdapter.getMeta()
public int getPosition()
VideoView.getCurrentPosition()
.getPosition
in interface StreamAdapter
StreamAdapter.getPosition()
,
VideoView.getCurrentPosition()
public int getDuration()
VideoView.getDuration()
.getDuration
in interface StreamAdapter
StreamAdapter.getDuration()
,
VideoView.getCurrentPosition()
public int getWidth()
VideoView
getWidth
in interface StreamAdapter
View.getWidth()
,
StreamAdapter.getWidth()
public int getHeight()
VideoView
getHeight
in interface StreamAdapter
View.getHeight()
,
StreamAdapter.getHeight()
public boolean isCasting()
isCasting
in interface StreamAdapter