android.media.TimedText Java Examples
The following examples show how to use
android.media.TimedText.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: AndroidMediaPlayer.java From MediaSDK with Apache License 2.0 | 5 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { AndroidMediaPlayer self = mWeakMediaPlayer.get(); if (self == null) return; IjkTimedText ijkText = null; if (text != null) { ijkText = new IjkTimedText(text.getBounds(), text.getText()); } notifyOnTimedText(ijkText); }
Example #2
Source File: AndroidMediaPlayer.java From JZVideoDemo with MIT License | 5 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { AndroidMediaPlayer self = mWeakMediaPlayer.get(); if (self == null) return; IjkTimedText ijkText = null; if (text != null) { ijkText = new IjkTimedText(text.getBounds(), text.getText()); } notifyOnTimedText(ijkText); }
Example #3
Source File: AndroidMediaPlayer.java From DanDanPlayForAndroid with MIT License | 5 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { AndroidMediaPlayer self = mWeakMediaPlayer.get(); if (self == null) return; IjkTimedText ijkText = null; if (text != null) { ijkText = new IjkTimedText(text.getBounds(), text.getText()); } notifyOnTimedText(ijkText); }
Example #4
Source File: AndroidMediaPlayer.java From ShareBox with Apache License 2.0 | 5 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { AndroidMediaPlayer self = mWeakMediaPlayer.get(); if (self == null) return; IjkTimedText ijkText = null; if (text != null) { ijkText = new IjkTimedText(text.getBounds(), text.getText()); } notifyOnTimedText(ijkText); }
Example #5
Source File: VDVideoViewListeners.java From NewsMe with Apache License 2.0 | 5 votes |
void notifyTimedText(final TimedText text) { mMainHandler.post(new Runnable() { @Override public void run() { for (OnTimedTextListener listener : mOnTimedTextListener) { listener.onTimedText(text); } } }); }
Example #6
Source File: VDVideoViewController.java From NewsMe with Apache License 2.0 | 4 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { mListeners.notifyTimedText(text); }
Example #7
Source File: VideoView.java From NewsMe with Apache License 2.0 | 4 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { log("onSubtitleUpdate: do nothing"); // if (mOnTimedTextListener != null) // mOnTimedTextListener.onTimedText(text); }
Example #8
Source File: VideoViewHard.java From NewsMe with Apache License 2.0 | 4 votes |
@Override public void onTimedText(MediaPlayer mp, TimedText text) { log("onSubtitleUpdate: do nothing"); // if (mOnTimedTextListener != null) // mOnTimedTextListener.onTimedText(text); }
Example #9
Source File: MediaPlayer.java From NewsMe with Apache License 2.0 | 2 votes |
/** * Called to indicate an avaliable timed text * * @param mp * the MediaPlayer associated with this callback * @param text * the timed text sample which contains the text needed to be * displayed and the display format. {@hide} */ public void onTimedText(MediaPlayer mp, TimedText text);
Example #10
Source File: MediaPlayer.java From libvlc-android-sdk with GNU Lesser General Public License v2.1 | votes |
public void onTimedText(MediaPlayer mp, TimedText text);
Example #11
Source File: MediaPlayer.java From OTTLivePlayer_vlc with MIT License | votes |
public void onTimedText(MediaPlayer mp, TimedText text);
Example #12
Source File: MediaPlayer.java From OTTLivePlayer_vlc with MIT License | votes |
public void onTimedText(MediaPlayer mp, TimedText text);
Example #13
Source File: MediaPlayer.java From vlc-example-streamplayer with GNU General Public License v3.0 | votes |
public void onTimedText(MediaPlayer mp, TimedText text);
Example #14
Source File: VDVideoViewListeners.java From NewsMe with Apache License 2.0 | votes |
public void onTimedText(TimedText text);
Example #15
Source File: MediaPlayer.java From libvlc-sdk-android with GNU General Public License v2.0 | votes |
void onTimedText(MediaPlayer mp, TimedText text);
Example #16
Source File: MediaPlayer.java From VCL-Android with Apache License 2.0 | votes |
public void onTimedText(MediaPlayer mp, TimedText text);