Revert "Instant Video Playback UI"

This reverts commit f8283acfae.
This commit is contained in:
Alex Hart
2023-09-22 16:13:19 -03:00
parent 15c6c372ba
commit 45583ea469
25 changed files with 399 additions and 856 deletions

View File

@@ -468,15 +468,6 @@ public class MediaUtil {
return mediaMetadataRetriever.getFrameAtTime(timeUs);
}
public static boolean isInstantVideoSupported(Slide slide) {
if (!FeatureFlags.instantVideoPlayback()) {
return false;
}
final boolean isIncremental = slide.asAttachment().getIncrementalDigest() != null;
final boolean contentTypeSupported = isVideoType(slide.getContentType());
return isIncremental && contentTypeSupported;
}
public static @Nullable String getDiscreteMimeType(@NonNull String mimeType) {
final String[] sections = mimeType.split("/", 2);
return sections.length > 1 ? sections[0] : null;