com.google.android.exoplayer2.util.StandaloneMediaClock Java Examples
The following examples show how to use
com.google.android.exoplayer2.util.StandaloneMediaClock.
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: ExoPlayerImplInternal.java From K-Sonic with MIT License | 5 votes |
public ExoPlayerImplInternal(Renderer[] renderers, TrackSelector trackSelector, LoadControl loadControl, boolean playWhenReady, Handler eventHandler, PlaybackInfo playbackInfo, ExoPlayer player) { this.renderers = renderers; this.trackSelector = trackSelector; this.loadControl = loadControl; this.playWhenReady = playWhenReady; this.eventHandler = eventHandler; this.state = ExoPlayer.STATE_IDLE; this.playbackInfo = playbackInfo; this.player = player; rendererCapabilities = new RendererCapabilities[renderers.length]; for (int i = 0; i < renderers.length; i++) { renderers[i].setIndex(i); rendererCapabilities[i] = renderers[i].getCapabilities(); } standaloneMediaClock = new StandaloneMediaClock(); enabledRenderers = new Renderer[0]; window = new Timeline.Window(); period = new Timeline.Period(); trackSelector.init(this); // Note: The documentation for Process.THREAD_PRIORITY_AUDIO that states "Applications can // not normally change to this priority" is incorrect. internalPlaybackThread = new PriorityHandlerThread("ExoPlayerImplInternal:Handler", Process.THREAD_PRIORITY_AUDIO); internalPlaybackThread.start(); handler = new Handler(internalPlaybackThread.getLooper(), this); }
Example #2
Source File: DefaultMediaClock.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Creates a new instance with listener for playback parameter changes and a {@link Clock} to use * for the standalone clock implementation. * * @param listener A {@link PlaybackParameterListener} to listen for playback parameter * changes. * @param clock A {@link Clock}. */ public DefaultMediaClock(PlaybackParameterListener listener, Clock clock) { this.listener = listener; this.standaloneClock = new StandaloneMediaClock(clock); isUsingStandaloneClock = true; }
Example #3
Source File: DefaultMediaClock.java From TelePlus-Android with GNU General Public License v2.0 | 2 votes |
/** * Creates a new instance with listener for playback parameter changes and a {@link Clock} to use * for the standalone clock implementation. * * @param listener A {@link PlaybackParameterListener} to listen for playback parameter * changes. * @param clock A {@link Clock}. */ public DefaultMediaClock(PlaybackParameterListener listener, Clock clock) { this.listener = listener; this.standaloneMediaClock = new StandaloneMediaClock(clock); }
Example #4
Source File: DefaultMediaClock.java From TelePlus-Android with GNU General Public License v2.0 | 2 votes |
/** * Creates a new instance with listener for playback parameter changes and a {@link Clock} to use * for the standalone clock implementation. * * @param listener A {@link PlaybackParameterListener} to listen for playback parameter * changes. * @param clock A {@link Clock}. */ public DefaultMediaClock(PlaybackParameterListener listener, Clock clock) { this.listener = listener; this.standaloneMediaClock = new StandaloneMediaClock(clock); }
Example #5
Source File: DefaultMediaClock.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Creates a new instance with listener for playback parameter changes and a {@link Clock} to use * for the standalone clock implementation. * * @param listener A {@link PlaybackParameterListener} to listen for playback parameter * changes. * @param clock A {@link Clock}. */ public DefaultMediaClock(PlaybackParameterListener listener, Clock clock) { this.listener = listener; this.standaloneMediaClock = new StandaloneMediaClock(clock); }
Example #6
Source File: DefaultMediaClock.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Creates a new instance with listener for playback parameter changes and a {@link Clock} to use * for the standalone clock implementation. * * @param listener A {@link PlaybackParameterListener} to listen for playback parameter * changes. * @param clock A {@link Clock}. */ public DefaultMediaClock(PlaybackParameterListener listener, Clock clock) { this.listener = listener; this.standaloneMediaClock = new StandaloneMediaClock(clock); }