Tabnine Logo
io.vov.vitamio
Code IndexAdd Tabnine to your IDE (free)

How to use io.vov.vitamio

Best Java code snippets using io.vov.vitamio (Showing top 20 results out of 315)

origin: curtis2/SuperVideoPlayer

public EGL() {
 mEGLConfigChooser = new SimpleEGLConfigChooser();
 mEGLContextFactory = new EGLContextFactory();
 mEGLWindowSurfaceFactory = new EGLWindowSurfaceFactory();
}
origin: curtis2/SuperVideoPlayer

/**
 * Resets the MediaPlayer to its uninitialized state. After calling this
 * method, you will have to initialize it again by setting the data source and
 * calling prepare().
 */
public void reset() {
 stayAwake(false);
 _reset();
 if (mEventHandler != null)
   mEventHandler.removeCallbacksAndMessages(null);
 closeFD();
 mInBuffering = false;
 mNeedResume = false;
}
origin: curtis2/SuperVideoPlayer

private void release(boolean cleartargetstate) {
 if (mMediaPlayer != null) {
  mMediaPlayer.reset();
  mMediaPlayer.release();
  mMediaPlayer = null;
  mCurrentState = STATE_IDLE;
  if (cleartargetstate)
   mTargetState = STATE_IDLE;
 }
}
origin: curtis2/SuperVideoPlayer

private void selectOrDeselectBandTrack(int index, boolean select) {
  if (mOutOfBandTracks != null) {
    SparseArray<MediaFormat> mediaSparse = mOutOfBandTracks.getTrackInfoArray();
    int trackIndex = mediaSparse.keyAt(0);
    MediaFormat mediaFormat = mediaSparse.valueAt(0);
   if (index == trackIndex  && select) {
     addTimedTextSource(mediaFormat.getString(MediaFormat.KEY_PATH));
     return;
   }
  }
  selectOrDeselectTrack(index, select);
}

origin: curtis2/SuperVideoPlayer

public void stopPlayback() {
 if (mMediaPlayer != null) {
  mMediaPlayer.stop();
  mMediaPlayer.release();
  mMediaPlayer = null;
  mCurrentState = STATE_IDLE;
  mTargetState = STATE_IDLE;
 }
}

origin: curtis2/SuperVideoPlayer

public SparseArray<MediaFormat> getAudioTrackMap(String encoding) {
 if (mMediaPlayer != null)
  return mMediaPlayer.findTrackFromTrackInfo(TrackInfo.MEDIA_TRACK_TYPE_AUDIO, mMediaPlayer.getTrackInfo(encoding));
 return null;
}
origin: curtis2/SuperVideoPlayer

/**
 * The same as {@link #pause()}
 *
 * @throws IllegalStateException if the internal player engine has not been initialized.
 */
public void stop() throws IllegalStateException {
 stayAwake(false);
 _stop();
 mInBuffering = false;
 mNeedResume = false;
}
origin: curtis2/SuperVideoPlayer

/**
 * Pauses playback. Call start() to resume.
 *
 * @throws IllegalStateException if the internal player engine has not been initialized.
 */
public void pause() throws IllegalStateException {
 stayAwake(false);
 mNeedResume = false;
 //Log.i("MiuiVideo: pause player");
 _pause();
}
origin: curtis2/SuperVideoPlayer

/**
 * Sets the data source as a content Uri.
 *
 * @param context the Context to use when resolving the Uri
 * @param uri     the Content URI of the data you want to play
 * @throws IllegalStateException if it is called in an invalid state
 */
public void setDataSource(Context context, Uri uri) throws IOException, IllegalArgumentException, SecurityException, IllegalStateException {
 setDataSource(context, uri, null);
}
origin: curtis2/SuperVideoPlayer

 public void onBufferingUpdate(MediaPlayer mp, int percent) {
  mCurrentBufferPercentage = percent;
  if (mOnBufferingUpdateListener != null)
   mOnBufferingUpdateListener.onBufferingUpdate(mp, percent);
 }
};
origin: curtis2/SuperVideoPlayer

public String getMetaEncoding() {
 if (mMediaPlayer != null)
  return mMediaPlayer.getMetaEncoding();
 return null;
}
origin: curtis2/SuperVideoPlayer

public int getTimedTextLocation() {
 if (mMediaPlayer != null)
  return mMediaPlayer.getTimedTextLocation();
 return -1;
}
origin: curtis2/SuperVideoPlayer

public String getTimedTextPath() {
 if (mMediaPlayer != null)
  return mMediaPlayer.getTimedTextPath();
 return null;
}
origin: curtis2/SuperVideoPlayer

private static  boolean loadVAO_native_lib(String path, String name){
  boolean load=false;
  if(path==""){
    load=loadVAO_native(name);
  }
  else{
    load=loadVAO_native(path + name);
  }
  return load;
}
origin: curtis2/SuperVideoPlayer

private static  boolean loadFFmpeg_native_lib(String path, String name){
  boolean load=false;
  if(path==""){
    load=loadFFmpeg_native(name);
  }
  else{
    load=loadFFmpeg_native(path + name);
  }
  return load;
}
private static  boolean load_lib(String path, String name){
origin: curtis2/SuperVideoPlayer

public boolean isBuffering() {
 if (mMediaPlayer != null)
  return mMediaPlayer.isBuffering();
 return false;
}
origin: curtis2/SuperVideoPlayer

public int getAudioTrack() {
 if (mMediaPlayer != null)
  return mMediaPlayer.getAudioTrack();
 return -1;
}
origin: curtis2/SuperVideoPlayer

/**
 * Calling this result in only the audio track being played.
 */
public void releaseDisplay() {
 _releaseVideoSurface();
 mSurfaceHolder = null;
 mSurface = null;
}
origin: curtis2/SuperVideoPlayer

/**
 * Set the segments source url
 * @param segments the array path of the url e.g. Segmented video list
 * @param cacheDir e.g. getCacheDir().toString()
 */
public void setDataSegments(String[] uris, String cacheDir) {
  _setDataSegmentsSource(uris, cacheDir);
}
origin: curtis2/SuperVideoPlayer

public SparseArray<MediaFormat> getSubTrackMap(String encoding) {
 if (mMediaPlayer != null)
  return mMediaPlayer.findTrackFromTrackInfo(TrackInfo.MEDIA_TRACK_TYPE_TIMEDTEXT, mMediaPlayer.getTrackInfo(encoding));
 return null;
}
io.vov.vitamio

Most used classes

  • VideoView
    Displays a video file. The VideoView class can load images from various sources (such as resources o
  • MediaPlayer
    MediaPlayer class can be used to control playback of audio/video files and streams. An example on ho
  • Vitamio
    Inspect this class before using any other Vitamio classes. Don't modify this class, or the full Vita
  • MediaController
    A view containing controls for a MediaPlayer. Typically contains the buttons like "Play/Pause" and a
  • MediaMetadataRetriever
  • StringUtils,
  • CenterLayout,
  • MediaController$MediaPlayerControl,
  • MediaController$OnHiddenListener,
  • MediaController$OnShownListener,
  • EGL$ComponentSizeChooser,
  • EGL$EGLConfigChooser,
  • EGL$EGLContextFactory,
  • EGL$EGLWindowSurfaceFactory,
  • EGL$SimpleEGLConfigChooser,
  • EGL,
  • MediaFile$MediaFileType,
  • MediaFile,
  • MediaPlayer$EventHandler
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now