File tree Expand file tree Collapse file tree
packages/video_player/video_player
android/src/main/java/io/flutter/plugins/videoplayer Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ## 2.0.1
2+
3+ * Remove the deprecated API "exoPlayer.setAudioAttributes".
4+
15## 2.0.0
26
37* Migrate to null safety.
Original file line number Diff line number Diff line change 55
66import android .content .Context ;
77import android .net .Uri ;
8- import android .os .Build ;
98import android .view .Surface ;
109import com .google .android .exoplayer2 .C ;
1110import com .google .android .exoplayer2 .ExoPlaybackException ;
@@ -222,12 +221,8 @@ void sendBufferingUpdate() {
222221
223222 @ SuppressWarnings ("deprecation" )
224223 private static void setAudioAttributes (SimpleExoPlayer exoPlayer , boolean isMixMode ) {
225- if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .LOLLIPOP ) {
226- exoPlayer .setAudioAttributes (
227- new AudioAttributes .Builder ().setContentType (C .CONTENT_TYPE_MOVIE ).build (), !isMixMode );
228- } else {
229- exoPlayer .setAudioStreamType (C .STREAM_TYPE_MUSIC );
230- }
224+ exoPlayer .setAudioAttributes (
225+ new AudioAttributes .Builder ().setContentType (C .CONTENT_TYPE_MOVIE ).build (), !isMixMode );
231226 }
232227
233228 void play () {
Original file line number Diff line number Diff line change 11name : video_player
22description : Flutter plugin for displaying inline video with other Flutter
33 widgets on Android, iOS, and web.
4- version : 2.0.0
4+ version : 2.0.1
55homepage : https://github.com/flutter/plugins/tree/master/packages/video_player/video_player
66
77flutter :
You can’t perform that action at this time.
0 commit comments