mirror of
https://github.com/samsonjs/media.git
synced 2026-04-03 10:55:48 +00:00
Demo: Hide player controls by default.
Player controls are somewhat distracting when showing the difference between the
input and output video, as they obscure and darken the video players.
PiperOrigin-RevId: 480597804
(cherry picked from commit 91a61cecbe)
This commit is contained in:
parent
abefef9b59
commit
2244549146
1 changed files with 3 additions and 1 deletions
|
|
@ -307,7 +307,7 @@ public final class TransformerActivity extends AppCompatActivity {
|
|||
.build();
|
||||
}
|
||||
|
||||
// Create a cache file, resetting it if it already exists.
|
||||
/** Creates a cache file, resetting it if it already exists. */
|
||||
private File createExternalCacheFile(String fileName) throws IOException {
|
||||
File file = new File(getExternalCacheDir(), fileName);
|
||||
if (file.exists() && !file.delete()) {
|
||||
|
|
@ -505,12 +505,14 @@ public final class TransformerActivity extends AppCompatActivity {
|
|||
|
||||
ExoPlayer inputPlayer = new ExoPlayer.Builder(/* context= */ this).build();
|
||||
inputPlayerView.setPlayer(inputPlayer);
|
||||
inputPlayerView.setControllerAutoShow(false);
|
||||
inputPlayer.setMediaItem(inputMediaItem);
|
||||
inputPlayer.prepare();
|
||||
this.inputPlayer = inputPlayer;
|
||||
|
||||
ExoPlayer outputPlayer = new ExoPlayer.Builder(/* context= */ this).build();
|
||||
outputPlayerView.setPlayer(outputPlayer);
|
||||
outputPlayerView.setControllerAutoShow(false);
|
||||
outputPlayer.setMediaItem(outputMediaItem);
|
||||
outputPlayer.prepare();
|
||||
this.outputPlayer = outputPlayer;
|
||||
|
|
|
|||
Loading…
Reference in a new issue