Refresh media selection and sending flow with a shiny new UX.

This commit is contained in:
Alex Hart
2021-09-02 17:04:43 -03:00
committed by Greyson Parrelli
parent a940487611
commit 664d6475d9
195 changed files with 7075 additions and 4812 deletions

View File

@@ -27,6 +27,8 @@ import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import com.google.android.exoplayer2.MediaItem;
import com.google.android.exoplayer2.ExoPlaybackException;
import com.google.android.exoplayer2.PlaybackException;
import com.google.android.exoplayer2.Player;
import com.google.android.exoplayer2.SimpleExoPlayer;
import com.google.android.exoplayer2.source.DefaultMediaSourceFactory;
@@ -113,6 +115,11 @@ public class VideoPlayer extends FrameLayout {
}
}
}
@Override
public void onPlayerError(PlaybackException error) {
playerCallback.onError();
}
});
exoView.setPlayer(exoPlayer);
exoControls.setPlayer(exoPlayer);
@@ -321,5 +328,7 @@ public class VideoPlayer extends FrameLayout {
void onPlaying();
void onStopped();
void onError();
}
}