Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1888,6 +1888,10 @@ private static boolean isSupportedAdaptiveVideoTrack( | |
int maxVideoHeight, | ||
int maxVideoFrameRate, | ||
int maxVideoBitrate) { | ||
if ((format.roleFlags & C.ROLE_FLAG_TRICK_PLAY) != 0) { | ||
// Ignore trick-play tracks for now. | ||
return false; | ||
} | ||
return isSupported(formatSupport, false) | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
ojw28
Author
Contributor
|
||
&& ((formatSupport & requiredAdaptiveSupport) != 0) | ||
&& (mimeType == null || Util.areEqual(format.sampleMimeType, mimeType)) | ||
|
@@ -1911,9 +1915,13 @@ private static TrackSelection.Definition selectFixedVideoTrack( | |
params.viewportWidth, params.viewportHeight, params.viewportOrientationMayChange); | ||
@Capabilities int[] trackFormatSupport = formatSupports[groupIndex]; | ||
for (int trackIndex = 0; trackIndex < trackGroup.length; trackIndex++) { | ||
Format format = trackGroup.getFormat(trackIndex); | ||
if ((format.roleFlags & C.ROLE_FLAG_TRICK_PLAY) != 0) { | ||
// Ignore trick-play tracks for now. | ||
continue; | ||
} | ||
if (isSupported(trackFormatSupport[trackIndex], | ||
params.exceedRendererCapabilitiesIfNecessary)) { | ||
Format format = trackGroup.getFormat(trackIndex); | ||
boolean isWithinConstraints = | ||
selectedTrackIndices.contains(trackIndex) | ||
&& (format.width == Format.NO_VALUE || format.width <= params.maxVideoWidth) | ||
|
@ojw28 Not sure the vision for this, with this change it is not possible to (simply) override in order to get the trickplay tracks into an
AdaptiveTrackSelection
set.I think the most strait forward way is to run a complete track selection when switching into/out of trick-play mode. That would allow selecting appropriate renderers (like disabling sounds at highest speeds). So maybe there is a
TrackSelectionParameters
that sets trick-play mode[s].Your thoughts?