Skip to content

Commit

Permalink
Fix critical export issue
Browse files Browse the repository at this point in the history
  • Loading branch information
arianneorpilla committed Apr 12, 2021
1 parent 0fe0e0c commit 15ac9c4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<p align="center">A mobile video player tailored for Japanese language learners.</p>

<p align="center" style="margin:0"><b>Latest GitHub Release:<br>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.9.2-beta">0.9.2-beta 🇯🇵 → 🇬🇧</a><br>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.9.3-beta">0.9.3-beta 🇯🇵 → 🇬🇧</a><br>
<a href="https://github.com/lrorpilla/jidoujisho/releases/tag/0.5.3-enjp-beta">0.5.3-beta 🇬🇧 → 🇯🇵</a></b><br></p>

# 📚 Uninterrupted language immersion at your fingertips
Expand Down
7 changes: 7 additions & 0 deletions chewie/lib/src/material_controls.dart
Original file line number Diff line number Diff line change
Expand Up @@ -660,13 +660,20 @@ class _MoreOptionsDialog extends StatelessWidget {
IconData getIconFromQualityTag(String qualityTag) {
switch (qualityTag) {
case "144p":
case "144p60":
case "240p":
case "240p60":
case "360p":
case "360p60":
case "480p":
case "480p60":
case "720p":
case "720p60":
return Icons.sd;
case "1080p":
case "1080p60":
case "1440p":
case "1440p60":
return Icons.hd;
default:
return Icons.four_k;
Expand Down
4 changes: 3 additions & 1 deletion lib/util.dart
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ Future exportCurrentFrame(

final FlutterFFmpeg _flutterFFmpeg = FlutterFFmpeg();

String inputPath = chewie.currentVideoQuality.videoURL;
String inputPath = (controller.dataSourceType == DataSourceType.network)
? chewie.currentVideoQuality.videoURL
: controller.dataSource;
String exportPath = "\"$appDirPath/exportImage.jpg\"";

String command =
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: jidoujisho
description: A mobile video player tailored for Japanese language learners.
publish_to: none

version: 0.9.2+beta
version: 0.9.3+beta

environment:
sdk: ">=2.7.0 <3.0.0"
Expand Down

0 comments on commit 15ac9c4

Please sign in to comment.