Java Code Examples for com.google.android.exoplayer2.Player#DISCONTINUITY_REASON_SEEK
The following examples show how to use
com.google.android.exoplayer2.Player#DISCONTINUITY_REASON_SEEK .
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: EventLogger.java From MediaSDK with Apache License 2.0 | 6 votes |
private static String getDiscontinuityReasonString(@Player.DiscontinuityReason int reason) { switch (reason) { case Player.DISCONTINUITY_REASON_PERIOD_TRANSITION: return "PERIOD_TRANSITION"; case Player.DISCONTINUITY_REASON_SEEK: return "SEEK"; case Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT: return "SEEK_ADJUSTMENT"; case Player.DISCONTINUITY_REASON_AD_INSERTION: return "AD_INSERTION"; case Player.DISCONTINUITY_REASON_INTERNAL: return "INTERNAL"; default: return "?"; } }
Example 2
Source File: EventLogger.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
private static String getDiscontinuityReasonString(@Player.DiscontinuityReason int reason) { switch (reason) { case Player.DISCONTINUITY_REASON_PERIOD_TRANSITION: return "PERIOD_TRANSITION"; case Player.DISCONTINUITY_REASON_SEEK: return "SEEK"; case Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT: return "SEEK_ADJUSTMENT"; case Player.DISCONTINUITY_REASON_AD_INSERTION: return "AD_INSERTION"; case Player.DISCONTINUITY_REASON_INTERNAL: return "INTERNAL"; default: return "?"; } }
Example 3
Source File: EventLogger.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
private static String getDiscontinuityReasonString(@Player.DiscontinuityReason int reason) { switch (reason) { case Player.DISCONTINUITY_REASON_PERIOD_TRANSITION: return "PERIOD_TRANSITION"; case Player.DISCONTINUITY_REASON_SEEK: return "SEEK"; case Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT: return "SEEK_ADJUSTMENT"; case Player.DISCONTINUITY_REASON_AD_INSERTION: return "AD_INSERTION"; case Player.DISCONTINUITY_REASON_INTERNAL: return "INTERNAL"; default: return "?"; } }
Example 4
Source File: EventLogger.java From Telegram-FOSS with GNU General Public License v2.0 | 6 votes |
private static String getDiscontinuityReasonString(@Player.DiscontinuityReason int reason) { switch (reason) { case Player.DISCONTINUITY_REASON_PERIOD_TRANSITION: return "PERIOD_TRANSITION"; case Player.DISCONTINUITY_REASON_SEEK: return "SEEK"; case Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT: return "SEEK_ADJUSTMENT"; case Player.DISCONTINUITY_REASON_AD_INSERTION: return "AD_INSERTION"; case Player.DISCONTINUITY_REASON_INTERNAL: return "INTERNAL"; default: return "?"; } }
Example 5
Source File: EventLogger.java From Telegram with GNU General Public License v2.0 | 6 votes |
private static String getDiscontinuityReasonString(@Player.DiscontinuityReason int reason) { switch (reason) { case Player.DISCONTINUITY_REASON_PERIOD_TRANSITION: return "PERIOD_TRANSITION"; case Player.DISCONTINUITY_REASON_SEEK: return "SEEK"; case Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT: return "SEEK_ADJUSTMENT"; case Player.DISCONTINUITY_REASON_AD_INSERTION: return "AD_INSERTION"; case Player.DISCONTINUITY_REASON_INTERNAL: return "INTERNAL"; default: return "?"; } }
Example 6
Source File: EventLogger.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
private static String getDiscontinuityReasonString(@Player.DiscontinuityReason int reason) { switch (reason) { case Player.DISCONTINUITY_REASON_PERIOD_TRANSITION: return "PERIOD_TRANSITION"; case Player.DISCONTINUITY_REASON_SEEK: return "SEEK"; case Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT: return "SEEK_ADJUSTMENT"; case Player.DISCONTINUITY_REASON_INTERNAL: return "INTERNAL"; default: return "?"; } }