Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New recitation player implementation #211

Merged
merged 45 commits into from
Apr 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
55386c0
Work on recitation player improvements
faisalcodes Apr 3, 2023
e5319dc
Work on recitation player improvements
faisalcodes Apr 3, 2023
ce4050a
Work on recitation player improvements
faisalcodes Apr 4, 2023
efeeafa
Work on recitation player
faisalcodes Apr 5, 2023
cc0a992
Work on recitation player
faisalcodes Apr 6, 2023
835fbc9
Work on recitation player
faisalcodes Apr 7, 2023
4ab3f6d
Work on recitation player
faisalcodes Apr 8, 2023
1e1a91c
Work on recitation player
faisalcodes Apr 8, 2023
efa679b
Work on recitation player
faisalcodes Apr 9, 2023
3328ad8
Work on recitation player
faisalcodes Apr 10, 2023
6636f87
Added recitation translation option at reciter selector page.
faisalcodes Apr 10, 2023
caaa766
Added recitation translation option at reciter selector page.
faisalcodes Apr 10, 2023
2668da3
Minor changes in strings.xml and recitation translation model.
faisalcodes Apr 10, 2023
3421afd
Work on recitation translations
faisalcodes Apr 11, 2023
e04ba77
Work on recitation translations.
faisalcodes Apr 11, 2023
6b9a3ea
Work on recitation translations.
faisalcodes Apr 12, 2023
bfc84ae
Merge branch 'master' into recitation_player_new
faisalcodes Apr 12, 2023
8eac90c
Merge branch 'master' into recitation_player_new
faisalcodes Apr 13, 2023
274692b
Moved dependencies declaration to libs.version.toml
faisalcodes Apr 13, 2023
44bdc14
Improvements
faisalcodes Apr 13, 2023
6269e66
Added new translations
faisalcodes Apr 13, 2023
36725b9
Merge remote-tracking branch 'refs/remotes/origin/recitation_player_n…
faisalcodes Apr 13, 2023
9a1704a
Merge branch 'AlfaazPlus:master' into recitation_player_new
faisalcodes Apr 13, 2023
78e4b04
Merge remote-tracking branch 'refs/remotes/origin/recitation_player_n…
faisalcodes Apr 13, 2023
85431f5
Improvement in indopak script.
faisalcodes Apr 14, 2023
9c3c2b6
Work on logs recording features
faisalcodes Apr 14, 2023
f32436d
Merge remote-tracking branch 'origin/recitation_player_new' into reci…
faisalcodes Apr 14, 2023
e2bf736
Merge branch 'AlfaazPlus:master' into recitation_player_new
faisalcodes Apr 14, 2023
594855a
Added support for media buttons
faisalcodes Apr 14, 2023
397a5d7
Work on logs saving.
faisalcodes Apr 15, 2023
d998921
Merge branch 'AlfaazPlus:master' into recitation_player_new
faisalcodes Apr 15, 2023
66fca9f
Work on logs saving
faisalcodes Apr 15, 2023
9f46606
Fix conflicts
faisalcodes Apr 15, 2023
6c68075
- Added playback speed option and more improvements
faisalcodes Apr 15, 2023
64fde23
Added support for player pausing on wireless device disconnection.
faisalcodes Apr 16, 2023
dfaf148
Added GitHub icon on log item.
faisalcodes Apr 16, 2023
a97dc00
Added color to log text.
faisalcodes Apr 16, 2023
32bee77
Rename .java to .kt
faisalcodes Apr 16, 2023
30fe944
Work on "Manage Audio" feature
faisalcodes Apr 16, 2023
92011d9
Added a slider to change font size on tafsir page.
faisalcodes Apr 17, 2023
352cfbc
Merge branch 'master' into recitation_player_new
faisalcodes Apr 17, 2023
933c20b
Finishing work on Manage Audio Feature.
faisalcodes Apr 17, 2023
6841268
Old recitation player cleanup
faisalcodes Apr 17, 2023
b13fb33
Merge branch 'master' into recitation_player_new
faisalcodes Apr 17, 2023
e03228f
Minor fixes
faisalcodes Apr 17, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ dependencies {
implementation libs.androidx.webkit
implementation libs.androidx.media
implementation libs.androidx.browser

implementation libs.exoplayerCore
implementation libs.exoplayerUI
implementation libs.extensionMediasession

coreLibraryDesugaring libs.desugaring
implementation libs.material
Expand Down
3 changes: 2 additions & 1 deletion app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,10 @@
</intent-filter>
</receiver>

<service android:name=".utils.services.RecitationService" />
<service android:name=".utils.services.RecitationChapterDownloadService" />
<service android:name=".utils.services.TranslationDownloadService" />
<service android:name=".utils.services.KFQPCScriptFontsDownloadService" />
<service android:name=".utils.reader.recitation.RecitationNotificationService" />

</application>

Expand Down
9 changes: 5 additions & 4 deletions app/src/main/assets/tafsir/tafsir_page.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ body {
margin: 0;
padding: 10px 20px;
padding-bottom: 100px;
transition: font-size 0.3s;
}

html,
Expand All @@ -34,15 +35,15 @@ html.dark {
}

p {
font-size: 16px;
font-size: 1em;
}

h1 {
font-size: 20px;
font-size: 1.5em;
}

h2 {
font-size: 18px;
font-size: 1.2em;
}

a[href] {
Expand Down Expand Up @@ -86,7 +87,7 @@ html.dark .arabic {
.text_uthmani,
.uthmani {
font-family: uthmani;
font-size: 20px;
font-size: 1.3em;
}

.navigator {
Expand Down
6 changes: 6 additions & 0 deletions app/src/main/assets/tafsir/tafsir_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@
<script src="https://assets-file/tafsir/tafsir_script.js"></script>
</head>

<style>
body {
font-size: {{FONT_SIZE}}%;
}
</style>

<body>
<div class="content">{{CONTENT}}</div>
<hr>
Expand Down
4 changes: 4 additions & 0 deletions app/src/main/assets/tafsir/tafsir_script.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
function changeFontSize(fontSize) {
document.querySelector("body").style.fontSize = fontSize + "%";
}

function onWindowClick(e) {
var btnTop = document.querySelector(".go-to-top");

Expand Down
Loading