Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added support for Thumbnails in DASH #10793

Merged
merged 7 commits into from
Feb 1, 2023
Prev Previous commit
Next Next commit
Image AdaptationSets have to be excluded from duration calculation, s…
…imilar to Text AdaptationSets, see issue 4029 (#4029).
  • Loading branch information
gorkemg committed Dec 9, 2022
commit dad74276efdfc7119476a3d62746ba5a0cf3da0e
Original file line number Diff line number Diff line change
Expand Up @@ -1056,9 +1056,9 @@ private static long getAvailableStartTimeInManifestUs(
for (int i = 0; i < period.adaptationSets.size(); i++) {
AdaptationSet adaptationSet = period.adaptationSets.get(i);
List<Representation> representations = adaptationSet.representations;
// Exclude text adaptation sets from duration calculations, if we have at least one audio
// Exclude text and image adaptation sets from duration calculations, if we have at least one audio
// or video adaptation set. See: https://github.com/google/ExoPlayer/issues/4029
if ((haveAudioVideoAdaptationSets && adaptationSet.type == C.TRACK_TYPE_TEXT)
if ((haveAudioVideoAdaptationSets && (adaptationSet.type == C.TRACK_TYPE_TEXT || adaptationSet.type == C.TRACK_TYPE_IMAGE))
|| representations.isEmpty()) {
continue;
}
Expand Down Expand Up @@ -1088,9 +1088,9 @@ private static long getAvailableEndTimeInManifestUs(
for (int i = 0; i < period.adaptationSets.size(); i++) {
AdaptationSet adaptationSet = period.adaptationSets.get(i);
List<Representation> representations = adaptationSet.representations;
// Exclude text adaptation sets from duration calculations, if we have at least one audio
// Exclude text and image adaptation sets from duration calculations, if we have at least one audio
// or video adaptation set. See: https://github.com/google/ExoPlayer/issues/4029
if ((haveAudioVideoAdaptationSets && adaptationSet.type == C.TRACK_TYPE_TEXT)
if ((haveAudioVideoAdaptationSets && (adaptationSet.type == C.TRACK_TYPE_TEXT || adaptationSet.type == C.TRACK_TYPE_IMAGE))
|| representations.isEmpty()) {
continue;
}
Expand Down