diff --git a/.classpath b/.classpath
index 06efd60..5bea7b4 100644
--- a/.classpath
+++ b/.classpath
@@ -4,6 +4,6 @@
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+io.vov.* | +
---|
+ +
io.vov.vitamio.MediaPlayer | +||
---|---|---|
+public static final int |
+MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK |
+200 |
+
+public static final int |
+MEDIA_ERROR_UNKNOWN |
+1 |
+
+public static final int |
+MEDIA_INFO_BUFFERING_END |
+702 |
+
+public static final int |
+MEDIA_INFO_BUFFERING_START |
+701 |
+
+public static final int |
+MEDIA_INFO_NOT_SEEKABLE |
+801 |
+
+public static final int |
+MEDIA_INFO_VIDEO_TRACK_LAGGING |
+700 |
+
+public static final int |
+SUBTITLE_EXTERNAL |
+1 |
+
+public static final int |
+SUBTITLE_INTERNAL |
+0 |
+
+public static final int |
+VIDEOQUALITY_HIGH |
+16 |
+
+public static final int |
+VIDEOQUALITY_LOW |
+-16 |
+
+public static final int |
+VIDEOQUALITY_MEDIUM |
+0 |
+
+ +
+ +
io.vov.vitamio.VitamioInstaller | +||
---|---|---|
+public static final java.lang.String |
+VITAMIO_PACKAGE_ARMV6 |
+"io.vov.vitamio.v6" |
+
+public static final java.lang.String |
+VITAMIO_PACKAGE_ARMV6_VFP |
+"io.vov.vitamio.v6vfp" |
+
+public static final java.lang.String |
+VITAMIO_PACKAGE_ARMV7_NEON |
+"io.vov.vitamio" |
+
+public static final java.lang.String |
+VITAMIO_PACKAGE_ARMV7_VFPV3 |
+"io.vov.vitamio.v7vfpv3" |
+
+public static final int |
+VITAMIO_VERSION_CODE |
+1 |
+
+public static final java.lang.String |
+VITAMIO_VERSION_NAME |
+"1.0" |
+
+ +
+ +
io.vov.vitamio.widget.VideoView | +||
---|---|---|
+public static final int |
+VIDEO_LAYOUT_ORIGIN |
+0 |
+
+public static final int |
+VIDEO_LAYOUT_SCALE |
+1 |
+
+public static final int |
+VIDEO_LAYOUT_STRETCH |
+2 |
+
+public static final int |
+VIDEO_LAYOUT_ZOOM |
+3 |
+
+ +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+ +++The Overview page is the front page of this API document and provides a list of all packages with a summary for each. This page can also contain an overall description of the set of packages.
+ +++Each package has a page that contains a list of its classes and interfaces, with a summary for each. This page can contain four categories:
+
+- Interfaces (italic)
- Classes
- Enums
- Exceptions
- Errors
- Annotation Types
+ ++ ++Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a class/interface description, summary tables, and detailed member descriptions:
+
+Each summary entry contains the first sentence from the detailed description for that item. The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.- Class inheritance diagram
- Direct Subclasses
- All Known Subinterfaces
- All Known Implementing Classes
- Class/interface declaration
- Class/interface description +
+
- Nested Class Summary
- Field Summary
- Constructor Summary
- Method Summary +
+
- Field Detail
- Constructor Detail
- Method Detail
+ ++ ++Each annotation type has its own separate page with the following sections:
+
+- Annotation Type declaration
- Annotation Type description
- Required Element Summary
- Optional Element Summary
- Element Detail
+ +++Each enum has its own separate page with the following sections:
+
+- Enum declaration
- Enum description
- Enum Constant Summary
- Enum Constant Detail
+Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the "Use" link in the navigation bar.+
+There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. The classes are organized by inheritance structure starting with+java.lang.Object
. The interfaces do not inherit fromjava.lang.Object
.+
+- When viewing the Overview page, clicking on "Tree" displays the hierarchy for all packages.
- When viewing a particular package, class or interface page, clicking "Tree" displays the hierarchy for only that package.
+The Deprecated API page lists all of the API that have been deprecated. A deprecated API is not recommended for use, generally due to improvements, and a replacement API is usually given. Deprecated APIs may be removed in future implementations.+
+The Index contains an alphabetic list of all classes, interfaces, constructors, methods, and fields.+
+
+
+
+
+This help file applies to API documentation generated using the standard doclet.
+
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
MediaPlayer.getAudioTrackMap(String)
+MediaPlayer.getSubTrackMap(String)
+MediaPlayer.pause()
+
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
MediaPlayer.setMetaEncoding(String)
+
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV LETTER + NEXT LETTER | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnBufferingUpdateListener
+
+Method Summary | +|
---|---|
+ void |
+onBufferingUpdate(MediaPlayer mp,
+ int percent)
+
++ Called to update status in buffering a media stream. |
+
+Method Detail | +
---|
+void onBufferingUpdate(MediaPlayer mp, + int percent)+
+
mp
- the MediaPlayer the update pertains topercent
- the percentage (0-100) of the buffer that has been
+ filled thus far
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnCompletionListener
+
+Method Summary | +|
---|---|
+ void |
+onCompletion(MediaPlayer mp)
+
++ Called when the end of a media source is reached during playback. |
+
+Method Detail | +
---|
+void onCompletion(MediaPlayer mp)+
+
mp
- the MediaPlayer that reached the end of the file
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnErrorListener
+
+Method Summary | +|
---|---|
+ boolean |
+onError(MediaPlayer mp,
+ int what,
+ int extra)
+
++ Called to indicate an error. |
+
+Method Detail | +
---|
+boolean onError(MediaPlayer mp, + int what, + int extra)+
+
mp
- the MediaPlayer the error pertains towhat
- the type of error that has occurred:
+ extra
- an extra code, specific to the error. Typically
+ implementation dependant.
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnInfoListener
+
+Method Summary | +|
---|---|
+ boolean |
+onInfo(MediaPlayer mp,
+ int what,
+ int extra)
+
++ Called to indicate an info or a warning. |
+
+Method Detail | +
---|
+boolean onInfo(MediaPlayer mp, + int what, + int extra)+
+
mp
- the MediaPlayer the info pertains to.what
- the type of info or warning.
+ MediaPlayer.MEDIA_INFO_VIDEO_TRACK_LAGGING
+ MediaPlayer.MEDIA_INFO_BUFFERING_START
+ MediaPlayer.MEDIA_INFO_BUFFERING_END
+ MediaPlayer.MEDIA_INFO_NOT_SEEKABLE
+ extra
- an extra code, specific to the info. Typically
+ implementation dependant.
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnPreparedListener
+
+Method Summary | +|
---|---|
+ void |
+onPrepared(MediaPlayer mp)
+
++ Called when the media file is ready for playback. |
+
+Method Detail | +
---|
+void onPrepared(MediaPlayer mp)+
+
mp
- the MediaPlayer that is ready for playback
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnSeekCompleteListener
+
+Method Summary | +|
---|---|
+ void |
+onSeekComplete(MediaPlayer mp)
+
++ Called to indicate the completion of a seek operation. |
+
+Method Detail | +
---|
+void onSeekComplete(MediaPlayer mp)+
+
mp
- the MediaPlayer that issued the seek operation
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnSubtitleUpdateListener
+
+Method Summary | +|
---|---|
+ void |
+onSubtitleUpdate(byte[] pixels,
+ int width,
+ int height)
+
++ Called to indicate that an image subtitle need to display |
+
+ void |
+onSubtitleUpdate(java.lang.String text)
+
++ Called to indicate that a text subtitle need to display |
+
+Method Detail | +
---|
+void onSubtitleUpdate(java.lang.String text)+
+
text
- the subtitle to display+void onSubtitleUpdate(byte[] pixels, + int width, + int height)+
+
pixels
- the pixels of the subtitle imagewidth
- the width of the subtitle imageheight
- the height of the subtitle image
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaPlayer.OnVideoSizeChangedListener
+
+Method Summary | +|
---|---|
+ void |
+onVideoSizeChanged(MediaPlayer mp,
+ int width,
+ int height)
+
++ Called to indicate the video size |
+
+Method Detail | +
---|
+void onVideoSizeChanged(MediaPlayer mp, + int width, + int height)+
+
mp
- the MediaPlayer associated with this callbackwidth
- the width of the videoheight
- the height of the video
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.MediaPlayer ++
public class MediaPlayer
+MediaPlayer class can be used to control playback of audio/video files and
+ streams. An example on how to use the methods in this class can be found in
+ VideoView
. This class will function the same as
+ android.media.MediaPlayer in most cases. Please see Audio and
+ Video for additional help using MediaPlayer.
+
+ +
+
+Nested Class Summary | +|
---|---|
+static interface |
+MediaPlayer.OnBufferingUpdateListener
+
++ |
+
+static interface |
+MediaPlayer.OnCompletionListener
+
++ |
+
+static interface |
+MediaPlayer.OnErrorListener
+
++ |
+
+static interface |
+MediaPlayer.OnInfoListener
+
++ |
+
+static interface |
+MediaPlayer.OnPreparedListener
+
++ |
+
+static interface |
+MediaPlayer.OnSeekCompleteListener
+
++ |
+
+static interface |
+MediaPlayer.OnSubtitleUpdateListener
+
++ |
+
+static interface |
+MediaPlayer.OnVideoSizeChangedListener
+
++ |
+
+Field Summary | +|
---|---|
+static int |
+MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK
+
++ |
+
+static int |
+MEDIA_ERROR_UNKNOWN
+
++ |
+
+static int |
+MEDIA_INFO_BUFFERING_END
+
++ MediaPlayer is resuming playback after filling buffers. |
+
+static int |
+MEDIA_INFO_BUFFERING_START
+
++ MediaPlayer is temporarily pausing playback internally in order to buffer + more data. |
+
+static int |
+MEDIA_INFO_NOT_SEEKABLE
+
++ The media cannot be seeked (e.g live stream) |
+
+static int |
+MEDIA_INFO_VIDEO_TRACK_LAGGING
+
++ The video is too complex for the decoder: it can't decode frames fast + enough. |
+
+static java.lang.String[] |
+SUB_TYPES
+
++ The external subtitle types which Vitamio supports. |
+
+static int |
+SUBTITLE_EXTERNAL
+
++ The subtitle displayed is an external file |
+
+static int |
+SUBTITLE_INTERNAL
+
++ The subtitle displayed is embeded in the movie |
+
+static int |
+VIDEOQUALITY_HIGH
+
++ |
+
+static int |
+VIDEOQUALITY_LOW
+
++ |
+
+static int |
+VIDEOQUALITY_MEDIUM
+
++ |
+
+Constructor Summary | +|
---|---|
MediaPlayer(Context ctx)
+
++ Default constructor. |
+
+Method Summary | +|
---|---|
+ int |
+getAudioTrack()
+
++ Get the audio track number in playback |
+
+ java.util.HashMap<java.lang.String,java.lang.Integer> |
+getAudioTrackMap(java.lang.String encoding)
+
++ Get the audio tracks embeded in the movie (e.g. |
+
+ int |
+getBufferProgress()
+
++ |
+
+ long |
+getCurrentPosition()
+
++ Gets the current playback position. |
+
+ long |
+getDuration()
+
++ Gets the duration of the file. |
+
+ java.lang.String |
+getMetaEncoding()
+
++ Get the encoding if haven't set with setMetaEncoding(String) |
+
+ int |
+getSubLocation()
+
++ |
+
+ java.lang.String |
+getSubPath()
+
++ You can get the file-path of the external subtitle in use. |
+
+ int |
+getSubTrack()
+
++ Get the subtitle track number in playback |
+
+ java.util.HashMap<java.lang.String,java.lang.Integer> |
+getSubTrackMap(java.lang.String encoding)
+
++ Get the subtitles embeded in the movie (e.g. |
+
+ float |
+getVideoAspectRatio()
+
++ Returns the aspect ratio of the video. |
+
+ int |
+getVideoHeight()
+
++ Returns the height of the video. |
+
+ int |
+getVideoWidth()
+
++ Returns the width of the video. |
+
+ boolean |
+isBuffering()
+
++ Checks whether the buffer is filled |
+
+ boolean |
+isPlaying()
+
++ Checks whether the MediaPlayer is playing. |
+
+ void |
+pause()
+
++ Pauses playback. |
+
+ void |
+prepare()
+
++ Prepares the player for playback, synchronously. |
+
+ void |
+prepareAsync()
+
++ Prepares the player for playback, asynchronously. |
+
+ void |
+release()
+
++ Releases resources associated with this MediaPlayer object. |
+
+ void |
+releaseDisplay()
+
++ Calling this result in only the audio track being played. |
+
+ void |
+reset()
+
++ Resets the MediaPlayer to its uninitialized state. |
+
+ void |
+seekTo(long msec)
+
++ Seeks to specified time position. |
+
+ void |
+setAudioTrack(int audioIndex)
+
++ Set the audio track to play, must be in the result of + getAudioTrackMap(String) |
+
+ void |
+setBufferSize(int bufSize)
+
++ The buffer to fill before playback, default is 1024KB |
+
+ void |
+setDataSource(Context context,
+ Uri uri)
+
++ Sets the data source as a content Uri. |
+
+ void |
+setDataSource(java.io.FileDescriptor fd)
+
++ Sets the data source (FileDescriptor) to use. |
+
+ void |
+setDataSource(java.lang.String path)
+
++ Sets the data source (file-path or http/rtsp/mms URL) to use. |
+
+ void |
+setDisplay(SurfaceHolder sh)
+
++ Sets the SurfaceHolder to use for displaying the video portion of the + media. |
+
+ void |
+setMetaEncoding(java.lang.String encoding)
+
++ Set the encoding MediaPlayer will use to determine the metadata |
+
+ void |
+setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener listener)
+
++ Register a callback to be invoked when the status of a network stream's + buffer has changed. |
+
+ void |
+setOnCompletionListener(MediaPlayer.OnCompletionListener listener)
+
++ Register a callback to be invoked when the end of a media source has been + reached during playback. |
+
+ void |
+setOnErrorListener(MediaPlayer.OnErrorListener listener)
+
++ Register a callback to be invoked when an error has happened during an + asynchronous operation. |
+
+ void |
+setOnInfoListener(MediaPlayer.OnInfoListener listener)
+
++ |
+
+ void |
+setOnPreparedListener(MediaPlayer.OnPreparedListener listener)
+
++ Register a callback to be invoked when the media source is ready for + playback. |
+
+ void |
+setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener)
+
++ Register a callback to be invoked when a seek operation has been + completed. |
+
+ void |
+setOnSubtitleUpdateListener(MediaPlayer.OnSubtitleUpdateListener listener)
+
++ Register a callback to be invoked when a subtitle need to display. |
+
+ void |
+setOnVideoSizeChangedListener(MediaPlayer.OnVideoSizeChangedListener listener)
+
++ Register a callback to be invoked when the video size is known or + updated. |
+
+ void |
+setScreenOnWhilePlaying(boolean screenOn)
+
++ Control whether we should use the attached SurfaceHolder to keep the + screen on while video playback is occurring. |
+
+ void |
+setSubEncoding(java.lang.String encoding)
+
++ Set the encoding to display text subtitle. |
+
+ void |
+setSubPath(java.lang.String subPath)
+
++ Set the file-path of an external subtitle. |
+
+ void |
+setSubShown(boolean shown)
+
++ Tell the MediaPlayer whether to show subtitle |
+
+ void |
+setSubTrack(int trackId)
+
++ Set the subtitle track to display, must be in the result of + getSubTrackMap(String) |
+
+ void |
+setVideoQuality(int quality)
+
++ Set the quality when play video, if the video is too lag, you may try + VIDEOQUALITY_LOW, default is VIDEOQUALITY_LOW. |
+
+ void |
+setVolume(float leftVolume,
+ float rightVolume)
+
++ |
+
+ void |
+setWakeMode(Context context,
+ int mode)
+
++ Set the low-level power management behavior for this MediaPlayer. |
+
+ void |
+start()
+
++ Starts or resumes playback. |
+
+ void |
+stop()
+
++ The same as pause() |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static final int MEDIA_ERROR_UNKNOWN+
+public static final int MEDIA_ERROR_NOT_VALID_FOR_PROGRESSIVE_PLAYBACK+
+public static final int MEDIA_INFO_VIDEO_TRACK_LAGGING+
+
MediaPlayer.OnInfoListener
,
+Constant Field Values+public static final int MEDIA_INFO_BUFFERING_START+
+
+public static final int MEDIA_INFO_BUFFERING_END+
+
+public static final int MEDIA_INFO_NOT_SEEKABLE+
+
MediaPlayer.OnInfoListener
,
+Constant Field Values+public static final int VIDEOQUALITY_LOW+
+public static final int VIDEOQUALITY_MEDIUM+
+public static final int VIDEOQUALITY_HIGH+
+public static final int SUBTITLE_INTERNAL+
+
+public static final int SUBTITLE_EXTERNAL+
+
+public static final java.lang.String[] SUB_TYPES+
+
+Constructor Detail | +
---|
+public MediaPlayer(Context ctx) + throws VitamioInstaller.VitamioNotCompatibleException, + VitamioInstaller.VitamioNotFoundException+
VitamioInstaller.VitamioNotCompatibleException
if
+ Vitamio not compatible with user's device,
+ VitamioInstaller.VitamioNotFoundException
if
+ Vitamio not installed in the device.
+
+ When done with the MediaPlayer, you should call release()
, to
+ free the resources. If not released, too many MediaPlayer instances may
+ result in an exception.
+
+
VitamioInstaller.VitamioNotCompatibleException
+VitamioInstaller.VitamioNotFoundException
+Method Detail | +
---|
+public void setDisplay(SurfaceHolder sh)+
+
sh
- the SurfaceHolder to use for video display+public void setDataSource(Context context, + Uri uri) + throws java.io.IOException, + java.lang.IllegalArgumentException, + java.lang.SecurityException, + java.lang.IllegalStateException+
+
context
- the Context to use when resolving the Uriuri
- the Content URI of the data you want to play
+java.lang.IllegalStateException
- if it is called in an invalid state
+java.io.IOException
+java.lang.IllegalArgumentException
+java.lang.SecurityException
+public void setDataSource(java.lang.String path) + throws java.io.IOException, + java.lang.IllegalArgumentException, + java.lang.IllegalStateException+
+
path
- the path of the file, or the http/rtsp/mms URL of the stream
+ you want to play
+java.lang.IllegalStateException
- if it is called in an invalid state
+java.io.IOException
+java.lang.IllegalArgumentException
+public void setDataSource(java.io.FileDescriptor fd) + throws java.io.IOException, + java.lang.IllegalArgumentException, + java.lang.IllegalStateException+
+
fd
- the FileDescriptor for the file you want to play
+java.lang.IllegalStateException
- if it is called in an invalid state
+java.io.IOException
+java.lang.IllegalArgumentException
+public void prepare() + throws java.io.IOException, + java.lang.IllegalStateException+
+
java.lang.IllegalStateException
- if it is called in an invalid state
+java.io.IOException
+public void prepareAsync() + throws java.lang.IllegalStateException+
+
java.lang.IllegalStateException
- if it is called in an invalid state+public void start() + throws java.lang.IllegalStateException+
+
java.lang.IllegalStateException
- if it is called in an invalid state+public void stop() + throws java.lang.IllegalStateException+
pause()
++
java.lang.IllegalStateException
- if the internal player engine has not been
+ initialized.+public void pause() + throws java.lang.IllegalStateException+
+
java.lang.IllegalStateException
- if the internal player engine has not been
+ initialized.+public void setWakeMode(Context context, + int mode)+
setDisplay(SurfaceHolder)
and thus can use the
+ high-level setScreenOnWhilePlaying(boolean)
feature.
+
+ This function has the MediaPlayer access the low-level power manager
+ service to control the device's power usage while playing is occurring.
+ The parameter is a combination of android.os.PowerManager
wake
+ flags. Use of this method requires
+ android.Manifest.permission#WAKE_LOCK
permission. By default, no
+ attempt is made to keep the device awake during playback.
++
context
- the Context to usemode
- the power/wake mode to setandroid.os.PowerManager
+public void setScreenOnWhilePlaying(boolean screenOn)+
setWakeMode(Context, int)
where possible, since it doesn't require that
+ the application have permission for low-level wake lock access.
++
screenOn
- Supply true to keep the screen on, false to allow it to
+ turn off.+public int getVideoWidth()+
+
setOnVideoSizeChangedListener(OnVideoSizeChangedListener)
to
+ provide a notification when the width is available.+public int getVideoHeight()+
+
setOnVideoSizeChangedListener(OnVideoSizeChangedListener)
to
+ provide a notification when the height is available.+public boolean isPlaying()+
+
+public void seekTo(long msec) + throws java.lang.IllegalStateException+
+
msec
- the offset in milliseconds from the start to seek to
+java.lang.IllegalStateException
- if the internal player engine has not been
+ initialized+public long getCurrentPosition()+
+
+public long getDuration()+
+
+public void release()+
+
+public void reset()+
+
+public void setVolume(float leftVolume, + float rightVolume)+
+public void setOnPreparedListener(MediaPlayer.OnPreparedListener listener)+
+
listener
- the callback that will be run+public void setOnCompletionListener(MediaPlayer.OnCompletionListener listener)+
+
listener
- the callback that will be run+public void setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener listener)+
+
listener
- the callback that will be run.+public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener)+
+
listener
- the callback that will be run+public void setOnVideoSizeChangedListener(MediaPlayer.OnVideoSizeChangedListener listener)+
+
listener
- the callback that will be run+public void setOnErrorListener(MediaPlayer.OnErrorListener listener)+
+
listener
- the callback that will be run+public void setOnInfoListener(MediaPlayer.OnInfoListener listener)+
+public void setOnSubtitleUpdateListener(MediaPlayer.OnSubtitleUpdateListener listener)+
+
listener
- the callback that will be run+public void releaseDisplay()+
+
+public float getVideoAspectRatio()+
+
io.vov.vitamio.VideoView#setVideoLayout(int, float)
+public void setVideoQuality(int quality)+
+
quality
- +public void setBufferSize(int bufSize)+
+
bufSize
- buffer size in Byte+public boolean isBuffering()+
+
+public int getBufferProgress()+
MediaPlayer.OnBufferingUpdateListener
+public void setMetaEncoding(java.lang.String encoding)+
+
encoding
- e.g. "UTF-8"+public java.lang.String getMetaEncoding()+
setMetaEncoding(String)
++
+public java.util.HashMap<java.lang.String,java.lang.Integer> getAudioTrackMap(java.lang.String encoding)+
+
encoding
- the encoding to format String, will detect it if null
++public int getAudioTrack()+
+
+public void setAudioTrack(int audioIndex)+
getAudioTrackMap(String)
++
audioIndex
- the track number+public void setSubShown(boolean shown)+
+
shown
- true if wanna show+public void setSubEncoding(java.lang.String encoding)+
+
encoding
- MediaPlayer will detet it if null+public int getSubLocation()+
+public void setSubPath(java.lang.String subPath)+
+
subPath
- must be a local file+public java.lang.String getSubPath()+
+
+public void setSubTrack(int trackId)+
getSubTrackMap(String)
++
audioIndex
- the track number+public int getSubTrack()+
+
+public java.util.HashMap<java.lang.String,java.lang.Integer> getSubTrackMap(java.lang.String encoding)+
+
encoding
- the encoding to format String, will detect it if null
+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.VR.drawable ++
public static final class VR.drawable
+
+Field Summary | +|
---|---|
+static int |
+pause_button
+
++ |
+
+static int |
+play_button
+
++ |
+
+Constructor Summary | +|
---|---|
VR.drawable()
+
++ |
+
+Method Summary | +
---|
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static int pause_button+
+public static int play_button+
+Constructor Detail | +
---|
+public VR.drawable()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.VR ++
public class VR
+A resource holder within Vitamio Plugin +
+ +
+
+Nested Class Summary | +|
---|---|
+static class |
+VR.drawable
+
++ |
+
+static class |
+VR.id
+
++ |
+
+static class |
+VR.layout
+
++ |
+
+static class |
+VR.string
+
++ |
+
+Constructor Summary | +|
---|---|
VR()
+
++ |
+
+Method Summary | +|
---|---|
+static Drawable |
+getDrawable(int id)
+
++ |
+
+static java.lang.String |
+getString(int id)
+
++ |
+
+static View |
+inflate(int id,
+ ViewGroup root)
+
++ |
+
+static void |
+init(Context ctx)
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public VR()+
+Method Detail | +
---|
+public static void init(Context ctx) + throws VitamioInstaller.VitamioNotCompatibleException, + VitamioInstaller.VitamioNotFoundException, + NameNotFoundException+
VitamioInstaller.VitamioNotCompatibleException
+VitamioInstaller.VitamioNotFoundException
+NameNotFoundException
+public static View inflate(int id, + ViewGroup root)+
+public static Drawable getDrawable(int id)+
+public static java.lang.String getString(int id)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.VR.id ++
public static final class VR.id
+
+Field Summary | +|
---|---|
+static int |
+file_name
+
++ |
+
+static int |
+mediacontroller_progress
+
++ |
+
+static int |
+pause
+
++ |
+
+static int |
+time
+
++ |
+
+static int |
+time_current
+
++ |
+
+Constructor Summary | +|
---|---|
VR.id()
+
++ |
+
+Method Summary | +
---|
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static int mediacontroller_progress+
+public static int pause+
+public static int time+
+public static int time_current+
+public static int file_name+
+Constructor Detail | +
---|
+public VR.id()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.VR.layout ++
public static final class VR.layout
+
+Field Summary | +|
---|---|
+static int |
+media_controller
+
++ |
+
+Constructor Summary | +|
---|---|
VR.layout()
+
++ |
+
+Method Summary | +
---|
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static int media_controller+
+Constructor Detail | +
---|
+public VR.layout()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.VR.string ++
public static final class VR.string
+
+Field Summary | +|
---|---|
+static int |
+VideoView_error_button
+
++ |
+
+static int |
+VideoView_error_text_invalid_progressive_playback
+
++ |
+
+static int |
+VideoView_error_text_unknown
+
++ |
+
+static int |
+VideoView_error_title
+
++ |
+
+Constructor Summary | +|
---|---|
VR.string()
+
++ |
+
+Method Summary | +
---|
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static int VideoView_error_button+
+public static int VideoView_error_text_invalid_progressive_playback+
+public static int VideoView_error_text_unknown+
+public static int VideoView_error_title+
+Constructor Detail | +
---|
+public VR.string()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + AndroidException + io.vov.vitamio.VitamioInstaller.VitamioNotCompatibleException ++
public static class VitamioInstaller.VitamioNotCompatibleException
+This exception will be thrown when Vitamio not compatible with the + device. I feel sorry for this. +
+ +
+
+Constructor Summary | +|
---|---|
VitamioInstaller.VitamioNotCompatibleException()
+
++ |
+|
VitamioInstaller.VitamioNotCompatibleException(java.lang.String name)
+
++ |
+
+Method Summary | +
---|
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public VitamioInstaller.VitamioNotCompatibleException()+
+public VitamioInstaller.VitamioNotCompatibleException(java.lang.String name)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + AndroidException + io.vov.vitamio.VitamioInstaller.VitamioNotFoundException ++
public static class VitamioInstaller.VitamioNotFoundException
+This exception will be thrown when Vitamio not found in the device. May + popup a dialog to guide the user install a compatible Vitamio. +
+ +
+
io.vov.vitamio.VitamioInstaller#showInstallerDialog(String, String)
+Constructor Summary | +|
---|---|
VitamioInstaller.VitamioNotFoundException()
+
++ |
+|
VitamioInstaller.VitamioNotFoundException(java.lang.String name)
+
++ |
+
+Method Summary | +
---|
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public VitamioInstaller.VitamioNotFoundException()+
+public VitamioInstaller.VitamioNotFoundException(java.lang.String name)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + io.vov.vitamio.VitamioInstaller ++
public class VitamioInstaller
+It's recommended to use this class to check if Vitamio Plugin is installed in + the device before using any other classes and functions. +
+ +
+
+Nested Class Summary | +|
---|---|
+static class |
+VitamioInstaller.VitamioNotCompatibleException
+
++ This exception will be thrown when Vitamio not compatible with the + device. |
+
+static class |
+VitamioInstaller.VitamioNotFoundException
+
++ This exception will be thrown when Vitamio not found in the device. |
+
+Field Summary | +|
---|---|
+static java.lang.String |
+VITAMIO_PACKAGE_ARMV6
+
++ |
+
+static java.lang.String |
+VITAMIO_PACKAGE_ARMV6_VFP
+
++ |
+
+static java.lang.String |
+VITAMIO_PACKAGE_ARMV7_NEON
+
++ |
+
+static java.lang.String |
+VITAMIO_PACKAGE_ARMV7_VFPV3
+
++ |
+
+static int |
+VITAMIO_VERSION_CODE
+
++ |
+
+static java.lang.String |
+VITAMIO_VERSION_NAME
+
++ |
+
+Constructor Summary | +|
---|---|
VitamioInstaller(Context ctx)
+
++ |
+
+Method Summary | +|
---|---|
+ Dialog |
+buildInstallerDialog(java.lang.String title,
+ java.lang.String msg,
+ java.lang.String button)
+
++ A simple helper dialog to guide the user install a compatible Vitamio + package, you may build a more beautiful one by yourself. |
+
+ Dialog |
+buildNotCompatibleDialog(java.lang.String title,
+ java.lang.String msg,
+ java.lang.String button)
+
++ A simple helper dialog telling user Vitamio is not compatible with the + device, you may build a more beautiful one by yourself. |
+
+static java.lang.String |
+checkVitamioInstallation(Context ctx)
+
++ Check if a Vitamio package is installed |
+
+ VitamioInstaller |
+clearSources()
+
++ |
+
+ VitamioInstaller |
+fillDefaultSources()
+
++ |
+
+static java.lang.String |
+getCompatiblePackage()
+
++ |
+
+static java.lang.String |
+getLibraryPath(Context ctx)
+
++ Get the absolute path to Vitamio's library |
+
+ java.util.Map<java.lang.String,java.lang.String> |
+getSources()
+
++ |
+
+ VitamioInstaller |
+putSource(java.lang.String title,
+ java.lang.String url)
+
++ |
+
+ void |
+showInstallerDialog(java.lang.String title,
+ java.lang.String msg,
+ java.lang.String button)
+
++ A simple helper dialog to guide the user install a compatible Vitamio + package, you may build a more beautiful one by yourself. |
+
+ void |
+showNotCompatibleDialog(java.lang.String title,
+ java.lang.String msg,
+ java.lang.String button)
+
++ A simple helper dialog telling user Vitamio is not compatible with the + device, you may build a more beautiful one by yourself. |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static final int VITAMIO_VERSION_CODE+
+public static final java.lang.String VITAMIO_VERSION_NAME+
+public static final java.lang.String VITAMIO_PACKAGE_ARMV6+
+public static final java.lang.String VITAMIO_PACKAGE_ARMV6_VFP+
+public static final java.lang.String VITAMIO_PACKAGE_ARMV7_VFPV3+
+public static final java.lang.String VITAMIO_PACKAGE_ARMV7_NEON+
+Constructor Detail | +
---|
+public VitamioInstaller(Context ctx)+
+Method Detail | +
---|
+public VitamioInstaller fillDefaultSources()+
+public VitamioInstaller putSource(java.lang.String title, + java.lang.String url)+
+public java.util.Map<java.lang.String,java.lang.String> getSources()+
+public VitamioInstaller clearSources()+
+public void showInstallerDialog(java.lang.String title, + java.lang.String msg, + java.lang.String button)+
+
title
- dialog's titlebutton
- text on the dialog's button+public Dialog buildInstallerDialog(java.lang.String title, + java.lang.String msg, + java.lang.String button)+
+
title
- dialog's titlebutton
- text on the dialog's button+public void showNotCompatibleDialog(java.lang.String title, + java.lang.String msg, + java.lang.String button)+
+
title
- dialog's titlemsg
- message displayed on dialogbutton
- text on the dialog's button+public Dialog buildNotCompatibleDialog(java.lang.String title, + java.lang.String msg, + java.lang.String button)+
+
title
- dialog's titlemsg
- message displayed on dialogbutton
- text on the dialog's button+public static java.lang.String getCompatiblePackage()+
+public static java.lang.String checkVitamioInstallation(Context ctx) + throws VitamioInstaller.VitamioNotCompatibleException, + VitamioInstaller.VitamioNotFoundException+
+
ctx
- a Context
+getCompatiblePackage()
+VitamioInstaller.VitamioNotCompatibleException
+VitamioInstaller.VitamioNotFoundException
+public static java.lang.String getLibraryPath(Context ctx) + throws VitamioInstaller.VitamioNotCompatibleException, + VitamioInstaller.VitamioNotFoundException+
+
ctx
- a Context
+VitamioInstaller.VitamioNotCompatibleException
+VitamioInstaller.VitamioNotFoundException
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnBufferingUpdateListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnBufferingUpdateListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnBufferingUpdateListener | +|
---|---|
+ void |
+MediaPlayer.setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener listener)
+
++ Register a callback to be invoked when the status of a network stream's + buffer has changed. |
+
+Uses of MediaPlayer.OnBufferingUpdateListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnBufferingUpdateListener | +|
---|---|
+ void |
+VideoView.setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnCompletionListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnCompletionListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnCompletionListener | +|
---|---|
+ void |
+MediaPlayer.setOnCompletionListener(MediaPlayer.OnCompletionListener listener)
+
++ Register a callback to be invoked when the end of a media source has been + reached during playback. |
+
+Uses of MediaPlayer.OnCompletionListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnCompletionListener | +|
---|---|
+ void |
+VideoView.setOnCompletionListener(MediaPlayer.OnCompletionListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnErrorListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnErrorListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnErrorListener | +|
---|---|
+ void |
+MediaPlayer.setOnErrorListener(MediaPlayer.OnErrorListener listener)
+
++ Register a callback to be invoked when an error has happened during an + asynchronous operation. |
+
+Uses of MediaPlayer.OnErrorListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnErrorListener | +|
---|---|
+ void |
+VideoView.setOnErrorListener(MediaPlayer.OnErrorListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnInfoListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnInfoListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnInfoListener | +|
---|---|
+ void |
+MediaPlayer.setOnInfoListener(MediaPlayer.OnInfoListener listener)
+
++ |
+
+Uses of MediaPlayer.OnInfoListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnInfoListener | +|
---|---|
+ void |
+VideoView.setOnInfoListener(MediaPlayer.OnInfoListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnPreparedListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnPreparedListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnPreparedListener | +|
---|---|
+ void |
+MediaPlayer.setOnPreparedListener(MediaPlayer.OnPreparedListener listener)
+
++ Register a callback to be invoked when the media source is ready for + playback. |
+
+Uses of MediaPlayer.OnPreparedListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnPreparedListener | +|
---|---|
+ void |
+VideoView.setOnPreparedListener(MediaPlayer.OnPreparedListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnSeekCompleteListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnSeekCompleteListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnSeekCompleteListener | +|
---|---|
+ void |
+MediaPlayer.setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener listener)
+
++ Register a callback to be invoked when a seek operation has been + completed. |
+
+Uses of MediaPlayer.OnSeekCompleteListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnSeekCompleteListener | +|
---|---|
+ void |
+VideoView.setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnSubtitleUpdateListener | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Uses of MediaPlayer.OnSubtitleUpdateListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnSubtitleUpdateListener | +|
---|---|
+ void |
+MediaPlayer.setOnSubtitleUpdateListener(MediaPlayer.OnSubtitleUpdateListener listener)
+
++ Register a callback to be invoked when a subtitle need to display. |
+
+Uses of MediaPlayer.OnSubtitleUpdateListener in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaPlayer.OnSubtitleUpdateListener | +|
---|---|
+ void |
+VideoView.setOnSubtitleUpdateListener(MediaPlayer.OnSubtitleUpdateListener l)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer.OnVideoSizeChangedListener | +|
---|---|
io.vov.vitamio | ++ |
+Uses of MediaPlayer.OnVideoSizeChangedListener in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer.OnVideoSizeChangedListener | +|
---|---|
+ void |
+MediaPlayer.setOnVideoSizeChangedListener(MediaPlayer.OnVideoSizeChangedListener listener)
+
++ Register a callback to be invoked when the video size is known or + updated. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaPlayer | +|
---|---|
io.vov.vitamio | ++ |
+Uses of MediaPlayer in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio with parameters of type MediaPlayer | +|
---|---|
+ void |
+MediaPlayer.OnBufferingUpdateListener.onBufferingUpdate(MediaPlayer mp,
+ int percent)
+
++ Called to update status in buffering a media stream. |
+
+ void |
+MediaPlayer.OnCompletionListener.onCompletion(MediaPlayer mp)
+
++ Called when the end of a media source is reached during playback. |
+
+ boolean |
+MediaPlayer.OnErrorListener.onError(MediaPlayer mp,
+ int what,
+ int extra)
+
++ Called to indicate an error. |
+
+ boolean |
+MediaPlayer.OnInfoListener.onInfo(MediaPlayer mp,
+ int what,
+ int extra)
+
++ Called to indicate an info or a warning. |
+
+ void |
+MediaPlayer.OnPreparedListener.onPrepared(MediaPlayer mp)
+
++ Called when the media file is ready for playback. |
+
+ void |
+MediaPlayer.OnSeekCompleteListener.onSeekComplete(MediaPlayer mp)
+
++ Called to indicate the completion of a seek operation. |
+
+ void |
+MediaPlayer.OnVideoSizeChangedListener.onVideoSizeChanged(MediaPlayer mp,
+ int width,
+ int height)
+
++ Called to indicate the video size |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use VitamioInstaller.VitamioNotCompatibleException | +|
---|---|
io.vov.vitamio | ++ |
+Uses of VitamioInstaller.VitamioNotCompatibleException in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio that throw VitamioInstaller.VitamioNotCompatibleException | +|
---|---|
+static java.lang.String |
+VitamioInstaller.checkVitamioInstallation(Context ctx)
+
++ Check if a Vitamio package is installed |
+
+static java.lang.String |
+VitamioInstaller.getLibraryPath(Context ctx)
+
++ Get the absolute path to Vitamio's library |
+
+static void |
+VR.init(Context ctx)
+
++ |
+
+ +
Constructors in io.vov.vitamio that throw VitamioInstaller.VitamioNotCompatibleException | +|
---|---|
MediaPlayer(Context ctx)
+
++ Default constructor. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use VitamioInstaller.VitamioNotFoundException | +|
---|---|
io.vov.vitamio | ++ |
+Uses of VitamioInstaller.VitamioNotFoundException in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio that throw VitamioInstaller.VitamioNotFoundException | +|
---|---|
+static java.lang.String |
+VitamioInstaller.checkVitamioInstallation(Context ctx)
+
++ Check if a Vitamio package is installed |
+
+static java.lang.String |
+VitamioInstaller.getLibraryPath(Context ctx)
+
++ Get the absolute path to Vitamio's library |
+
+static void |
+VR.init(Context ctx)
+
++ |
+
+ +
Constructors in io.vov.vitamio that throw VitamioInstaller.VitamioNotFoundException | +|
---|---|
MediaPlayer(Context ctx)
+
++ Default constructor. |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use VitamioInstaller | +|
---|---|
io.vov.vitamio | ++ |
+Uses of VitamioInstaller in io.vov.vitamio | +
---|
+ +
Methods in io.vov.vitamio that return VitamioInstaller | +|
---|---|
+ VitamioInstaller |
+VitamioInstaller.clearSources()
+
++ |
+
+ VitamioInstaller |
+VitamioInstaller.fillDefaultSources()
+
++ |
+
+ VitamioInstaller |
+VitamioInstaller.putSource(java.lang.String title,
+ java.lang.String url)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Classes
+
+ +MediaPlayer + +VitamioInstaller + +VitamioInstaller.VitamioNotCompatibleException + +VitamioInstaller.VitamioNotFoundException + +VR + +VR.drawable + +VR.id + +VR.layout + +VR.string |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
MediaPlayer.OnBufferingUpdateListener | ++ |
MediaPlayer.OnCompletionListener | ++ |
MediaPlayer.OnErrorListener | ++ |
MediaPlayer.OnInfoListener | ++ |
MediaPlayer.OnPreparedListener | ++ |
MediaPlayer.OnSeekCompleteListener | ++ |
MediaPlayer.OnSubtitleUpdateListener | ++ |
MediaPlayer.OnVideoSizeChangedListener | ++ |
+ +
+Class Summary | +|
---|---|
MediaPlayer | +MediaPlayer class can be used to control playback of audio/video files and + streams. | +
VitamioInstaller | +It's recommended to use this class to check if Vitamio Plugin is installed in + the device before using any other classes and functions. | +
VitamioInstaller.VitamioNotCompatibleException | +This exception will be thrown when Vitamio not compatible with the + device. | +
VitamioInstaller.VitamioNotFoundException | +This exception will be thrown when Vitamio not found in the device. | +
VR | +A resource holder within Vitamio Plugin | +
VR.drawable | ++ |
VR.id | ++ |
VR.layout | ++ |
VR.string | ++ |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use io.vov.vitamio | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+Classes in io.vov.vitamio used by io.vov.vitamio | +|
---|---|
MediaPlayer
+
+ + MediaPlayer class can be used to control playback of audio/video files and + streams. |
+|
MediaPlayer.OnBufferingUpdateListener
+
+ + |
+|
MediaPlayer.OnCompletionListener
+
+ + |
+|
MediaPlayer.OnErrorListener
+
+ + |
+|
MediaPlayer.OnInfoListener
+
+ + |
+|
MediaPlayer.OnPreparedListener
+
+ + |
+|
MediaPlayer.OnSeekCompleteListener
+
+ + |
+|
MediaPlayer.OnSubtitleUpdateListener
+
+ + |
+|
MediaPlayer.OnVideoSizeChangedListener
+
+ + |
+|
VitamioInstaller
+
+ + It's recommended to use this class to check if Vitamio Plugin is installed in + the device before using any other classes and functions. |
+|
VitamioInstaller.VitamioNotCompatibleException
+
+ + This exception will be thrown when Vitamio not compatible with the + device. |
+|
VitamioInstaller.VitamioNotFoundException
+
+ + This exception will be thrown when Vitamio not found in the device. |
+
+Classes in io.vov.vitamio used by io.vov.vitamio.widget | +|
---|---|
MediaPlayer.OnBufferingUpdateListener
+
+ + |
+|
MediaPlayer.OnCompletionListener
+
+ + |
+|
MediaPlayer.OnErrorListener
+
+ + |
+|
MediaPlayer.OnInfoListener
+
+ + |
+|
MediaPlayer.OnPreparedListener
+
+ + |
+|
MediaPlayer.OnSeekCompleteListener
+
+ + |
+|
MediaPlayer.OnSubtitleUpdateListener
+
+ + |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
public static interface MediaController.MediaPlayerControl
+
+Method Summary | +|
---|---|
+ boolean |
+canPause()
+
++ |
+
+ boolean |
+canSeekBackward()
+
++ |
+
+ boolean |
+canSeekForward()
+
++ |
+
+ int |
+getBufferPercentage()
+
++ |
+
+ long |
+getCurrentPosition()
+
++ |
+
+ long |
+getDuration()
+
++ |
+
+ boolean |
+isPlaying()
+
++ |
+
+ void |
+pause()
+
++ |
+
+ void |
+seekTo(long pos)
+
++ |
+
+ void |
+start()
+
++ |
+
+Method Detail | +
---|
+void start()+
+void pause()+
+long getDuration()+
+long getCurrentPosition()+
+void seekTo(long pos)+
+boolean isPlaying()+
+int getBufferPercentage()+
+boolean canPause()+
+boolean canSeekBackward()+
+boolean canSeekForward()+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + FrameLayout + io.vov.vitamio.widget.MediaController ++
public class MediaController
+A view containing controls for a MediaPlayer. Typically contains the buttons + like "Play/Pause" and a progress slider. It takes care of synchronizing the + controls with the state of the MediaPlayer. +
+ The way to use this class is to instantiate it programatically. The + MediaController will create a default set of controls and put them in a + window floating above your application. Specifically, the controls will float + above the view specified with setAnchorView(). The window will disappear if + left idle for three seconds and reappear when the user touches the anchor + view. +
+ Functions like show() and hide() have no effect when MediaController is + created in an xml layout. +
+ +
+
+Nested Class Summary | +|
---|---|
+static interface |
+MediaController.MediaPlayerControl
+
++ |
+
+Constructor Summary | +|
---|---|
MediaController(Context context)
+
++ |
+|
MediaController(Context context,
+ AttributeSet attrs)
+
++ |
+
+Method Summary | +|
---|---|
+ boolean |
+dispatchKeyEvent(KeyEvent event)
+
++ |
+
+ void |
+hide()
+
++ |
+
+ boolean |
+isShowing()
+
++ |
+
+ void |
+onFinishInflate()
+
++ |
+
+ boolean |
+onTouchEvent(MotionEvent event)
+
++ |
+
+ boolean |
+onTrackballEvent(MotionEvent ev)
+
++ |
+
+ void |
+setAnchorView(View view)
+
++ Set the view that acts as the anchor for the control view. |
+
+ void |
+setEnabled(boolean enabled)
+
++ |
+
+ void |
+setFileName(java.lang.String name)
+
++ |
+
+ void |
+setInfoView(TextView v)
+
++ |
+
+ void |
+setMediaPlayer(MediaController.MediaPlayerControl player)
+
++ |
+
+ void |
+show()
+
++ |
+
+ void |
+show(int timeout)
+
++ Show the controller on screen. |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Constructor Detail | +
---|
+public MediaController(Context context, + AttributeSet attrs)+
+public MediaController(Context context)+
+Method Detail | +
---|
+public void onFinishInflate()+
+public void setAnchorView(View view)+
+
view
- The view to which to anchor the controller when it is
+ visible.+public void setMediaPlayer(MediaController.MediaPlayerControl player)+
+public void show()+
+public void setFileName(java.lang.String name)+
+public void setInfoView(TextView v)+
+public void show(int timeout)+
+
timeout
- The timeout in milliseconds. Use 0 to show the controller
+ until hide() is called.+public boolean isShowing()+
+public void hide()+
+public boolean onTouchEvent(MotionEvent event)+
+public boolean onTrackballEvent(MotionEvent ev)+
+public boolean dispatchKeyEvent(KeyEvent event)+
+public void setEnabled(boolean enabled)+
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+java.lang.Object + SurfaceView + io.vov.vitamio.widget.VideoView ++
public class VideoView
+Displays a video file. The VideoView class can load images from various
+ sources (such as resources or content providers), takes care of computing its
+ measurement from the video so that it can be used in any layout manager, and
+ provides various display options such as scaling and tinting.
+
+ VideoView also provide many wrapper methods for
+ MediaPlayer
, such as getVideoWidth()
,
+ setSubShown(boolean)
+
+ +
+
+Field Summary | +|
---|---|
+static int |
+VIDEO_LAYOUT_ORIGIN
+
++ |
+
+static int |
+VIDEO_LAYOUT_SCALE
+
++ |
+
+static int |
+VIDEO_LAYOUT_STRETCH
+
++ |
+
+static int |
+VIDEO_LAYOUT_ZOOM
+
++ |
+
+Constructor Summary | +|
---|---|
VideoView(Context context)
+
++ |
+|
VideoView(Context context,
+ AttributeSet attrs)
+
++ |
+|
VideoView(Context context,
+ AttributeSet attrs,
+ int defStyle)
+
++ |
+
+Method Summary | +|
---|---|
+ boolean |
+canPause()
+
++ |
+
+ boolean |
+canSeekBackward()
+
++ |
+
+ boolean |
+canSeekForward()
+
++ |
+
+ int |
+getAudioTrack()
+
++ |
+
+ java.util.HashMap<java.lang.String,java.lang.Integer> |
+getAudioTrackMap(java.lang.String encoding)
+
++ |
+
+ int |
+getBufferPercentage()
+
++ |
+
+ long |
+getCurrentPosition()
+
++ |
+
+ long |
+getDuration()
+
++ |
+
+ java.lang.String |
+getMetaEncoding()
+
++ |
+
+ int |
+getSubLocation()
+
++ |
+
+ java.lang.String |
+getSubPath()
+
++ |
+
+ int |
+getSubTrack()
+
++ |
+
+ java.util.HashMap<java.lang.String,java.lang.Integer> |
+getSubTrackMap(java.lang.String encoding)
+
++ |
+
+ float |
+getVideoAspectRatio()
+
++ |
+
+ int |
+getVideoHeight()
+
++ |
+
+ int |
+getVideoWidth()
+
++ |
+
+ boolean |
+isBuffering()
+
++ |
+
+ boolean |
+isPlaying()
+
++ |
+
+ boolean |
+isValid()
+
++ |
+
+ boolean |
+onKeyDown(int keyCode,
+ KeyEvent event)
+
++ |
+
+ boolean |
+onTouchEvent(MotionEvent ev)
+
++ |
+
+ boolean |
+onTrackballEvent(MotionEvent ev)
+
++ |
+
+ void |
+pause()
+
++ |
+
+ void |
+resume()
+
++ |
+
+ void |
+seekTo(long msec)
+
++ |
+
+ void |
+setAudioTrack(int audioIndex)
+
++ |
+
+ void |
+setBufferSize(int bufSize)
+
++ |
+
+ void |
+setMediaController(MediaController controller)
+
++ |
+
+ void |
+setMetaEncoding(java.lang.String encoding)
+
++ |
+
+ void |
+setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener l)
+
++ |
+
+ void |
+setOnCompletionListener(MediaPlayer.OnCompletionListener l)
+
++ |
+
+ void |
+setOnErrorListener(MediaPlayer.OnErrorListener l)
+
++ |
+
+ void |
+setOnInfoListener(MediaPlayer.OnInfoListener l)
+
++ |
+
+ void |
+setOnPreparedListener(MediaPlayer.OnPreparedListener l)
+
++ |
+
+ void |
+setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener l)
+
++ |
+
+ void |
+setOnSubtitleUpdateListener(MediaPlayer.OnSubtitleUpdateListener l)
+
++ |
+
+ void |
+setSubEncoding(java.lang.String encoding)
+
++ |
+
+ void |
+setSubPath(java.lang.String subPath)
+
++ |
+
+ void |
+setSubShown(boolean shown)
+
++ |
+
+ void |
+setSubTrack(int trackId)
+
++ |
+
+ void |
+setVideoLayout(int layout,
+ float aspectRatio)
+
++ Set the display options |
+
+ void |
+setVideoPath(java.lang.String path)
+
++ |
+
+ void |
+setVideoQuality(int quality)
+
++ |
+
+ void |
+setVideoURI(Uri uri)
+
++ |
+
+ void |
+setVolume(float leftVolume,
+ float rightVolume)
+
++ |
+
+ void |
+start()
+
++ |
+
+ void |
+stopPlayback()
+
++ |
+
+ void |
+suspend()
+
++ |
+
Methods inherited from class java.lang.Object | +
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
+
+Field Detail | +
---|
+public static final int VIDEO_LAYOUT_ORIGIN+
+public static final int VIDEO_LAYOUT_SCALE+
+public static final int VIDEO_LAYOUT_STRETCH+
+public static final int VIDEO_LAYOUT_ZOOM+
+Constructor Detail | +
---|
+public VideoView(Context context)+
+public VideoView(Context context, + AttributeSet attrs)+
+public VideoView(Context context, + AttributeSet attrs, + int defStyle)+
+Method Detail | +
---|
+public void setVideoLayout(int layout, + float aspectRatio)+
+
layout
- aspectRatio
- video aspect ratio, will audo detect if 0.+public boolean isValid()+
+public void setVideoPath(java.lang.String path)+
+public void setVideoURI(Uri uri)+
+public void stopPlayback()+
+public void setMediaController(MediaController controller)+
+public void setOnPreparedListener(MediaPlayer.OnPreparedListener l)+
+public void setOnCompletionListener(MediaPlayer.OnCompletionListener l)+
+public void setOnErrorListener(MediaPlayer.OnErrorListener l)+
+public void setOnBufferingUpdateListener(MediaPlayer.OnBufferingUpdateListener l)+
+public void setOnSeekCompleteListener(MediaPlayer.OnSeekCompleteListener l)+
+public void setOnSubtitleUpdateListener(MediaPlayer.OnSubtitleUpdateListener l)+
+public void setOnInfoListener(MediaPlayer.OnInfoListener l)+
+public boolean onTouchEvent(MotionEvent ev)+
+public boolean onTrackballEvent(MotionEvent ev)+
+public boolean onKeyDown(int keyCode, + KeyEvent event)+
+public void start()+
start
in interface MediaController.MediaPlayerControl
+public void pause()+
pause
in interface MediaController.MediaPlayerControl
+public void suspend()+
+public void resume()+
+public long getDuration()+
getDuration
in interface MediaController.MediaPlayerControl
+public long getCurrentPosition()+
getCurrentPosition
in interface MediaController.MediaPlayerControl
+public void seekTo(long msec)+
seekTo
in interface MediaController.MediaPlayerControl
+public boolean isPlaying()+
isPlaying
in interface MediaController.MediaPlayerControl
+public int getBufferPercentage()+
getBufferPercentage
in interface MediaController.MediaPlayerControl
+public void setVolume(float leftVolume, + float rightVolume)+
+public int getVideoWidth()+
+public int getVideoHeight()+
+public float getVideoAspectRatio()+
+public void setVideoQuality(int quality)+
+public void setBufferSize(int bufSize)+
+public boolean isBuffering()+
+public void setMetaEncoding(java.lang.String encoding)+
+public java.lang.String getMetaEncoding()+
+public java.util.HashMap<java.lang.String,java.lang.Integer> getAudioTrackMap(java.lang.String encoding)+
+public int getAudioTrack()+
+public void setAudioTrack(int audioIndex)+
+public void setSubShown(boolean shown)+
+public void setSubEncoding(java.lang.String encoding)+
+public int getSubLocation()+
+public void setSubPath(java.lang.String subPath)+
+public java.lang.String getSubPath()+
+public void setSubTrack(int trackId)+
+public int getSubTrack()+
+public java.util.HashMap<java.lang.String,java.lang.Integer> getSubTrackMap(java.lang.String encoding)+
+public boolean canPause()+
canPause
in interface MediaController.MediaPlayerControl
+public boolean canSeekBackward()+
canSeekBackward
in interface MediaController.MediaPlayerControl
+public boolean canSeekForward()+
canSeekForward
in interface MediaController.MediaPlayerControl
+
+
|
++ + | +|||||||||
+ PREV CLASS + NEXT CLASS | ++ FRAMES + NO FRAMES + + + + + | +|||||||||
+ SUMMARY: NESTED | FIELD | CONSTR | METHOD | ++DETAIL: FIELD | CONSTR | METHOD | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaController.MediaPlayerControl | +|
---|---|
io.vov.vitamio.widget | ++ |
+Uses of MediaController.MediaPlayerControl in io.vov.vitamio.widget | +
---|
+ +
Classes in io.vov.vitamio.widget that implement MediaController.MediaPlayerControl | +|
---|---|
+ class |
+VideoView
+
++ Displays a video file. |
+
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaController.MediaPlayerControl | +|
---|---|
+ void |
+MediaController.setMediaPlayer(MediaController.MediaPlayerControl player)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use MediaController | +|
---|---|
io.vov.vitamio.widget | ++ |
+Uses of MediaController in io.vov.vitamio.widget | +
---|
+ +
Methods in io.vov.vitamio.widget with parameters of type MediaController | +|
---|---|
+ void |
+VideoView.setMediaController(MediaController controller)
+
++ |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Interfaces
+
+ +MediaController.MediaPlayerControl |
+
+Classes
+
+ +MediaController + +VideoView |
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+Interface Summary | +|
---|---|
MediaController.MediaPlayerControl | ++ |
+ +
+Class Summary | +|
---|---|
MediaController | +A view containing controls for a MediaPlayer. | +
VideoView | +Displays a video file. | +
+
+
+
|
++ + | +|||||||||
+ PREV PACKAGE + NEXT PACKAGE | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages that use io.vov.vitamio.widget | +|
---|---|
io.vov.vitamio.widget | ++ |
+Classes in io.vov.vitamio.widget used by io.vov.vitamio.widget | +|
---|---|
MediaController
+
+ + A view containing controls for a MediaPlayer. |
+|
MediaController.MediaPlayerControl
+
+ + |
+
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+ | +
---|
All Classes
+
+
+Packages
+ |
+
+ + + diff --git a/doc/overview-summary.html b/doc/overview-summary.html new file mode 100644 index 0000000..bdaf6da --- /dev/null +++ b/doc/overview-summary.html @@ -0,0 +1,155 @@ + + + +
+ +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+Packages | +|
---|---|
io.vov.vitamio | ++ |
io.vov.vitamio.widget | ++ |
+
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +
+
+
|
++ + | +|||||||||
+ PREV + NEXT | ++ FRAMES + NO FRAMES + + + + + | +