Skip to content

Commit 97f4a32

Browse files
kostovYury Kostovsolid-software-hq
authored
Replace List.forEach to for-loop (#288). (#301)
* Replace List.forEach to for-loop (#288). Seems like List.forEach is not supported on old Android versions. * Update CHANGELOG.md Added fix description. Co-authored-by: Yury Kostov <[email protected]> Co-authored-by: Solid Software <[email protected]>
1 parent 4ace8de commit 97f4a32

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

flutter_vlc_player/CHANGELOG.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
1+
## 7.1.1
2+
* Fixed to work on Android 6-.
3+
Credits to Yury Kostov (https://github.com/kostov).
4+
15
## 7.1.0
26
* Upgrade iOS and Android Lib VLC libraries to address performance issues. https://code.videolan.org/videolan/vlc-ios/-/issues/1240
37
Credits to Mitch Ross (https://github.com/mitchross)
48

5-
69
## 7.0.1
710
* Improve formatting
811
* Modify LICENSE to use template so it parsed automatically.

flutter_vlc_player/android/src/main/java/software/solid/fluttervlcplayer/FlutterVlcPlayer.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ void setStreamUrl(String url, boolean isAssetUrl, boolean autoPlay, long hwAcc)
355355
media.addOption(":no-mediacodec-dr");
356356
media.addOption(":no-omxil-dr");
357357
}
358-
if(options != null) {
359-
options.forEach(option -> media.addOption(option));
358+
if (options != null) {
359+
for (String option: options)
360+
media.addOption(option);
360361
}
361362
mediaPlayer.setMedia(media);
362363
media.release();

0 commit comments

Comments
 (0)