Java Code Examples for com.google.android.exoplayer2.RendererCapabilities#ADAPTIVE_NOT_SEAMLESS
The following examples show how to use
com.google.android.exoplayer2.RendererCapabilities#ADAPTIVE_NOT_SEAMLESS .
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 getAdaptiveSupportString( int trackCount, @AdaptiveSupport int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: throw new IllegalStateException(); } }
Example 2
Source File: DefaultTrackSelector.java From K-Sonic with MIT License | 6 votes |
private static TrackSelection selectAdaptiveVideoTrack(RendererCapabilities rendererCapabilities, TrackGroupArray groups, int[][] formatSupport, int maxVideoWidth, int maxVideoHeight, int maxVideoBitrate, boolean allowNonSeamlessAdaptiveness, boolean allowMixedMimeAdaptiveness, int viewportWidth, int viewportHeight, boolean orientationMayChange, TrackSelection.Factory adaptiveVideoTrackSelectionFactory) throws ExoPlaybackException { int requiredAdaptiveSupport = allowNonSeamlessAdaptiveness ? (RendererCapabilities.ADAPTIVE_NOT_SEAMLESS | RendererCapabilities.ADAPTIVE_SEAMLESS) : RendererCapabilities.ADAPTIVE_SEAMLESS; boolean allowMixedMimeTypes = allowMixedMimeAdaptiveness && (rendererCapabilities.supportsMixedMimeTypeAdaptation() & requiredAdaptiveSupport) != 0; for (int i = 0; i < groups.length; i++) { TrackGroup group = groups.get(i); int[] adaptiveTracks = getAdaptiveTracksForGroup(group, formatSupport[i], allowMixedMimeTypes, requiredAdaptiveSupport, maxVideoWidth, maxVideoHeight, maxVideoBitrate, viewportWidth, viewportHeight, orientationMayChange); if (adaptiveTracks.length > 0) { return adaptiveVideoTrackSelectionFactory.createTrackSelection(group, adaptiveTracks); } } return null; }
Example 3
Source File: EventLogger.java From Telegram with GNU General Public License v2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 4
Source File: DefaultTrackSelector.java From MediaSDK with Apache License 2.0 | 5 votes |
@Nullable private static TrackSelection.Definition selectAdaptiveVideoTrack( TrackGroupArray groups, @Capabilities int[][] formatSupport, @AdaptiveSupport int mixedMimeTypeAdaptationSupports, Parameters params) { int requiredAdaptiveSupport = params.allowVideoNonSeamlessAdaptiveness ? (RendererCapabilities.ADAPTIVE_NOT_SEAMLESS | RendererCapabilities.ADAPTIVE_SEAMLESS) : RendererCapabilities.ADAPTIVE_SEAMLESS; boolean allowMixedMimeTypes = params.allowVideoMixedMimeTypeAdaptiveness && (mixedMimeTypeAdaptationSupports & requiredAdaptiveSupport) != 0; for (int i = 0; i < groups.length; i++) { TrackGroup group = groups.get(i); int[] adaptiveTracks = getAdaptiveVideoTracksForGroup( group, formatSupport[i], allowMixedMimeTypes, requiredAdaptiveSupport, params.maxVideoWidth, params.maxVideoHeight, params.maxVideoFrameRate, params.maxVideoBitrate, params.viewportWidth, params.viewportHeight, params.viewportOrientationMayChange); if (adaptiveTracks.length > 0) { return new TrackSelection.Definition(group, adaptiveTracks); } } return null; }
Example 5
Source File: DefaultTrackSelector.java From Telegram with GNU General Public License v2.0 | 5 votes |
@Nullable private static TrackSelection.Definition selectAdaptiveVideoTrack( TrackGroupArray groups, int[][] formatSupport, int mixedMimeTypeAdaptationSupports, Parameters params) { int requiredAdaptiveSupport = params.allowVideoNonSeamlessAdaptiveness ? (RendererCapabilities.ADAPTIVE_NOT_SEAMLESS | RendererCapabilities.ADAPTIVE_SEAMLESS) : RendererCapabilities.ADAPTIVE_SEAMLESS; boolean allowMixedMimeTypes = params.allowVideoMixedMimeTypeAdaptiveness && (mixedMimeTypeAdaptationSupports & requiredAdaptiveSupport) != 0; for (int i = 0; i < groups.length; i++) { TrackGroup group = groups.get(i); int[] adaptiveTracks = getAdaptiveVideoTracksForGroup( group, formatSupport[i], allowMixedMimeTypes, requiredAdaptiveSupport, params.maxVideoWidth, params.maxVideoHeight, params.maxVideoFrameRate, params.maxVideoBitrate, params.viewportWidth, params.viewportHeight, params.viewportOrientationMayChange); if (adaptiveTracks.length > 0) { return new TrackSelection.Definition(group, adaptiveTracks); } } return null; }
Example 6
Source File: EventLogger.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 7
Source File: DefaultTrackSelector.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
@Nullable private static TrackSelection.Definition selectAdaptiveVideoTrack( TrackGroupArray groups, int[][] formatSupport, int mixedMimeTypeAdaptationSupports, Parameters params) { int requiredAdaptiveSupport = params.allowVideoNonSeamlessAdaptiveness ? (RendererCapabilities.ADAPTIVE_NOT_SEAMLESS | RendererCapabilities.ADAPTIVE_SEAMLESS) : RendererCapabilities.ADAPTIVE_SEAMLESS; boolean allowMixedMimeTypes = params.allowVideoMixedMimeTypeAdaptiveness && (mixedMimeTypeAdaptationSupports & requiredAdaptiveSupport) != 0; for (int i = 0; i < groups.length; i++) { TrackGroup group = groups.get(i); int[] adaptiveTracks = getAdaptiveVideoTracksForGroup( group, formatSupport[i], allowMixedMimeTypes, requiredAdaptiveSupport, params.maxVideoWidth, params.maxVideoHeight, params.maxVideoFrameRate, params.maxVideoBitrate, params.viewportWidth, params.viewportHeight, params.viewportOrientationMayChange); if (adaptiveTracks.length > 0) { return new TrackSelection.Definition(group, adaptiveTracks); } } return null; }
Example 8
Source File: EventLogger.java From evercam-android with GNU Affero General Public License v3.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 9
Source File: EventLogger.java From K-Sonic with MIT License | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 10
Source File: EventLogger.java From TigerVideo with Apache License 2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 11
Source File: EventLogger.java From GSYVideoPlayer with Apache License 2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 12
Source File: EventLogger.java From mimi-reader with Apache License 2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 13
Source File: EventLogger.java From LiveVideoBroadcaster with Apache License 2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 14
Source File: EventLogger.java From ExoPlayer-Offline with Apache License 2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 15
Source File: EventLogger.java From TubiPlayer with MIT License | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 16
Source File: EventLogger.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 17
Source File: DefaultTrackSelector.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private static @Nullable TrackSelection selectAdaptiveVideoTrack( TrackGroupArray groups, int[][] formatSupport, int mixedMimeTypeAdaptationSupports, Parameters params, TrackSelection.Factory adaptiveTrackSelectionFactory, BandwidthMeter bandwidthMeter) throws ExoPlaybackException { int requiredAdaptiveSupport = params.allowNonSeamlessAdaptiveness ? (RendererCapabilities.ADAPTIVE_NOT_SEAMLESS | RendererCapabilities.ADAPTIVE_SEAMLESS) : RendererCapabilities.ADAPTIVE_SEAMLESS; boolean allowMixedMimeTypes = params.allowMixedMimeAdaptiveness && (mixedMimeTypeAdaptationSupports & requiredAdaptiveSupport) != 0; for (int i = 0; i < groups.length; i++) { TrackGroup group = groups.get(i); int[] adaptiveTracks = getAdaptiveVideoTracksForGroup(group, formatSupport[i], allowMixedMimeTypes, requiredAdaptiveSupport, params.maxVideoWidth, params.maxVideoHeight, params.maxVideoBitrate, params.viewportWidth, params.viewportHeight, params.viewportOrientationMayChange); if (adaptiveTracks.length > 0) { return Assertions.checkNotNull(adaptiveTrackSelectionFactory) .createTrackSelection(group, bandwidthMeter, adaptiveTracks); } } return null; }
Example 18
Source File: EventLogger.java From PowerFileExplorer with GNU General Public License v3.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 19
Source File: EventLogger.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private static String getAdaptiveSupportString(int trackCount, int adaptiveSupport) { if (trackCount < 2) { return "N/A"; } switch (adaptiveSupport) { case RendererCapabilities.ADAPTIVE_SEAMLESS: return "YES"; case RendererCapabilities.ADAPTIVE_NOT_SEAMLESS: return "YES_NOT_SEAMLESS"; case RendererCapabilities.ADAPTIVE_NOT_SUPPORTED: return "NO"; default: return "?"; } }
Example 20
Source File: DefaultTrackSelector.java From TelePlus-Android with GNU General Public License v2.0 | 5 votes |
private static @Nullable TrackSelection selectAdaptiveVideoTrack( TrackGroupArray groups, int[][] formatSupport, int mixedMimeTypeAdaptationSupports, Parameters params, TrackSelection.Factory adaptiveTrackSelectionFactory, BandwidthMeter bandwidthMeter) throws ExoPlaybackException { int requiredAdaptiveSupport = params.allowNonSeamlessAdaptiveness ? (RendererCapabilities.ADAPTIVE_NOT_SEAMLESS | RendererCapabilities.ADAPTIVE_SEAMLESS) : RendererCapabilities.ADAPTIVE_SEAMLESS; boolean allowMixedMimeTypes = params.allowMixedMimeAdaptiveness && (mixedMimeTypeAdaptationSupports & requiredAdaptiveSupport) != 0; for (int i = 0; i < groups.length; i++) { TrackGroup group = groups.get(i); int[] adaptiveTracks = getAdaptiveVideoTracksForGroup(group, formatSupport[i], allowMixedMimeTypes, requiredAdaptiveSupport, params.maxVideoWidth, params.maxVideoHeight, params.maxVideoBitrate, params.viewportWidth, params.viewportHeight, params.viewportOrientationMayChange); if (adaptiveTracks.length > 0) { return Assertions.checkNotNull(adaptiveTrackSelectionFactory) .createTrackSelection(group, bandwidthMeter, adaptiveTracks); } } return null; }