com.google.android.exoplayer2.Timeline.Period Java Examples
The following examples show how to use
com.google.android.exoplayer2.Timeline.Period.
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: PlaybackStatsListener.java From MediaSDK with Apache License 2.0 | 5 votes |
/** * Creates listener for playback stats. * * @param keepHistory Whether the reported {@link PlaybackStats} should keep the full history of * events. * @param callback An optional callback for finished {@link PlaybackStats}. */ public PlaybackStatsListener(boolean keepHistory, @Nullable Callback callback) { this.callback = callback; this.keepHistory = keepHistory; sessionManager = new DefaultPlaybackSessionManager(); playbackStatsTrackers = new HashMap<>(); sessionStartEventTimes = new HashMap<>(); finishedPlaybackStats = PlaybackStats.EMPTY; playWhenReady = false; playbackState = Player.STATE_IDLE; playbackSpeed = 1f; period = new Period(); sessionManager.setListener(this); }
Example #2
Source File: AnalyticsCollector.java From MediaSDK with Apache License 2.0 | 4 votes |
public MediaPeriodQueueTracker() { mediaPeriodInfoQueue = new ArrayList<>(); mediaPeriodIdToInfo = new HashMap<>(); period = new Period(); timeline = Timeline.EMPTY; }
Example #3
Source File: AnalyticsCollector.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
public MediaPeriodQueueTracker() { activeMediaPeriods = new ArrayList<>(); period = new Period(); timeline = Timeline.EMPTY; }
Example #4
Source File: AnalyticsCollector.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
public MediaPeriodQueueTracker() { activeMediaPeriods = new ArrayList<>(); period = new Period(); timeline = Timeline.EMPTY; }
Example #5
Source File: AnalyticsCollector.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
public MediaPeriodQueueTracker() { mediaPeriodInfoQueue = new ArrayList<>(); mediaPeriodIdToInfo = new HashMap<>(); period = new Period(); timeline = Timeline.EMPTY; }
Example #6
Source File: AnalyticsCollector.java From Telegram with GNU General Public License v2.0 | 4 votes |
public MediaPeriodQueueTracker() { mediaPeriodInfoQueue = new ArrayList<>(); mediaPeriodIdToInfo = new HashMap<>(); period = new Period(); timeline = Timeline.EMPTY; }