Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 6bc371a

Browse files
committed
Move lines
1 parent 6593568 commit 6bc371a

File tree

1 file changed

+3
-3
lines changed
  • packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer

1 file changed

+3
-3
lines changed

packages/video_player/video_player_android/android/src/main/java/io/flutter/plugins/videoplayer/VideoPlayer.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ private MediaSource buildMediaSource(
171171
}
172172

173173
private void setUpVideoPlayer(ExoPlayer exoPlayer, QueuingEventSink eventSink) {
174+
this.exoPlayer = exoPlayer;
175+
this.eventSink = eventSink;
176+
174177
eventChannel.setStreamHandler(
175178
new EventChannel.StreamHandler() {
176179
@Override
@@ -230,9 +233,6 @@ public void onPlayerError(final PlaybackException error) {
230233
}
231234
}
232235
});
233-
234-
this.exoPlayer = exoPlayer;
235-
this.eventSink = eventSink;
236236
}
237237

238238
void sendBufferingUpdate() {

0 commit comments

Comments
 (0)